/* ════════════════════════════════════════════════════════════════
   FRAGRANCE DISPLAY PRO — Frontend Card  (v3.3)
   Premium bento layout · fully responsive · serif + sans pairing
════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600;700&display=swap');

.fdp-wrap, .fdp-wrap * { box-sizing: border-box; }
.fdp-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1f2937;
    line-height: 1.55;
    max-width: 1140px;
    margin: 0 auto;
}

/* ═══════════ TOP SPLIT ═══════════ */
.fdp-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 28px;
    background: #fff;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 2px 20px rgba(0,0,0,.06);
    margin-bottom: 18px;
}

/* ── Gallery ── */
.fdp-gallery { display: flex; flex-direction: column; gap: 12px; }
.fdp-gallery__main {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #f7f5f2;
    aspect-ratio: 1/1;
    display: flex; align-items: center; justify-content: center;
}
.fdp-gallery__main-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .45s ease; display: block; cursor: zoom-in;
}
.fdp-gallery__main-img:hover { transform: scale(1.05); }

/* Zoom button */
.fdp-zoom-btn {
    position: absolute; bottom: 14px; right: 14px; z-index: 3;
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(26,26,26,.78); color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .18s, transform .18s;
}
.fdp-zoom-btn:hover { background: #b8860b; transform: scale(1.08); }

.fdp-badge {
    position: absolute; top: 14px; left: 14px;
    padding: 6px 14px; border-radius: 30px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px;
    z-index: 2;
}
.fdp-badge--sale { background: #ef4444; color: #fff; }
.fdp-badge--oos  { background: #6b7280; color: #fff; }
.fdp-gallery__thumbs { display: flex; gap: 9px; flex-wrap: wrap; }
.fdp-gallery__thumb {
    border: 2px solid transparent; border-radius: 9px; overflow: hidden;
    cursor: pointer; padding: 0; background: #f0ece6;
    width: 62px; height: 62px; flex-shrink: 0; transition: border-color .2s;
}
.fdp-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fdp-gallery__thumb:hover, .fdp-gallery__thumb.active { border-color: #b8860b; }

/* Lightbox */
.fdp-lightbox {
    position: fixed; inset: 0; z-index: 99999;
    align-items: center; justify-content: center; padding: 30px;
}
.fdp-lightbox__overlay { position: absolute; inset: 0; background: rgba(10,8,6,.9); cursor: zoom-out; }
.fdp-lightbox__img {
    position: relative; max-width: 92vw; max-height: 88vh;
    object-fit: contain; border-radius: 10px; z-index: 1;
    box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: fdpZoomIn .25s ease;
}
@keyframes fdpZoomIn { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.fdp-lightbox__close {
    position: absolute; top: 22px; right: 26px; z-index: 2;
    width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255,255,255,.15); color: #fff; font-size: 20px; font-weight: 700;
    transition: background .18s;
}
.fdp-lightbox__close:hover { background: #b8860b; }

/* ── Summary ── */
.fdp-summary { display: flex; flex-direction: column; gap: 15px; }
.fdp-summary__id { display: flex; flex-direction: column; gap: 5px; }
.fdp-brand {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; color: #b8860b;
}
.fdp-product-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 700; color: #1a1a1a; line-height: 1.12;
    margin: 0; letter-spacing: -.3px;
}
.fdp-product-sub { font-size: 13.5px; color: #9ca3af; margin: 0; letter-spacing: .3px; }

.fdp-gender-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.fdp-gpill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 14px; border-radius: 30px; font-size: 12px; font-weight: 600;
}
.fdp-gpill--women  { background: #fdf2f8; color: #be185d; }
.fdp-gpill--men    { background: #eff6ff; color: #1d4ed8; }
.fdp-gpill--unisex { background: #fdf8e7; color: #9c6f08; }

.fdp-rating { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fdp-rating__num { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 700; line-height: 1; }
.fdp-rating__stars { display: flex; gap: 2px; }
.fdp-star { width: 19px; height: 19px; }
.fdp-star--on polygon  { fill: #f59e0b; }
.fdp-star--off polygon { fill: #e5e7eb; }
.fdp-rating__count { font-size: 13px; color: #9ca3af; }

.fdp-price {
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 700; color: #1a1a1a;
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.fdp-price .woocommerce-Price-amount { color: inherit; }
.fdp-price del { color: #9ca3af; font-size: .72em; font-weight: 500; text-decoration: line-through; }
.fdp-price ins { text-decoration: none; color: #ef4444; }

.fdp-short-desc {
    font-size: 14px; color: #4b5563; line-height: 1.65;
    max-height: 84px; overflow: hidden;
    -webkit-mask: linear-gradient(to bottom,#000 62%,transparent);
    mask: linear-gradient(to bottom,#000 62%,transparent);
}
.fdp-short-desc p { margin: 0; }

.fdp-conc-badge {
    display: inline-block; align-self: flex-start;
    background: #fdf8e7; color: #9c6f08; border: 1px solid #ecdcb0;
    border-radius: 30px; padding: 5px 15px;
    font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}

/* ── Buy area ── */
.fdp-buy-wrap { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.fdp-buy-wrap form.cart { margin: 0 !important; display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.fdp-buy-wrap .quantity { margin: 0 !important; }
.fdp-buy-wrap .quantity input.qty {
    border: 2px solid #e5e7eb !important; border-radius: 11px !important;
    padding: 0 10px !important; height: 52px !important; width: 70px !important;
    font-size: 16px !important; font-weight: 600 !important; text-align: center !important;
    background: #fafafa !important;
}
.fdp-buy-wrap .single_add_to_cart_button,
.fdp-buy-wrap button[type="submit"].button {
    flex: 1 1 auto !important;
    background: linear-gradient(135deg,#c9a227,#b8860b 55%,#9c6f08) !important;
    color: #fff !important; border: none !important; border-radius: 11px !important;
    padding: 0 30px !important; height: 52px !important; min-width: 180px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14.5px !important; font-weight: 700 !important;
    letter-spacing: .5px !important; text-transform: uppercase !important;
    cursor: pointer !important;
    box-shadow: 0 6px 18px rgba(184,134,11,.32) !important;
    transition: transform .18s, box-shadow .18s, opacity .18s !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    line-height: 1 !important;
}
.fdp-buy-wrap .single_add_to_cart_button:hover,
.fdp-buy-wrap button[type="submit"].button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 26px rgba(184,134,11,.42) !important;
    filter: brightness(1.05);
}
.fdp-buy-now {
    display: flex !important; align-items: center; justify-content: center; gap: 7px;
    width: 100%; height: 52px;
    background: #1a1a1a !important; color: #fff !important;
    border: none; border-radius: 11px;
    font-size: 14.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
    text-decoration: none !important; cursor: pointer;
    transition: background .18s, transform .18s;
}
.fdp-buy-now:hover { background: #000 !important; transform: translateY(-2px); color: #fff !important; }

.fdp-quick-meta { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid #f3f4f6; padding-top: 13px; margin-top: 3px; }
.fdp-quick-meta span { font-size: 12.5px; color: #9ca3af; }
.fdp-quick-meta strong { color: #6b7280; font-weight: 600; }

/* ═══════════ DETAILS — 2 balanced columns ═══════════ */
.fdp-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}
.fdp-col { display: flex; flex-direction: column; gap: 18px; }

.fdp-block {
    background: #fff;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 2px 14px rgba(0,0,0,.05);
}
.fdp-block__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px; font-weight: 700; color: #1a1a1a;
    margin: 0 0 16px; letter-spacing: -.2px;
}

/* Accords */
.fdp-accords { display: flex; flex-direction: column; gap: 9px; }
.fdp-accord-bar {
    display: flex; align-items: center;
    padding: 12px 18px; border-radius: 9px;
    color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .2px;
    min-width: 90px; transition: transform .2s;
}
.fdp-accord-bar:hover { transform: translateX(4px); }
.fdp-accord-bar span { text-shadow: 0 1px 3px rgba(0,0,0,.28); }

/* Profile */
.fdp-profile { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fdp-pi {
    background: #faf9fc; border: 1px solid #f0eef7; border-radius: 12px;
    padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
}
.fdp-pi__icon { font-size: 22px; }
.fdp-pi__key { font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: #b6b1c4; font-weight: 700; }
.fdp-pi__val { font-size: 16px; font-weight: 700; color: #374151; }

/* Day / Night */
.fdp-daytime { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fdp-dt {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 13px; border-radius: 11px; font-size: 14px; font-weight: 600;
    background: #f3f4f6; color: #c4c4cc; border: 2px solid transparent; transition: all .2s;
}
.fdp-dt--day.fdp-dt--on   { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.fdp-dt--night.fdp-dt--on { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }

/* Seasons */
.fdp-seasons { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }
.fdp-season {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    padding: 13px 8px; border-radius: 12px;
    background: #f3f4f6; opacity: .4; transition: all .2s;
}
.fdp-season--on { background: var(--sc,#ddd); opacity: 1; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.fdp-season__icon { font-size: 24px; }
.fdp-season__label { font-size: 11px; font-weight: 700; color: #6b7280; }
.fdp-season--on .fdp-season__label { color: var(--stext, #374151); }

/* Notes */
.fdp-notes-tier { margin-bottom: 18px; }
.fdp-notes-tier:last-child { margin-bottom: 0; }
.fdp-notes-tier__label {
    display: block; font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: #a39ec0; margin-bottom: 11px;
}
.fdp-notes { display: flex; flex-wrap: wrap; gap: 12px; }
.fdp-note { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; }
.fdp-note__img {
    width: 68px; height: 68px; border-radius: 14px; object-fit: cover;
    box-shadow: 0 3px 10px rgba(0,0,0,.1); transition: transform .2s;
}
.fdp-note__img:hover { transform: scale(1.08); }
.fdp-note__ph {
    width: 68px; height: 68px; border-radius: 14px; background: #fbf3da;
    display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.fdp-note__name { font-size: 11.5px; font-weight: 600; color: #4b5563; text-align: center; line-height: 1.3; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 900px) {
    .fdp-top { grid-template-columns: 1fr; gap: 22px; padding: 20px; }
    .fdp-details { grid-template-columns: 1fr; }
    .fdp-gallery__main { max-height: 420px; }
}
@media (max-width: 560px) {
    .fdp-top { border-radius: 14px; padding: 16px; }
    .fdp-product-name { font-size: 27px; }
    .fdp-block { padding: 18px; border-radius: 14px; }
    .fdp-block__title { font-size: 20px; }
    .fdp-profile { grid-template-columns: 1fr; }
    .fdp-buy-wrap form.cart { flex-direction: column; }
    .fdp-buy-wrap .quantity input.qty { width: 100% !important; }
    .fdp-buy-wrap .single_add_to_cart_button,
    .fdp-buy-wrap button[type="submit"].button { width: 100% !important; min-width: 0 !important; }
    .fdp-note { width: 64px; }
    .fdp-note__img, .fdp-note__ph { width: 56px; height: 56px; }
}
@media (max-width: 380px) {
    .fdp-seasons { grid-template-columns: repeat(2,1fr); }
    .fdp-gallery__thumb { width: 52px; height: 52px; }
}

/* ═══════════ RELATED PRODUCTS SLIDER ═══════════ */
.fdp-related { margin-top: 22px; }
.fdp-related__head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; padding: 0 4px;
}
.fdp-related__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; color: #1a1a1a; margin: 0;
}
.fdp-related__nav { display: flex; gap: 8px; }
.fdp-rel-btn {
    width: 42px; height: 42px; border-radius: 50%;
    border: 2px solid #e5e7eb; background: #fff; color: #1a1a1a;
    font-size: 22px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .18s; padding: 0;
}
.fdp-rel-btn:hover { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.fdp-rel-btn:disabled { opacity: .35; cursor: default; }
.fdp-rel-btn:disabled:hover { background: #fff; color: #1a1a1a; border-color: #e5e7eb; }

.fdp-related__track {
    display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth;
    padding: 4px 4px 14px; scroll-snap-type: x mandatory;
    -ms-overflow-style: none; scrollbar-width: thin; scrollbar-color: #d1d5db transparent;
}
.fdp-related__track::-webkit-scrollbar { height: 6px; }
.fdp-related__track::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 10px; }
.fdp-related__track::-webkit-scrollbar-track { background: transparent; }

.fdp-rel-card {
    flex: 0 0 auto; width: 220px; scroll-snap-align: start;
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,.06); text-decoration: none !important;
    transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.fdp-rel-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.fdp-rel-card__img-wrap {
    position: relative; aspect-ratio: 1/1; background: #f7f5f2; overflow: hidden;
}
.fdp-rel-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.fdp-rel-card:hover .fdp-rel-card__img { transform: scale(1.07); }
.fdp-rel-badge {
    position: absolute; top: 10px; left: 10px;
    background: #ef4444; color: #fff; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .6px; padding: 4px 11px; border-radius: 20px;
}
.fdp-rel-card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.fdp-rel-card__brand {
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: #b8860b;
}
.fdp-rel-card__name {
    font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 600;
    color: #1a1a1a; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fdp-rel-card__price { font-size: 15px; font-weight: 700; color: #1a1a1a; margin-top: 2px; }
.fdp-rel-card__price del { color: #9ca3af; font-weight: 500; font-size: .85em; }
.fdp-rel-card__price ins { text-decoration: none; color: #ef4444; }

@media (max-width: 560px) {
    .fdp-rel-card { width: 160px; }
    .fdp-rel-card__name { font-size: 17px; }
    .fdp-related__nav { display: none; }
}

/* ═══════════ FULL DESCRIPTION ═══════════ */
.fdp-description { margin-top: 18px; }
.fdp-description__content {
    font-size: 15px; line-height: 1.75; color: #4b5563;
}
.fdp-description__content p { margin: 0 0 14px; }
.fdp-description__content p:last-child { margin-bottom: 0; }
.fdp-description__content h1,.fdp-description__content h2,.fdp-description__content h3,
.fdp-description__content h4 { font-family:'Cormorant Garamond',serif; color:#1a1a1a; margin:18px 0 10px; }
.fdp-description__content ul,.fdp-description__content ol { margin: 0 0 14px 20px; }
.fdp-description__content img { max-width:100%; height:auto; border-radius:10px; }
