:root {
  --theme-primary: #8c1d40;
  --theme-primary-dark: #6f1633;
  --theme-accent: #f8f0f2;
  --text-dark: #222;
}

body {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  background: #fff;
  color: var(--text-dark);
}

.site-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.top-strip {
  background: #fff;
  color: #444;
  border-bottom: 1px solid #eee;
}

.top-link {
  color: var(--theme-primary);
  text-decoration: none;
}

.top-link:hover {
  color: var(--theme-primary-dark);
}

.header-main {
  background: #fff;
}

.brand-lockup .brand-mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-lockup .brand-title {
  font-size: clamp(1.05rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: #111;
  letter-spacing: 0.35px;
  line-height: 1.15;
}

.brand-lockup .brand-tagline {
  color: rgba(17, 17, 17, 0.62);
  font-size: 0.78rem;
  margin-top: 0.1rem;
  font-weight: 500;
}

.search-wrap {
  border: 1px solid #e3d5db;
  border-radius: 2rem;
  overflow: hidden;
}

.search-box {
  border-radius: 2rem;
  border: 1px solid #e0d1d6;
  padding-left: 1rem;
}

.search-box:focus {
  border-color: #c77d95;
  box-shadow: 0 0 0 0.2rem rgba(140, 29, 64, 0.12);
}

.btn-theme {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #fff;
}

.btn-theme:hover {
  background: var(--theme-primary-dark);
  border-color: var(--theme-primary-dark);
  color: #fff;
}

.btn-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-tools .tool-link {
  width: 42px;
  height: 42px;
  border: 1px solid #e8dce1;
  border-radius: 50%;
  color: #2f2f2f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.header-tools .tool-link:hover {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}

.account-link {
  text-decoration: none;
  color: #242424;
  line-height: 1.1;
}

.account-link strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-main {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  border-bottom: 1px solid #efe2e7;
  box-shadow: 0 4px 12px rgba(20, 20, 20, 0.04);
}

.nav-main .nav-link {
  color: #2f2f2f;
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0.9rem 0.95rem;
}

.nav-main .nav-link:hover,
.nav-main .nav-link:focus {
  color: var(--theme-primary);
}

.nav-main .navbar-nav .nav-link.active,
.nav-main .navbar-nav .show > .nav-link {
  color: var(--theme-primary);
}

.hero-image {
  height: 560px;
  object-fit: cover;
  filter: brightness(0.72);
}

.carousel-caption {
  background: linear-gradient(120deg, rgba(20, 20, 20, 0.6), rgba(20, 20, 20, 0.25));
  padding: 1.5rem;
  border-radius: 1rem;
  max-width: 560px;
  bottom: 3rem;
}

.carousel-caption h2 {
  font-size: 2rem;
  font-weight: 700;
}

.category-thumb {
  height: 150px;
  object-fit: cover;
}

.product-image {
  height: 320px;
  object-fit: cover;
}

.discount-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #111;
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-card {
  border-radius: 0.9rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 28px rgba(22, 22, 22, 0.12) !important;
}

.mega-dropdown .dropdown-menu {
  width: min(980px, 95vw);
  border-radius: 0.9rem;
  border: 1px solid #efdfdf;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  box-shadow: 0 18px 36px rgba(20, 20, 20, 0.12);
}

.mega-dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}

.offer-banner {
  background: linear-gradient(135deg, #fff7f9, #f8f3ff);
  border: 1px solid #ecdde3;
}

.product-tabs .nav-link {
  border-radius: 2rem;
  color: #444;
  border: 1px solid #ddd;
  margin-left: 0.5rem;
  background: #fff;
}

.product-tabs .nav-link.active {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
}

.cart-thumb {
  width: 90px;
  height: 90px;
  object-fit: cover;
}

.whatsapp-btn {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1040;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  cursor: pointer;
}

.search-suggestion {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1200;
  max-height: 280px;
  overflow: auto;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.search-suggestion a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #222;
  text-decoration: none;
}

.search-suggestion a:hover {
  background: #f7f7f7;
}

.footer-main {
  background: #22171b;
}

/* Customer dashboard sidebar */
.dashboard-nav-link {
  color: #444;
  font-size: 0.9rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.dashboard-nav-link:hover {
  background: #f7edf1;
  color: var(--theme-primary);
}

.dashboard-nav-link.active {
  background: var(--theme-accent);
  color: var(--theme-primary);
  font-weight: 600;
}

.dashboard-nav-link.text-danger:hover {
  background: #fff0f0;
  color: #dc3545 !important;
}

/* Quantity stepper */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8cdd2;
  border-radius: 0.5rem;
  overflow: hidden;
  height: 38px;
}

.qty-btn {
  width: 36px;
  height: 100%;
  background: #f8f0f2;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--theme-primary);
  cursor: pointer;
  transition: background 0.15s ease;
  line-height: 1;
  padding: 0;
}

.qty-btn:hover {
  background: var(--theme-primary);
  color: #fff;
}

.qty-btn:active {
  background: var(--theme-primary-dark);
  color: #fff;
}

.qty-input {
  width: 46px;
  height: 100%;
  text-align: center;
  border: none;
  border-left: 1px solid #d8cdd2;
  border-right: 1px solid #d8cdd2;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  background: #fff;
  -moz-appearance: textfield;
  appearance: textfield;
  outline: none;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Toast notification */
#appToast {
  min-width: 260px;
  max-width: 340px;
}

#appToast.toast-success {
  background: #1e6b3a;
  color: #fff;
}

#appToast.toast-error {
  background: #8c1d40;
  color: #fff;
}

