/* ==========================================================================
   Dhurandhar Product Page Styles
   Matches Test Page.png layout, proportions, and palette
   ========================================================================== */

:root {
  --black: #000000;
  --text-main: #222222;
  --text-muted: #666666;
  --text-light: #888888;
  --border-color: #e5e5e5;
  --red-price: #cc0000;
  --red-urgency: #d32f2f;
  --teal-star: #0d7a6f;
  --teal-btn: #0d7a6f;
  --pink-accent: #e91e63;
  --white: #ffffff;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Top Announcement Bar ---------- */
.top-bar {
  background-color: var(--black);
  color: var(--white);
  font-size: 12px;
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-promo {
  flex: 1;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.top-bar-promo strong {
  color: #ffd54f;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #eeeeee;
  cursor: pointer;
  transition: color 0.2s;
}

.top-bar-link:hover {
  color: var(--white);
}

.cart-badge {
  background-color: var(--white);
  color: var(--black);
  font-weight: 700;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

/* ---------- Main Header & Nav ---------- */
.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand-logo-icon {
  width: 40px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-text {
  font-family: 'Pacifico', cursive;
  font-size: 26px;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
}

.main-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.nav-row a {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-main);
  transition: color 0.2s;
}

.nav-row a:hover,
.nav-row a.active {
  color: var(--red-price);
}

.header-icons-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  position: relative;
}

.header-icon-btn {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s;
}

.header-icon-btn:hover {
  background-color: #f3f3f3;
  color: var(--red-price);
}

.header-cart-count {
  position: absolute;
  top: -2px;
  right: -4px;
  background-color: var(--red-price);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  line-height: 17px;
  text-align: center;
  border-radius: 50%;
  padding: 0 4px;
}

.header-search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--white);
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  padding: 6px;
  width: 260px;
  z-index: 200;
  gap: 6px;
}

.header-search-dropdown.open {
  display: flex;
}

.header-search-dropdown input {
  flex: 1;
  border: 1px solid #dddddd;
  border-radius: 2px;
  padding: 6px 10px;
  font-size: 12.5px;
  outline: none;
}

.header-search-dropdown button {
  background-color: var(--black);
  color: var(--white);
  border: none;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 2px;
  cursor: pointer;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-bar {
  padding: 14px 0 10px;
  font-size: 12px;
  color: var(--text-light);
}

.breadcrumb-bar a:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 6px;
}

/* ---------- Product Main Section ---------- */
.product-main-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  padding: 12px 0 40px;
  align-items: start;
}

/* Left: Gallery */
.product-gallery {
  position: relative;
}

.main-image-box {
  position: relative;
  border: 1px solid #eeeeee;
  background-color: #fafafa;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.main-image-box:hover img {
  transform: scale(1.03);
}

.discount-corner-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: var(--red-price);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 3px;
  letter-spacing: 0.4px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dddddd;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, box-shadow 0.2s;
}

.gallery-arrow:hover {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gallery-arrow.prev {
  left: 12px;
}

.gallery-arrow.next {
  right: 12px;
}

.thumbnail-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.thumb-nav-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
}

.thumb-item {
  width: 82px;
  height: 82px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.75;
  transition: all 0.2s;
  position: relative;
  flex-shrink: 0;
}

.thumb-item.active,
.thumb-item:hover {
  border-color: var(--black);
  opacity: 1;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.68);
  color: #ffffff;
  font-size: 9px;
  text-align: center;
  padding: 2px 0;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Right: Product Info */
.product-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.stars {
  color: var(--teal-star);
  font-size: 14px;
  letter-spacing: 1px;
}

.review-count-link {
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
}

.sold-urgency {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--red-urgency);
  font-size: 12.5px;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 14px;
}

