/* ── TOP BAR ── */
.topbar { background: var(--dark); color: #ccc; font-size: 12px; padding: 7px 0; }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.topbar-left { display: flex; align-items: center; gap: 6px; }
.topbar-right { display: flex; gap: 24px; align-items: center; }
.topbar-right a { color: #ccc; }
.topbar-right a:hover { color: white; }

/* ── HEADER ── */
.header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 6px rgba(0,0,0,0.06); }
.header-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 40px; }
.logo-text { font-size: 30px; font-style: italic; font-weight: 700; color: var(--gold); font-family: 'Georgia', serif; letter-spacing: -1px; }
nav { display: flex; gap: 8px; flex: 1; }
nav a { font-size: 13px; font-weight: 500; color: var(--text-main); padding: 8px 12px; border-radius: 4px; transition: background 0.15s; white-space: nowrap; }
nav a:hover { background: var(--gold-light); color: var(--gold-dark); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

/* ── BREADCRUMB ── */
.breadcrumb { max-width: 1280px; margin: 0 auto; padding: 16px 24px 0; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb span { color: var(--text-light); }

/* ── PRODUCT MAIN ── */
.product-main { max-width: 1280px; margin: 0 auto; padding: 24px 24px 48px; display: grid; grid-template-columns: 1fr 480px; gap: 60px; }

/* LEFT: images */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-main {
    background: var(--cream);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

/* Main product image */
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s;
    position: relative;
    z-index: 1;
}

.gallery-main:hover img {
    transform: scale(1.04);
}

/* Product badges */
.badge-wrap {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
    pointer-events: none;
}

.badge {
    position: relative;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 2px;
    letter-spacing: 0.5px;
    line-height: 1.2;
    white-space: nowrap;
}

.badge-unit {
    background: var(--gold);
    color: white;
}

.badge-hot {
    background: var(--dark);
    color: white;
}

.badge-sale {
    background: var(--red);
    color: white;
}


/* Gallery thumbnails */
.gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumb {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    background: var(--cream);
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.15s;
}

.thumb.active {
    border-color: var(--gold);
}

.thumb:hover {
    border-color: var(--gold-dark);
}

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

/* RIGHT: info */
.product-info { display: flex; flex-direction: column; gap: 20px; }
.product-brand { font-size: 12px; font-weight: 700; color: var(--gold-dark); letter-spacing: 1.5px; text-transform: uppercase; }
.product-title { font-size: 26px; font-weight: 800; line-height: 1.2; }
.product-sku { font-size: 11px; color: var(--text-light); }

/* Rating */
.rating-row { display: flex; align-items: center; gap: 10px; }
.stars { display: flex; gap: 2px; }
.rating-score { font-size: 14px; font-weight: 700; }
.rating-count { font-size: 12px; color: var(--text-muted); }
.rating-count a { color: var(--gold-dark); }

/* Price */
.price-row { display: flex; align-items: flex-end; gap: 12px; }
.price-main { font-size: 32px; font-weight: 800; }
.price-old { font-size: 18px; color: var(--text-muted); text-decoration: line-through; }
.price-save { font-size: 12px; font-weight: 700; color: var(--red); background: #fef2f2; padding: 3px 8px; border-radius: 2px; }
.price-vat { font-size: 11px; color: var(--text-muted); }

/* Variants */
.var-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.var-label span { font-weight: 400; color: var(--text-muted); text-transform: none; letter-spacing: 0; }
.size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-opt { border: 1.5px solid var(--border); padding: 8px 18px; font-size: 13px; font-weight: 600; cursor: pointer; border-radius: 2px; transition: all 0.15s; background: white; }
.size-opt:hover { border-color: var(--gold); color: var(--gold-dark); }
.size-opt.active { border-color: var(--dark); background: var(--dark); color: white; }
.grind-options { display: flex; gap: 8px; flex-wrap: wrap; }
.grind-opt { border: 1.5px solid var(--border); padding: 8px 14px; font-size: 12px; font-weight: 500; cursor: pointer; border-radius: 2px; transition: all 0.15s; background: white; display: flex; align-items: center; gap: 6px; }
.grind-opt:hover { border-color: var(--gold); }
.grind-opt.active { border-color: var(--dark); background: var(--dark); color: white; }

/* Qty + CTA */
.add-row { display: flex; gap: 10px; align-items: stretch; }
.qty-ctrl { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 2px; overflow: hidden; }
.qty-btn { width: 42px; height: 52px; border: none; background: transparent; font-size: 18px; font-weight: 500; cursor: pointer; color: var(--text-main); transition: background 0.15s; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: var(--gold-light); }
.qty-val { width: 48px; text-align: center; font-size: 16px; font-weight: 700; border: none; outline: none; background: transparent; }
.btn-add-main { flex: 1; padding: 0 28px; background: var(--dark); color: white; border: none; font-size: 14px; font-weight: 700; letter-spacing: 0.5px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 2px; transition: background 0.2s; }
.btn-add-main:hover { background: #333; }
.btn-wish-main { width: 52px; height: 52px; border: 1.5px solid var(--border); background: white; border-radius: 2px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all 0.15s; flex-shrink: 0; }
.btn-wish-main:hover { border-color: #e44; color: #e44; }
.btn-wish-main.active { border-color: #e44; color: #e44; background: #fff5f5; }

/* Stock & Features */
.stock-row { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.stock-text { color: var(--green); font-weight: 600; }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feat-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px; background: var(--cream); border-radius: 4px; }
.feat-icon { flex-shrink: 0; width: 36px; height: 36px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold-dark); }
.feat-title { font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.feat-sub { font-size: 11px; color: var(--text-muted); }
.divider { height: 1px; background: var(--border); }

/* Shipping info */
.ship-info { display: flex; flex-direction: column; gap: 10px; }
.ship-row { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.ship-row svg { color: var(--gold-dark); flex-shrink: 0; }

/* ── TABS ── */
.tabs-section { max-width: 1280px; margin: 0 auto; padding: 0 24px 60px; }
.tabs-nav { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 32px; gap: 0; }
.tab-btn { padding: 14px 28px; font-size: 14px; font-weight: 600; border: none; background: transparent; cursor: pointer; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color 0.15s; letter-spacing: 0.3px; }
.tab-btn.active { color: var(--dark); border-bottom-color: var(--dark); }
.tab-btn:hover { color: var(--dark); }
.tab-panel { display: none; padding: 16px 0; }
.tab-panel.active { display: block; }

/* Description */
.desc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.desc-text h3 { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.desc-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; font-size: 14px; }
.desc-text ul { list-style: disc; padding-left: 20px; color: var(--text-muted); font-size: 14px; line-height: 2; }
.desc-img { background: var(--cream); border-radius: 4px; overflow: hidden; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }
.desc-img video { width: 100%; height: 100%; object-fit: cover; }

/* Aroma wheel */
.aroma-section { margin-top: 32px; }
.aroma-title { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.aroma-bars { display: flex; flex-direction: column; gap: 12px; }
.aroma-bar-row { display: flex; align-items: center; gap: 12px; }
.aroma-label { width: 100px; font-size: 12px; font-weight: 600; color: var(--text-muted); text-align: right; }
.aroma-track { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.aroma-fill { height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold)); border-radius: 4px; transition: width 1s cubic-bezier(0.4,0,0.2,1); }
.aroma-val { width: 32px; font-size: 12px; font-weight: 700; color: var(--gold-dark); }

/* Specs table */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border-light); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td { padding: 14px 16px; font-size: 13px; }
.specs-table td:first-child { font-weight: 600; color: var(--text-muted); width: 220px; background: var(--cream); }
.specs-table tr:nth-child(even) td:first-child { background: #f5f2ec; }

/* Reviews */
.reviews-top { display: flex; gap: 30px; background: var(--cream-light, #fdfbf7); border: 1px solid rgba(200, 164, 90, 0.2); border-radius: 12px; padding: 20px; margin-bottom: 24px; align-items: center; }
.rating-big { text-align: center; padding-right: 20px; border-right: 1px solid #e5e5e5; min-width: 140px; }
.rating-big .num { font-size: 38px; font-weight: 800; color: var(--text-main, #1a1a1a); line-height: 1; }
.stars-lg { display: flex; justify-content: center; gap: 2px; margin: 6px 0; color: var(--gold-dark, #C8A45A); }
.stars-lg svg { width: 16px; height: 16px; }
.star-muted { opacity: 0.25; }
.rating-big .count { font-size: 11px; color: #777; }
.rating-bars-wrap { flex-grow: 1; }
.rating-bars { display: flex; flex-direction: column; gap: 6px; }
.rb-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.rb-label { width: 32px; font-weight: 600; }
.rb-track { flex-grow: 1; height: 8px; background: #eee; border-radius: 4px; overflow: hidden; }
.rb-fill { height: 100%; background: var(--gold-dark, #C8A45A); border-radius: 4px; }
.rb-count { width: 24px; text-align: right; color: #888; }
.review-list { display: flex; flex-direction: column; gap: 16px; }

/* ── RELATED ── */
.related-section { background: var(--cream); padding: 48px 0; }
.related-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-size: 20px; font-weight: 800; letter-spacing: 0.5px; }
.see-all { color: var(--gold-dark); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 4px; }
.rel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ── UC TOAST POPUP ── */
.uc-toast-area { position: fixed; right: 20px; bottom: 20px; z-index: 999999; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.uc-toast { pointer-events: auto; display: flex; gap: 12px; align-items: center; background: #ffffff; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.18); padding: 14px 16px; width: 320px; font-family: inherit; animation: slideIn .25s ease-out; border: 1px solid #eee; }
.uc-toast img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.uc-toast .uc-info { flex: 1; min-width: 0; }
.uc-toast .uc-title { font-weight: 700; font-size: 13px; color: #2e7d32; margin-bottom: 2px; }
.uc-toast .name { font-weight: 600; font-size: 14px; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-toast .meta { font-size: 12px; color: #666; margin-top: 2px; }
.uc-toast .uc-close { background: none; border: none; font-size: 18px; color: #aaa; cursor: pointer; }
@keyframes slideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.uc-toast.hide { animation: fadeOut .25s forwards; }
@keyframes fadeOut { to { opacity: 0; transform: translateY(15px); } }

@media (max-width: 768px) {
  .product-main { grid-template-columns: 1fr; gap: 30px; }
  .desc-grid { grid-template-columns: 1fr; }
  .rel-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-top { flex-direction: column; align-items: stretch; }
  .rating-big { border-right: none; border-bottom: 1px solid #e5e5e5; padding-right: 0; padding-bottom: 14px; }
}