/* Auth page tabs */
.auth-tab {
  color: #555;
  background: #f8f0f2;
  border: 1px solid #e8d7dd;
  border-radius: 0.6rem !important;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.auth-tab:hover {
  background: #f2e4e9;
  color: var(--theme-primary);
  border-color: #d9b8c2;
}

.auth-tab.active,
.auth-tab:focus {
  background: var(--theme-primary) !important;
  border-color: var(--theme-primary) !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(140, 29, 64, 0.25);
}

.auth-tab .bi {
  font-size: 0.95rem;
}

/* Shop listing pagination */
.shop-pagination-card {
  background: linear-gradient(180deg, #fff 0%, #fdfbfc 100%);
  border: 1px solid #eadfe3;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 28px rgba(58, 15, 32, 0.07);
}

.shop-pagination-summary {
  text-align: center;
  font-size: 0.9rem;
  color: #5c5c5c;
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
}

.shop-pagination-summary strong {
  color: var(--theme-primary-dark);
  font-weight: 600;
}

.pagination.shop-pagination-pills {
  gap: 0.35rem;
}

.pagination.shop-pagination-pills .page-link {
  border-radius: 2rem;
  border: 1px solid #e5d5dc;
  color: #444;
  min-width: 2.5rem;
  text-align: center;
  padding: 0.45rem 0.75rem;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.pagination.shop-pagination-pills .page-link:hover {
  background: var(--theme-accent);
  border-color: #d4b8c4;
  color: var(--theme-primary-dark);
}

.pagination.shop-pagination-pills .page-item.active .page-link {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(140, 29, 64, 0.3);
}

.pagination.shop-pagination-pills .page-item.disabled .page-link {
  background: #f5f0f2;
  color: #aaa;
  border-color: #ebe4e7;
}

.pagination.shop-pagination-pills .shop-page-arrow {
  min-width: 2.75rem;
  padding-inline: 0.65rem;
}

.pagination.shop-pagination-pills .shop-page-arrow .bi {
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 575px) {
  .brand-lockup .brand-mark {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 991px) {
  .hero-image { height: 320px; }
  .mega-dropdown .dropdown-menu { width: 100%; }
  .mega-dropdown:hover .dropdown-menu { display: none; }
  .header-tools { gap: 0.5rem !important; }
  .account-link strong { font-size: 0.8rem; }
  .nav-main .nav-link { text-transform: none; font-size: 0.95rem; }
  .carousel-caption { bottom: 1.5rem; max-width: 92%; }
  .carousel-caption h2 { font-size: 1.2rem; }
  .product-image { height: 250px; }
}


/* =========================================================
   PREMIUM PRODUCT DETAIL PAGE
   ========================================================= */

.product-detail-page {
  --pd-primary: #8c1d40;
  --pd-primary-dark: #6f1633;
  --pd-ink: #241e21;
  --pd-muted: #756b70;
  --pd-border: #e9dfe3;
  --pd-soft: #fbf7f8;
  background: #fff;
}

.product-detail-page .container,
.related-products-section .container {
  max-width: 1240px;
}

/* Breadcrumb */
.product-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #8a8084;
  font-size: 12px;
  line-height: 1.5;
}

.product-breadcrumb a {
  color: #7d304b;
  text-decoration: none;
}

.product-breadcrumb a:hover {
  text-decoration: underline;
}

.product-breadcrumb .current {
  color: #6d6468;
  max-width: 430px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Main two-column product area */
.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
}

/* Gallery */
.product-gallery {
  min-width: 0;
}

.product-main-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 14px;
  background: #f5f1f2;
  border: 1px solid #eee5e8;
}

.product-main-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-sale-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--pd-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
}

.product-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.product-thumb-btn {
  width: 76px;
  height: 90px;
  padding: 3px;
  border: 1px solid #e5dadd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.product-thumb-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.product-thumb-btn:hover,
.product-thumb-btn.active {
  border-color: var(--pd-primary);
  box-shadow: 0 4px 12px rgba(140, 29, 64, .14);
}

.product-thumb-btn.active {
  transform: translateY(-1px);
}

/* Product information */
.product-info-panel {
  min-width: 0;
  padding-top: 3px;
}

.product-category-label,
.section-eyebrow {
  color: var(--pd-primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.product-category-label {
  margin-bottom: 9px;
}

.product-title {
  max-width: 720px;
  margin: 0 0 15px;
  color: var(--pd-ink);
  font-size: clamp(28px, 3vw, 43px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.product-short-description {
  max-width: 680px;
  margin-bottom: 19px;
  color: #5d5458;
}

/* =========================================================
   CKEDITOR CONTENT NORMALIZATION
   Database HTML should look like storefront content, not
   pasted editor HTML.
   ========================================================= */

.ckeditor-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  color: #51484c;
  font-family: inherit !important;
  font-size: 14px;
  line-height: 1.75;
  text-align: left !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

.ckeditor-content * {
  max-width: 100% !important;
  box-sizing: border-box;
  font-family: inherit !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

.ckeditor-content p {
  display: block;
  margin: 0 0 12px !important;
  padding: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: 400;
  text-align: left !important;
}

.ckeditor-content p:last-child {
  margin-bottom: 0 !important;
}

.ckeditor-content strong,
.ckeditor-content b {
  color: #30272b !important;
  font-weight: 700 !important;
}

.ckeditor-content em,
.ckeditor-content i {
  font-style: italic;
}

.ckeditor-content h1,
.ckeditor-content h2,
.ckeditor-content h3,
.ckeditor-content h4,
.ckeditor-content h5,
.ckeditor-content h6 {
  color: #2a2226 !important;
  font-weight: 650 !important;
  line-height: 1.3 !important;
  margin: 22px 0 9px !important;
  text-align: left !important;
}

.ckeditor-content h1 { font-size: 25px !important; }
.ckeditor-content h2 { font-size: 22px !important; }
.ckeditor-content h3 { font-size: 18px !important; }
.ckeditor-content h4 { font-size: 16px !important; }
.ckeditor-content h5,
.ckeditor-content h6 { font-size: 14px !important; }

.ckeditor-content h1:first-child,
.ckeditor-content h2:first-child,
.ckeditor-content h3:first-child {
  margin-top: 0 !important;
}

.ckeditor-content ul,
.ckeditor-content ol {
  margin: 10px 0 16px !important;
  padding-left: 24px !important;
  text-align: left !important;
}

.ckeditor-content li {
  margin: 0 0 5px !important;
  padding-left: 2px !important;
  line-height: 1.6 !important;
}

.ckeditor-content li::marker {
  color: var(--pd-primary);
}

.ckeditor-content a {
  color: var(--pd-primary) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ckeditor-content img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  margin: 16px 0 !important;
  border-radius: 8px;
}

.ckeditor-content figure {
  display: block;
  width: 100% !important;
  margin: 18px 0 !important;
}

.ckeditor-content figure.image {
  text-align: center !important;
}

.ckeditor-content figure.image img {
  display: inline-block;
  margin: 0 auto !important;
}

.ckeditor-content figcaption {
  margin-top: 7px;
  color: #91868b !important;
  font-size: 12px !important;
  text-align: center !important;
}

.ckeditor-content blockquote {
  margin: 18px 0 !important;
  padding: 12px 16px !important;
  border-left: 3px solid var(--pd-primary) !important;
  border-radius: 0 8px 8px 0;
  background: #fbf5f7;
  color: #6c6065 !important;
}

.ckeditor-content blockquote p {
  margin: 0 !important;
}

.ckeditor-content hr {
  margin: 22px 0 !important;
  border: 0;
  border-top: 1px solid #e9dfe3;
}

.ckeditor-content table {
  width: 100% !important;
  max-width: 100% !important;
  margin: 18px 0 !important;
  border-collapse: separate !important;
  border-spacing: 0;
  table-layout: fixed !important;
  overflow: hidden;
  border: 1px solid #e5dade;
  border-radius: 9px;
}

.ckeditor-content th,
.ckeditor-content td {
  padding: 10px 12px !important;
  border-right: 1px solid #e5dade;
  border-bottom: 1px solid #e5dade;
  color: #50464b !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  text-align: left !important;
  vertical-align: top;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.ckeditor-content th {
  background: #faf2f5;
  color: #5f263c !important;
  font-weight: 700 !important;
}

.ckeditor-content tr:last-child td {
  border-bottom: 0;
}

.ckeditor-content th:last-child,
.ckeditor-content td:last-child {
  border-right: 0;
}

/* Override common CKEditor alignment classes and pasted inline alignment */
.ckeditor-content .text-left,
.ckeditor-content .text-center,
.ckeditor-content .text-right,
.ckeditor-content .text-justify,
.ckeditor-content [style*="text-align"] {
  text-align: left !important;
}

/* Product short description is intentionally compact */
.product-short-description.ckeditor-content {
  font-size: 14px;
  line-height: 1.72;
}

.product-short-description.ckeditor-content h1,
.product-short-description.ckeditor-content h2,
.product-short-description.ckeditor-content h3,
.product-short-description.ckeditor-content h4 {
  margin: 7px 0 !important;
  font-size: 15px !important;
}

/* Price */
.product-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 22px;
}

.product-current-price {
  color: var(--pd-primary);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.product-original-price {
  color: #9a9094;
  font-size: 14px;
  text-decoration: line-through;
}

.product-save-badge {
  padding: 5px 9px;
  border-radius: 5px;
  background: #f6e9ee;
  color: var(--pd-primary-dark);
  font-size: 11px;
  font-weight: 700;
}

/* Product metadata */
.product-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--pd-border);
  border-bottom: 1px solid var(--pd-border);
  margin-bottom: 23px;
}

.product-meta-item {
  min-width: 0;
  padding: 13px 14px 13px 0;
  border-bottom: 1px solid var(--pd-border);
}

.product-meta-item:nth-child(odd) {
  border-right: 1px solid var(--pd-border);
  padding-right: 18px;
}

.product-meta-item:nth-child(even) {
  padding-left: 18px;
}

.product-meta-item:nth-last-child(-n+2) {
  border-bottom: 0;
}

.meta-label {
  display: block;
  margin-bottom: 4px;
  color: #8b8085;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .11em;
}

.meta-value {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #30272b;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #25854b;
}

.out-stock .status-dot {
  background: #c43a3a;
}

/* Purchase */
.product-purchase-box {
  padding: 18px;
  border: 1px solid var(--pd-border);
  border-radius: 10px;
  background: #fff;
}

.purchase-field label {
  display: block;
  margin-bottom: 7px;
  color: #3b3236;
  font-size: 12px;
  font-weight: 600;
}

.product-form-control {
  display: block;
  width: 100%;
  height: 45px;
  padding: 0 13px;
  border: 1px solid #dcd0d5;
  border-radius: 7px;
  outline: none;
  color: #30272b;
  background: #fff;
  font: inherit;
  font-size: 13px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.product-form-control:focus {
  border-color: #b66580;
  box-shadow: 0 0 0 3px rgba(140, 29, 64, .08);
}

.purchase-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
}

.purchase-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}

.product-add-cart {
  min-height: 43px;
  padding: 0 25px;
  border: 1px solid var(--pd-primary);
  border-radius: 7px;
  background: var(--pd-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.product-add-cart:hover:not(:disabled) {
  background: var(--pd-primary-dark);
  box-shadow: 0 7px 17px rgba(140, 29, 64, .18);
  transform: translateY(-1px);
}

.product-add-cart:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.product-wishlist {
  width: 43px;
  min-width: 43px;
  border: 1px solid #d9cdd2;
  border-radius: 7px;
  background: #fff;
  color: var(--pd-primary);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.product-wishlist:hover {
  border-color: var(--pd-primary);
  background: #fcf4f6;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  height: 43px;
  overflow: hidden;
  border: 1px solid #d8cdd2;
  border-radius: 7px;
}

.qty-btn {
  width: 39px;
  height: 100%;
  border: 0;
  background: #faf6f7;
  color: var(--pd-primary);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.qty-btn:hover {
  background: var(--pd-primary);
  color: #fff;
}

.qty-input {
  width: 45px;
  height: 100%;
  padding: 0;
  border: 0;
  border-left: 1px solid #d8cdd2;
  border-right: 1px solid #d8cdd2;
  outline: none;
  background: #fff;
  color: #30272b;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  appearance: textfield;
  -moz-appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

/* Trust */
.product-trust-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.product-trust-row > div {
  min-width: 0;
}

.product-trust-row strong,
.product-trust-row span {
  display: block;
}

.product-trust-row strong {
  color: #4b3d43;
  font-size: 11px;
}

.product-trust-row span {
  margin-top: 3px;
  color: #91868b;
  font-size: 10px;
  line-height: 1.4;
}

/* =========================================================
   FULL-WIDTH DESCRIPTION
   ========================================================= */

.product-description-card {
  margin-top: 56px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--pd-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(52, 24, 35, .045);
}

.description-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--pd-border);
}

.description-heading-row h2,
.related-heading h2 {
  margin: 4px 0 0;
  color: var(--pd-ink);
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -.015em;
}

.product-description-preview {
  color: #51484c;
  font-size: 14px;
  line-height: 1.8;
}

/*
 * Important:
 * We clamp the CONTENT itself, not an arbitrary fixed-height wrapper.
 * This prevents CKEditor paragraphs from being cut in the middle of
 * the page layout.
 */
.product-description-preview:not(.expanded) {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  max-height: 5.4em;
  overflow: hidden;
}

.product-description-preview.expanded {
  display: block !important;
  max-height: none !important;
  overflow: visible !important;
}

.product-description-preview.expanded p,
.product-description-preview.expanded h1,
.product-description-preview.expanded h2,
.product-description-preview.expanded h3,
.product-description-preview.expanded h4,
.product-description-preview.expanded ul,
.product-description-preview.expanded ol,
.product-description-preview.expanded table,
.product-description-preview.expanded figure {
  /* Restore normal spacing when the full content is opened. */
  overflow: visible;
}

.product-see-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pd-primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.product-see-more:hover {
  color: var(--pd-primary-dark);
  text-decoration: underline;
}

.product-share-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #eee5e8;
  color: #8a8085;
  font-size: 11px;
}

.product-share-row a {
  padding: 6px 10px;
  border: 1px solid #ded2d7;
  border-radius: 5px;
  color: #5e5056;
  background: #fff;
  text-decoration: none;
  transition: all .2s ease;
}

.product-share-row a:hover {
  border-color: var(--pd-primary);
  color: var(--pd-primary);
  background: #fcf4f6;
}

/* =========================================================
   RELATED PRODUCTS
   ========================================================= */

.related-products-section {
  padding: 48px 0 64px;
  background: #faf8f9;
  border-top: 1px solid #eee5e8;
}

.related-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.related-heading a {
  color: var(--pd-primary);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.related-heading a:hover {
  text-decoration: underline;
}

/* Prevent legacy product-card CSS from breaking the new grid */
.related-products-section .product-card {
  height: 100%;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {
  .product-detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .product-gallery {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
  }

  .product-info-panel {
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
  }

  .product-title {
    font-size: 34px;
  }

  .product-description-card {
    margin-top: 38px;
  }
}

@media (max-width: 575.98px) {
  .product-detail-page {
    padding-top: 18px !important;
  }

  .product-breadcrumb {
    font-size: 10px;
  }

  .product-breadcrumb .current {
    max-width: 170px;
  }

  .product-main-image-wrap {
    border-radius: 10px;
  }

  .product-thumb-btn {
    width: 61px;
    height: 72px;
  }

  .product-title {
    font-size: 27px;
  }

  .product-current-price {
    font-size: 24px;
  }

  .product-meta-grid {
    grid-template-columns: 1fr;
  }

  .product-meta-item,
  .product-meta-item:nth-child(odd),
  .product-meta-item:nth-child(even) {
    padding: 11px 0;
    border-right: 0;
    border-bottom: 1px solid var(--pd-border);
  }

  .product-meta-item:last-child {
    border-bottom: 0;
  }

  .purchase-row {
    display: block;
  }

  .purchase-actions {
    margin-top: 15px;
    justify-content: stretch;
  }

  .product-add-cart {
    flex: 1;
  }

  .product-trust-row {
    gap: 12px;
  }

  .product-description-card {
    margin-top: 30px;
    padding: 21px 17px;
    border-radius: 10px;
  }

  .description-heading-row h2,
  .related-heading h2 {
    font-size: 21px;
  }

  .ckeditor-content,
  .product-description-preview {
    font-size: 13px;
    line-height: 1.72;
  }

  .related-heading {
    align-items: flex-start;
  }
}