.meta-table {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.meta-table span.meta-label {
  display: inline-block;
  width: 90px;
  color: var(--text-light);
}

.meta-table span.in-stock {
  color: var(--teal-star);
  font-weight: 600;
}

/* Pricing Block */
.price-block {
  margin-bottom: 14px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.price-mrp {
  font-size: 16px;
  color: var(--text-light);
  text-decoration: line-through;
}

.price-sale {
  font-size: 26px;
  font-weight: 700;
  color: var(--red-price);
}

.price-off-pill {
  background-color: #ffebee;
  color: var(--red-price);
  border: 1px solid #ffcdd2;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
}

.price-tax-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.emi-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 6px 10px;
  background-color: #fafafa;
  font-size: 11px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.emi-badge {
  background-color: #1a237e;
  color: #ffffff;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 10px;
}

.emi-btn {
  background-color: #00695c;
  color: #ffffff;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
  font-size: 10px;
}

/* Stock Progress */
.stock-warning {
  margin: 14px 0 18px;
}

.stock-warning-text {
  color: var(--red-urgency);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.stock-bar-track {
  height: 5px;
  background-color: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
}

.stock-bar-fill-red {
  width: 28%;
  background-color: var(--red-urgency);
}

.stock-bar-fill-green {
  width: 22%;
  background-color: #4caf50;
}

/* Variant & Quantity */
.option-group {
  margin-bottom: 16px;
}

.option-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.option-label span {
  font-weight: 400;
  color: var(--text-muted);
}

.pack-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pack-pill {
  padding: 7px 14px;
  border: 1.5px solid #cccccc;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: var(--white);
  color: var(--text-main);
  transition: all 0.2s;
}

.pack-pill.active {
  border-color: var(--black);
  background-color: var(--black);
  color: var(--white);
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cccccc;
  border-radius: 3px;
}

.qty-control button {
  width: 34px;
  height: 36px;
  background: #f5f5f5;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.qty-control input {
  width: 46px;
  height: 36px;
  text-align: center;
  border: none;
  border-left: 1px solid #cccccc;
  border-right: 1px solid #cccccc;
  font-size: 14px;
  font-weight: 600;
}

/* Action Buttons */
.action-buttons-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.btn-primary-dark {
  flex: 1;
  background-color: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.2s;
}

.btn-primary-dark:hover {
  background-color: #2b2b2b;
}

.btn-buy-now {
  flex: 1;
  background-color: var(--red-price);
  color: var(--white);
  border: 2px solid var(--red-price);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.2s;
}

.btn-buy-now:hover {
  background-color: #a80000;
}

.icon-circle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #d4d4d4;
  background: var(--white);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.icon-circle-btn:hover,
.icon-circle-btn.active {
  border-color: var(--red-price);
  color: var(--red-price);
}

/* Pincode Check */
.pincode-box {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-bottom: 16px;
}

.pincode-form {
  display: flex;
  gap: 8px;
  max-width: 340px;
}

.pincode-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #cccccc;
  border-radius: 2px;
  font-size: 12.5px;
}

.btn-check-now {
  background-color: var(--black);
  color: var(--white);
  border: none;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 2px;
}

.pincode-result {
  font-size: 12px;
  margin-top: 6px;
  min-height: 18px;
}

.trust-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f9f9f9;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #eeeeee;
  font-size: 12px;
  color: var(--text-main);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-item span.check {
  color: var(--teal-star);
  font-weight: 700;
}

/* ---------- Tabs Section (Description / Shipping & Return) ---------- */
.tabs-section {
  margin-top: 24px;
  border-top: 1px solid var(--border-color);
  padding-top: 28px;
}

.tabs-header {
  display: flex;
  justify-content: center;
  gap: 36px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 28px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 10px 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  position: relative;
}

.tab-btn.active {
  color: var(--black);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--black);
}

.tab-panel {
  display: none;
  max-width: 900px;
  margin: 0 auto 44px;
  font-size: 13.5px;
  color: #333333;
  line-height: 1.75;
}

.tab-panel.active {
  display: block;
}

.tab-panel p {
  margin-bottom: 14px;
}

.tab-panel h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin: 22px 0 8px;
}

.tab-panel ul.bullet-list {
  margin-bottom: 14px;
  padding-left: 4px;
}

.tab-panel ul.bullet-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}

.tab-panel ul.bullet-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* ---------- Customer Reviews ---------- */
.reviews-section {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
}

.section-heading {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 28px;
  color: var(--black);
}

.reviews-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border-color);
}

.rating-overall {
  text-align: center;
}

.rating-overall .stars {
  font-size: 18px;
}

.rating-score {
  font-size: 15px;
  font-weight: 700;
  margin: 4px 0 2px;
}

.rating-based {
  font-size: 12px;
  color: var(--text-muted);
}

.rating-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.rating-bar-stars {
  width: 72px;
  color: var(--teal-star);
  letter-spacing: 1px;
}

.rating-bar-track {
  flex: 1;
  height: 10px;
  background-color: #eeeeee;
  border-radius: 2px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background-color: var(--teal-star);
}

.rating-bar-count {
  width: 20px;
  text-align: right;
  color: var(--text-muted);
}

.write-review-wrap {
  text-align: center;
}

