/* ──────────────────────────────────────────────
   Evara / Dhaari Sutra — Product Detail Page
   Matches evara.css theme (copper + cream)
────────────────────────────────────────────── */

.pdp-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* ── Breadcrumb ── */
  .pdp-breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 24px 6px;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  .pdp-breadcrumb a { color: var(--muted); transition: color var(--transition); }
  .pdp-breadcrumb a:hover { color: var(--copper); }
  .pdp-breadcrumb .sep { color: var(--muted-light); }
  .pdp-breadcrumb .active { color: var(--brown-dark); font-weight: 600; }

  /* ── Layout ── */
  .pdp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    padding: 20px 0 12px;
  }

  /* ── Gallery ── */
  .pdp-gallery {
    display: flex;
    gap: 16px;
    position: sticky;
    top: 90px;
    align-self: start;
  }
  .pdp-thumbs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
  }
  .pdp-thumb {
    width: 76px;
    height: 96px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: var(--off-white);
    transition: border-color var(--transition), transform var(--transition);
  }
  .pdp-thumb img { width: 100%; height: 100%; }
  .pdp-thumb:hover { transform: translateY(-2px); }
  .pdp-thumb.active { border-color: var(--copper); }

  .pdp-main-img {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--off-white);
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 5;
    position: relative;
  }
  .pdp-main-img img {
    width: 100%;
    height: 100%;
    transition: opacity 0.35s ease;
  }

  /* ── Info ── */
  .pdp-info { padding-top: 6px; }

  .pdp-hindi {
    font-family: 'Noto Sans Devanagari', var(--font-sans);
    font-size: 15px;
    color: var(--copper);
    font-weight: 500;
  }
  .pdp-tag {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    margin-left: 8px;
    vertical-align: middle;
    color: #fff;
    background: var(--copper);
  }
  .pdp-tag.best { background: var(--copper-dark); }
  .pdp-tag.new  { background: #2e6f6a; }
  .pdp-tag.fast { background: #c98a3b; color: var(--brown-dark); }
  .pdp-tag.most { background: var(--brown-mid); }

  .pdp-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--brown-dark);
    line-height: 1.1;
    margin: 8px 0 6px;
  }
  .pdp-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 18px;
    color: var(--brown-mid);
    margin-bottom: 14px;
  }

  .pdp-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 18px;
    flex-wrap: wrap;
  }
  .pdp-rating .stars { color: #E8A93C; letter-spacing: 1px; font-size: 15px; }
  .pdp-rating b { color: var(--brown-dark); }

  .pdp-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
  }
  .pdp-price .now {
    font-size: 30px;
    font-weight: 700;
    color: var(--brown-dark);
  }
  .pdp-price .was {
    font-size: 17px;
    color: var(--muted);
    text-decoration: line-through;
  }
  .pdp-price .off {
    font-size: 13px;
    font-weight: 700;
    color: #2e8b57;
    background: rgba(46,139,87,0.12);
    padding: 3px 9px;
    border-radius: 6px;
  }
  .pdp-save {
    font-size: 13px;
    color: var(--brown-mid);
    margin-bottom: 8px;
  }
  .pdp-save b { color: #2e8b57; }

  .pdp-block { margin-top: 26px; }
  .pdp-block-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--brown-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }
  .pdp-block-label span.val { font-weight: 400; color: var(--muted); }
  .pdp-size-guide-link {
    font-size: 13px;
    color: var(--copper);
    text-decoration: underline;
    cursor: pointer;
  }

  /* Colors */
  .color-list { display: flex; gap: 10px; }
  .color-list .c {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--white);
    box-shadow: 0 0 0 1px var(--muted-light);
    transition: transform var(--transition), box-shadow var(--transition);
  }
  .color-list .c:hover { transform: scale(1.08); }
  .color-list .c.active { box-shadow: 0 0 0 2px var(--copper); transform: scale(1.05); }

  /* Sizes */
  .size-list { display: flex; flex-wrap: wrap; gap: 10px; }
  .size-list .s {
    min-width: 46px;
    height: 44px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--muted-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--brown-dark);
    cursor: pointer;
    background: var(--white);
    transition: all var(--transition);
  }
  .size-list .s:hover { border-color: var(--copper); }
  .size-list .s.active { background: var(--copper); border-color: var(--copper); color: #fff; }
  .size-list .s.disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
  .size-hint { font-size: 12px; color: var(--copper); margin-top: 10px; }

  /* Qty + CTA */
  .pdp-buy-row {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
    align-items: stretch;
  }
  .qty-input {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--muted-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--white);
  }
  .qty-input button {
    width: 44px;
    height: 52px;
    font-size: 20px;
    color: var(--brown-dark);
    background: var(--off-white);
    transition: background var(--transition);
  }
  .qty-input button:hover { background: var(--cream-dark); }
  .qty-input span {
    width: 46px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
  }
  .pdp-buy-row .btn-primary,
  .pdp-buy-row .btn-secondary {
    flex: 1 1 180px;
    justify-content: center;
    height: 52px;
  }
  .pdp-buy-row .btn-secondary:disabled,
  .pdp-buy-row .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  /* USP */
  .pdp-usp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
    margin-top: 28px;
    padding: 22px;
    background: var(--off-white);
    border: 1px solid rgba(181,98,42,0.12);
    border-radius: var(--radius-md);
  }
  .pdp-usp .item { display: flex; align-items: center; gap: 12px; }
  .pdp-usp .item i { font-size: 20px; color: var(--copper); width: 24px; text-align: center; }
  .pdp-usp .item b { display: block; font-size: 13px; color: var(--brown-dark); }
  .pdp-usp .item span { font-size: 12px; color: var(--muted); }

  /* Share */
  .pdp-share {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
  }
  .pdp-share a, .pdp-share button {
    color: var(--brown-mid);
    font-size: 13px;
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .pdp-share a:hover, .pdp-share button:hover { color: var(--copper); }

  /* ── Tabs ── */
  .pdp-tabs { margin-top: 64px; }
  .tab-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(181,98,42,0.15);
    margin-bottom: 26px;
    flex-wrap: wrap;
  }
  .tab-nav button {
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color var(--transition), border-color var(--transition);
  }
  .tab-nav button:hover { color: var(--brown-dark); }
  .tab-nav button.active { color: var(--copper); border-bottom-color: var(--copper); }

  .tab-pane { font-size: 15px; color: var(--brown-mid); line-height: 1.8; }
  .tab-pane.hidden { display: none; }
  .tab-pane table { border-collapse: collapse; width: 100%; max-width: 560px; margin-top: 16px; }
  .tab-pane table td { padding: 11px 14px; border: 1px solid rgba(181,98,42,0.12); font-size: 14px; }
  .tab-pane table td:first-child { font-weight: 600; color: var(--brown-dark); width: 180px; background: var(--off-white); }
  .tab-pane ul { padding-left: 20px; list-style: disc; }
  .tab-pane ul li { margin-bottom: 8px; }

  /* Reviews */
  .rev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .review-card {
    background: var(--white);
    border: 1px solid rgba(181,98,42,0.1);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
  }
  .review-card .stars { color: #E8A93C; letter-spacing: 1px; margin-bottom: 10px; }
  .review-card .quote { font-size: 14px; color: var(--brown-mid); font-style: italic; margin-bottom: 16px; }
  .review-card .who { display: flex; align-items: center; gap: 12px; }
  .review-card .avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--copper); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 14px;
  }
  .review-card .who b { display: block; font-size: 14px; color: var(--brown-dark); }
  .review-card .who span { font-size: 12px; color: var(--muted); }
  .review-card .verified { margin-left: auto; font-size: 12px; color: #2e8b57; }

  /* ── Similar section ── */
  .pdp-similar { margin-top: 72px; }
  .pdp-similar-head { text-align: center; margin-bottom: 34px; }
  .pdp-similar-head .kicker {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--copper);
    font-weight: 600;
  }
  .pdp-similar-head h2 {
    font-family: var(--font-serif);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    color: var(--brown-dark);
    margin-top: 8px;
  }
  #catalogGrid .product-thumb-img,
  #catalogGrid .product-thumb-name { cursor: pointer; }

  /* ── Size Guide Modal ── */
  .pdp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45,24,16,0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition);
    z-index: 1000;
  }
  .pdp-modal-overlay.open { opacity: 1; visibility: visible; }
  .pdp-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%);
    width: min(640px, 92vw);
    max-height: 88vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 28px 30px 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), transform var(--transition);
    z-index: 1001;
  }
  .pdp-modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
  .pdp-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
  }
  .pdp-modal-head h3 {
    font-family: var(--font-serif);
    font-size: 26px;
    color: var(--brown-dark);
    font-weight: 700;
  }
  .pdp-modal-close { font-size: 22px; color: var(--muted); transition: color var(--transition); }
  .pdp-modal-close:hover { color: var(--copper); }
  .pdp-modal .sub { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
  .size-table { border-collapse: collapse; width: 100%; }
  .size-table th, .size-table td {
    border: 1px solid rgba(181,98,42,0.15);
    padding: 10px 12px;
    text-align: center;
    font-size: 14px;
  }
  .size-table th { background: var(--off-white); color: var(--brown-dark); font-weight: 600; }
  .size-table tbody tr:nth-child(even) { background: var(--off-white); }

  /* ── Meta row (SKU / Stock) ── */
  .pdp-meta-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
    margin: 14px 0 4px;
  }
  .pdp-meta-row b { color: var(--brown-dark); font-weight: 600; }
  .pdp-meta-row .in-stock #pStock,
  .pdp-meta-row .in-stock span:last-child { color: #2e8b57; }
  .pdp-meta-row .out-stock #pStock,
  .pdp-meta-row .out-stock span:last-child { color: #c0392b; }

  /* ── Wishlist / Compare actions ── */
  .pdp-actions-row {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
  }
  .pdp-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1.5px solid var(--muted-light);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--brown-dark);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
  }
  .pdp-icon-btn:hover { border-color: var(--copper); color: var(--copper); }
  .pdp-icon-btn.active { border-color: var(--copper); color: var(--copper); background: rgba(181,98,42,0.08); }
  .pdp-icon-btn i { font-size: 15px; }

  /* ── Video badge ── */
  .pdp-video-badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(45,24,16,0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background var(--transition);
  }
  .pdp-video-badge:hover { background: var(--copper); }

  /* ── Reviews summary + distribution ── */
  .rev-summary {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(181,98,42,0.12);
  }
  .rev-avg { text-align: center; }
  .rev-avg-num { font-family: var(--font-serif); font-size: 44px; font-weight: 700; color: var(--brown-dark); display: block; line-height: 1; }
  .rev-avg .stars { color: #E8A93C; font-size: 18px; letter-spacing: 2px; }
  .rev-avg-count { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
  .rev-dist { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 6px; }
  .rev-dist-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
  .rev-dist-row > span:first-child { width: 34px; }
  .rev-dist-bar { flex: 1; height: 8px; background: var(--off-white); border-radius: 999px; overflow: hidden; }
  .rev-dist-bar > span { display: block; height: 100%; background: var(--copper); border-radius: 999px; }

  /* ── Review form ── */
  .rev-form-wrap { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(181,98,42,0.12); }
  .rev-form-wrap h4 { font-family: var(--font-serif); font-size: 22px; color: var(--brown-dark); margin-bottom: 14px; }
  .rev-form { display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
  .rev-form textarea {
    border: 1.5px solid var(--muted-light);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 14px;
    font-family: var(--font-sans);
    resize: vertical;
    outline: none;
  }
  .rev-form textarea:focus { border-color: var(--copper); }
  .rev-form-rating { display: flex; flex-direction: row-reverse; gap: 4px; justify-content: flex-end; }
  .rev-form-rating input { display: none; }
  .rev-form-rating label { font-size: 26px; color: var(--muted-light); cursor: pointer; transition: color var(--transition); }
  .rev-form-rating input:checked ~ label,
  .rev-form-rating label:hover,
  .rev-form-rating label:hover ~ label { color: #E8A93C; }

  /* ── Outline button (view more / generic) ── */
  .btn-outline-brand {
    display: inline-block;
    padding: 10px 26px;
    border: 1.5px solid var(--copper);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--copper);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
  }
  .btn-outline-brand:hover { background: var(--copper); color: #fff; }
  .view_more_button { margin: 0 auto; }

  /* ── Responsive ── */
  @media (max-width: 900px) {
    .pdp-grid { grid-template-columns: 1fr; gap: 32px; }
    .pdp-gallery { position: static; }
    .rev-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 560px) {
    .pdp-gallery { flex-direction: column-reverse; }
    .pdp-thumbs { flex-direction: row; }
    .pdp-thumb { width: 64px; height: 80px; }
    .pdp-usp { grid-template-columns: 1fr; }
    .pdp-buy-row .btn-primary,
    .pdp-buy-row .btn-secondary { flex: 1 1 100%; }
  }