.btn-write-review {
  background-color: var(--teal-btn);
  color: var(--white);
  border: none;
  padding: 10px 32px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
}

.btn-write-review:hover {
  background-color: #095e55;
}

.reviews-list {
  max-width: 900px;
  margin: 0 auto;
}

.review-card {
  border-top: 1px solid #eeeeee;
  padding: 18px 0;
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-star);
}

.review-date {
  font-size: 11.5px;
  color: var(--text-light);
}

.review-title {
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 4px;
}

.review-html,
body {
  overflow-x: hidden;
}

body {
  font-size: 13px;
  color: #444444;
}

/* ---------- Related & Recently Viewed Products ---------- */
.products-carousel-section {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
}

.products-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  border: 1px solid #eeeeee;
  border-radius: 4px;
  padding: 14px;
  text-align: center;
  transition: box-shadow 0.2s;
  background: var(--white);
  position: relative;
}

.product-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.product-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--black);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 2px;
}

.product-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 12px;
}

.product-card-brand {
  font-size: 10.5px;
  color: var(--text-light);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.product-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  min-height: 38px;
}

.product-card-prices {
  font-size: 13px;
  margin-bottom: 3px;
}

.product-card-prices .old {
  color: var(--text-light);
  text-decoration: line-through;
  margin-right: 6px;
}

.product-card-prices .new {
  color: var(--red-price);
  font-weight: 700;
}

.product-card-tax {
  font-size: 10.5px;
  color: var(--text-light);
}

.recently-viewed-wrap {
  display: flex;
  justify-content: center;
}

.recently-viewed-wrap .product-card {
  width: 260px;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--black);
  color: #cccccc;
  padding: 48px 0 0;
  margin-top: 20px;
  font-size: 12.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
}

.footer-col ul li {
  margin-bottom: 7px;
}

.footer-col ul li a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #dddddd;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.newsletter-box {
  padding-bottom: 32px;
  border-bottom: 1px solid #222222;
}

.newsletter-box h4 {
  color: var(--white);
  font-style: italic;
  font-size: 13px;
  margin-bottom: 4px;
}

.newsletter-box p {
  font-size: 11.5px;
  color: #999999;
  margin-bottom: 12px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 340px;
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: 1px solid #444444;
  color: var(--white);
  padding: 8px 12px;
  font-size: 12px;
}

.newsletter-form button {
  background: #222222;
  color: var(--white);
  border: 1px solid #555555;
  padding: 8px 18px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.footer-bottom {
  background: var(--white);
  color: var(--text-muted);
  padding: 14px 0;
  font-size: 11.5px;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.payment-badges {
  display: flex;
  gap: 8px;
}

.pay-pill {
  border: 1px solid #cccccc;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  color: #333333;
}

/* ---------- Modal & Toast ---------- */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: var(--white);
  max-width: 460px;
  width: 100%;
  padding: 24px;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.modal-card h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

.modal-field {
  margin-bottom: 12px;
}

.modal-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.modal-field input,
.modal-field select,
.modal-field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cccccc;
  border-radius: 3px;
  font-size: 13px;
}

.toast-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--black);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.25s ease;
  z-index: 1000;
}

.toast-banner.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .header-main {
    flex-wrap: wrap;
    gap: 12px;
  }
  .brand-logo {
    order: 1;
  }
  .header-icons-group {
    order: 2;
  }
  .main-nav {
    order: 3;
    flex-basis: 100%;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
  }
  .product-main-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 8px 0 28px;
  }
  .reviews-summary-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .products-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 14px;
  }
  .site-header {
    position: relative;
    padding: 12px 0;
  }
  .top-bar-inner {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
  .top-bar-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 11px;
  }
  .header-main {
    justify-content: space-between;
  }
  .brand-logo {
    width: auto;
    justify-content: flex-start;
  }
  .header-icons-group {
    gap: 8px;
  }
  .nav-row {
    gap: 10px 14px;
  }
  .nav-row a {
    font-size: 10.5px;
  }
  .product-title {
    font-size: 18.5px;
  }
  .price-sale {
    font-size: 22px;
  }
  .price-mrp {
    font-size: 14px;
  }
  .thumb-item {
    width: 68px;
    height: 68px;
  }
  .action-buttons-row {
    flex-wrap: wrap;
  }
  .btn-primary-dark,
  .btn-buy-now {
    flex: 1 1 calc(50% - 6px);
    padding: 11px 10px;
    font-size: 12px;
  }
  .pincode-form {
    max-width: 100%;
  }
  .newsletter-form {
    max-width: 100%;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .btn-primary-dark,
  .btn-buy-now {
    flex: 1 1 100%;
  }
  .trust-list {
    grid-template-columns: 1fr;
  }
  .products-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-card {
    padding: 10px;
  }
  .product-card-title {
    font-size: 12px;
    min-height: 32px;
  }
  .recently-viewed-wrap .product-card {
    width: 100%;
    max-width: 260px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* ==========================================================================
   Cart, Checkout & Order Confirmation Pages
   ========================================================================== */

.page-shell {
  padding-bottom: 48px;
}

.page-heading {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--black);
}

.checkout-steps {
  display: flex;
  gap: 10px;
  margin: 10px 0 22px;
  flex-wrap: wrap;
}

.step-pill {
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: #f2f2f2;
  color: var(--text-muted);
}

.step-pill.active {
  background: var(--black);
  color: var(--white);
}

.step-pill.done {
  background: #e0f2f1;
  color: var(--teal-star);
}

.empty-cart-box {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 40px 20px;
  text-align: center;
  background: #fafafa;
}

.empty-cart-box p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.cart-item-card {
  display: flex;
  gap: 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 14px;
  background: var(--white);
  align-items: center;
}

.cart-item-img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #eeeeee;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h3 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.cart-item-pack {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cart-item-price .old {
  font-size: 12px;
  color: var(--text-light);
  text-decoration: line-through;
  margin-right: 6px;
}

.cart-item-price .new {
  font-size: 14px;
  font-weight: 700;
  color: var(--red-price);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.cart-qty-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.cart-qty-form input {
  width: 52px;
  padding: 4px 6px;
  border: 1px solid #cccccc;
  border-radius: 3px;
  text-align: center;
}

.btn-small-dark {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
}

.btn-remove-link {
  background: none;
  border: none;
  color: var(--red-price);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.cart-item-total {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  flex-shrink: 0;
}

.order-summary-card,
.checkout-card {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 20px;
  background: var(--white);
}

.order-summary-card h3,
.checkout-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.checkout-subnote {
  font-size: 12px;
  color: var(--teal-star);
  margin-bottom: 16px;
  font-weight: 500;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 9px;
}

.summary-row.discount {
  color: var(--teal-star);
  font-weight: 600;
}

.summary-row.total {
  font-size: 17px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0;
}

.free-text {
  color: var(--teal-star);
  font-weight: 700;
}

.summary-divider {
  border-top: 1px solid #eeeeee;
  margin: 12px 0;
}

.continue-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: underline;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 5px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #cccccc;
  border-radius: 3px;
  font-size: 13px;
}

.payment-option-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1.5px solid #dcdcdc;
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.payment-option-card.selected {
  border-color: var(--black);
  background: #fafafa;
}

.payment-option-card input[type='radio'] {
  margin-top: 4px;
  accent-color: var(--black);
}

.payment-option-body {
  flex: 1;
}

.payment-option-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.payment-option-body p {
  font-size: 12px;
  color: var(--text-muted);
}

.badge-free {
  background: #e0f2f1;
  color: var(--teal-star);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.badge-cod {
  background: #ffebee;
  color: var(--red-price);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.summary-item-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.summary-item-mini img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #eeeeee;
}

.summary-item-mini .mini-title {
  font-size: 12.5px;
  font-weight: 600;
}

.summary-item-mini .mini-qty {
  font-size: 11.5px;
  color: var(--text-muted);
}

.summary-item-mini .mini-total {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
}

.secure-checkout-note {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
}

.error-box {
  background: #ffebee;
  border: 1px solid #ef9a9a;
  color: #c62828;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 18px;
}

.error-box ul {
  margin-top: 6px;
  padding-left: 18px;
  list-style: disc;
}

.order-success-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 32px 24px;
  background: var(--white);
  max-width: 860px;
  margin: 0 auto;
}

.success-check-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal-star);
  color: var(--white);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.order-success-card h1 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 6px;
}

.success-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.success-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}

.success-box {
  background: #fafafa;
  border: 1px solid #eeeeee;
  border-radius: 6px;
  padding: 16px;
  font-size: 13px;
  line-height: 1.65;
}

.success-box h4,
.success-items-list h4 {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 10px;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 6px;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .cart-layout,
  .checkout-layout,
  .success-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }
  .cart-item-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .cart-item-total {
    align-self: flex-end;
  }
}
