/* ==========================================================================
   PDP — AtrAroma Luxury · Navy-Hermes Design System
   ========================================================================== */

/* ── Design Tokens ── */
.pdp {
    --navy:          #1D2A44;
    --navy-light:    #263656;
    --navy-muted:    rgba(29, 42, 68, 0.08);
    --hermes:        #E65A28;
    --hermes-light:  #FF7A4D;
    --hermes-muted:  rgba(230, 90, 40, 0.10);
    --gold:          #C5A059;
    --gold-light:    #D4B76A;
    --cream:         #FDFCF8;
    --warm-gray:     #8A8680;
    --light-bg:      #F5F3EE;
    --light-border:  #EDE8DE;
    --white:         #FFFFFF;
    --black:         #1A1A1A;
    --font-serif:    'Playfair Display', 'Georgia', serif;
    --font-sans:     'Inter', 'Tahoma', sans-serif;
    --radius-sm:     8px;
    --radius-md:     14px;
    --radius-lg:     20px;
    --shadow-sm:     0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md:     0 4px 16px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-lg:     0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-xl:     0 20px 60px rgba(0,0,0,0.10);
    --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Container ── */
.pdp-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Breadcrumb ── */
.pdp-breadcrumb {
    padding: 20px 0;
}

.pdp-breadcrumb__list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
    color: var(--warm-gray);
}

.pdp-breadcrumb__list a {
    color: var(--warm-gray);
    text-decoration: none;
    transition: color var(--transition);
}

.pdp-breadcrumb__list a:hover {
    color: var(--navy);
}

.pdp-breadcrumb__sep {
    display: flex;
    align-items: center;
    color: var(--light-border);
}

.pdp-breadcrumb__current {
    color: var(--navy);
    font-weight: 600;
}

/* ==========================================================================
   Hero Grid
   ========================================================================== */
.pdp-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    padding-bottom: 80px;
}

/* ── Gallery ── */
.pdp-gallery {
    position: sticky;
    top: 100px;
}

.pdp-gallery__stage {
    position: relative;
    aspect-ratio: 1;
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition);
}

.pdp-gallery__stage:hover {
    box-shadow: var(--shadow-lg);
}

.pdp-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdp-gallery__stage.is-zoomed {
    cursor: zoom-out;
}

.pdp-gallery__stage.is-zoomed .pdp-gallery__img {
    transform: scale(1.6);
}

.pdp-gallery__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pdp-badge--male {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.pdp-badge--female {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.25);
}

.pdp-badge--unisex {
    background: var(--hermes-muted);
    color: var(--hermes);
    border: 1px solid rgba(230, 90, 40, 0.25);
}

.pdp-gallery__zoom-hint {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.pdp-gallery__stage:hover .pdp-gallery__zoom-hint {
    opacity: 1;
}

.pdp-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    z-index: 3;
    color: var(--navy);
}

.pdp-gallery__arrow:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-50%) scale(1.08);
}

.pdp-gallery__arrow--prev { left: 14px; }
.pdp-gallery__arrow--next { right: 14px; }

.pdp-gallery__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--light-border) transparent;
}

.pdp-gallery__thumbs::-webkit-scrollbar { height: 3px; }
.pdp-gallery__thumbs::-webkit-scrollbar-thumb { background: var(--light-border); border-radius: 3px; }

.pdp-gallery__thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    opacity: 0.45;
    background: none;
    padding: 0;
}

.pdp-gallery__thumb.is-active {
    border-color: var(--navy);
    opacity: 1;
    box-shadow: 0 0 0 3px var(--navy-muted);
}

.pdp-gallery__thumb:hover {
    opacity: 0.75;
}

.pdp-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Product Info
   ========================================================================== */
.pdp-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Header ── */
.pdp-info__header {
    margin-bottom: 28px;
}

.pdp-info__brand {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--hermes);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 12px;
    padding: 5px 12px;
    background: var(--hermes-muted);
    border-radius: 50px;
}

.pdp-info__title {
    font-family: var(--font-serif);
    font-size: 34px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.25;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.pdp-info__subtitle {
    font-size: 15px;
    color: var(--warm-gray);
    margin: 0;
    font-weight: 400;
}

/* ── Pricing ── */
.pdp-info__pricing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: var(--navy-muted);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.pdp-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.pdp-price__current {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.pdp-price__amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.pdp-price__currency {
    font-size: 13px;
    font-weight: 500;
    color: var(--warm-gray);
}

.pdp-price__regular {
    font-size: 16px;
    color: var(--warm-gray);
    text-decoration: line-through;
    font-weight: 400;
}

.pdp-price__badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: var(--hermes);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
    letter-spacing: 0.02em;
}

.pdp-stock {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.pdp-stock__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.pdp-stock--in .pdp-stock__dot  { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.4); }
.pdp-stock--in                   { color: #16a34a; }
.pdp-stock--low .pdp-stock__dot  { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.4); }
.pdp-stock--low                  { color: #d97706; }
.pdp-stock--out .pdp-stock__dot  { background: #ef4444; }
.pdp-stock--out                  { color: #dc2626; }

/* ── Cart ── */
.pdp-cart {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.pdp-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--light-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
}

.pdp-qty__btn {
    width: 48px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--navy);
    transition: background var(--transition);
}

.pdp-qty__btn:hover {
    background: var(--light-bg);
}

.pdp-qty__input {
    width: 52px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-sans);
    border: none;
    outline: none;
    color: var(--navy);
    -moz-appearance: textfield;
}

.pdp-qty__input::-webkit-inner-spin-button,
.pdp-qty__input::-webkit-outer-spin-button { -webkit-appearance: none; }

.pdp-add-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 28px;
    height: 54px;
    background: var(--navy);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-sans);
    letter-spacing: 0.06em;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.pdp-add-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--hermes), var(--hermes-light));
    opacity: 0;
    transition: opacity var(--transition);
}

.pdp-add-btn:hover::before {
    opacity: 1;
}

.pdp-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(230, 90, 40, 0.3);
}

.pdp-add-btn:active {
    transform: translateY(0);
}

.pdp-add-btn:disabled {
    background: var(--warm-gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pdp-add-btn:disabled::before { display: none; }

.pdp-add-btn svg,
.pdp-add-btn span {
    position: relative;
    z-index: 1;
}

/* ── Wishlist & Compare Actions ── */
.pdp-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}

.pdp-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    background: var(--white);
    border: 1.5px solid var(--light-border);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-sans);
    color: var(--navy);
    cursor: pointer;
    transition: all var(--transition);
}

.pdp-action-btn:hover {
    border-color: var(--navy);
    background: var(--navy-muted);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.pdp-action-btn--active {
    border-color: var(--hermes);
    color: var(--hermes);
    background: var(--hermes-muted);
}

.pdp-action-btn--active:hover {
    border-color: var(--hermes);
    background: rgba(230, 90, 40, 0.15);
}

/* ==========================================================================
   شناسنامه عطر (ID Card)
   ========================================================================== */
.pdp-id-card {
    background: var(--white);
    border: 1px solid var(--light-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 28px;
    transition: box-shadow var(--transition);
}

.pdp-id-card:hover {
    box-shadow: var(--shadow-md);
}

.pdp-id-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 24px;
    background: var(--navy);
    color: var(--white);
}

.pdp-id-card__icon {
    opacity: 0.7;
}

.pdp-id-card__title {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.02em;
}

.pdp-id-card__body {
    padding: 4px 0;
}

.pdp-id-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 24px;
    border-bottom: 1px solid rgba(237, 232, 222, 0.6);
    transition: background var(--transition);
}

.pdp-id-card__row:last-child {
    border-bottom: none;
}

.pdp-id-card__row:hover {
    background: var(--light-bg);
}

.pdp-id-card__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--warm-gray);
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.pdp-id-card__value {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdp-id-card__value--en {
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0.02em;
    direction: ltr;
}

.pdp-id-card__thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--light-border);
}

.pdp-id-card__tag {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
}

.pdp-id-card__tag--male {
    background: rgba(59, 130, 246, 0.10);
    color: #3b82f6;
}

.pdp-id-card__tag--female {
    background: rgba(236, 72, 153, 0.10);
    color: #ec4899;
}

.pdp-id-card__tag--unisex {
    background: var(--hermes-muted);
    color: var(--hermes);
}

/* ==========================================================================
   Accordion
   ========================================================================== */
.pdp-accordion {
    border-top: 1px solid var(--light-border);
}

.pdp-accordion__item {
    border-bottom: 1px solid var(--light-border);
}

.pdp-accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: right;
    transition: color var(--transition);
}

.pdp-accordion__trigger:hover {
    color: var(--hermes);
}

.pdp-accordion__label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    transition: color var(--transition);
}

.pdp-accordion__trigger:hover .pdp-accordion__label {
    color: var(--hermes);
}

.pdp-accordion__marker {
    width: 4px;
    height: 20px;
    background: var(--hermes);
    border-radius: 2px;
    transition: height var(--transition);
}

.pdp-accordion__chevron {
    color: var(--warm-gray);
    transition: transform var(--transition), color var(--transition);
    flex-shrink: 0;
}

.pdp-accordion__chevron.is-open {
    transform: rotate(180deg);
    color: var(--hermes);
}

.pdp-accordion__body {
    padding: 0 0 24px;
}

/* ── Notes Groups ── */
.pdp-notes-group {
    margin-bottom: 20px;
}

.pdp-notes-group:last-child {
    margin-bottom: 0;
}

.pdp-notes-group__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.pdp-notes-group__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pdp-notes-group__title {
    font-size: 11px;
    font-weight: 700;
    color: var(--warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0;
}

.pdp-notes-group__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pdp-note-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--light-bg);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    transition: all var(--transition);
    border: 1px solid transparent;
}

.pdp-note-chip:hover {
    background: var(--white);
    border-color: var(--light-border);
    box-shadow: var(--shadow-sm);
}

.pdp-note-chip__img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* ── Description ── */
.pdp-description {
    font-size: 14px;
    color: #555;
    line-height: 1.9;
}

.pdp-description p {
    margin-bottom: 14px;
}

.pdp-description p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Related Products
   ========================================================================== */
.pdp-related {
    background: var(--light-bg);
    padding: 80px 0;
    margin-top: 40px;
}

.pdp-related__header {
    text-align: center;
    margin-bottom: 44px;
}

.pdp-related__title {
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 8px;
}

.pdp-related__sub {
    font-size: 14px;
    color: var(--warm-gray);
    margin: 0;
}

.pdp-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pdp-related-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--light-border);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
}

.pdp-related-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--navy-muted);
}

.pdp-related-card__img-wrap {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--light-bg);
}

.pdp-related-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdp-related-card:hover .pdp-related-card__img {
    transform: scale(1.08);
}

.pdp-related-card__body {
    padding: 18px;
}

.pdp-related-card__brand {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--hermes);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 6px;
}

.pdp-related-card__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pdp-related-card__price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 0;
}

.pdp-related-card__amount {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}

.pdp-related-card__currency {
    font-size: 11px;
    font-weight: 400;
    color: var(--warm-gray);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1023px) {
    .pdp-hero {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .pdp-gallery {
        position: static;
    }

    .pdp-info__title {
        font-size: 28px;
    }

    .pdp-related__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .pdp-container {
        padding: 0 16px;
    }

    .pdp-gallery__stage {
        border-radius: var(--radius-md);
    }

    .pdp-gallery__arrow {
        width: 36px;
        height: 36px;
    }

    .pdp-gallery__thumb {
        width: 56px;
        height: 56px;
    }

    .pdp-info__title {
        font-size: 24px;
    }

    .pdp-info__pricing {
        padding: 16px 18px;
    }

    .pdp-price__amount {
        font-size: 24px;
    }

    .pdp-id-card__header {
        padding: 14px 18px;
    }

    .pdp-id-card__row {
        padding: 11px 18px;
    }

    .pdp-related {
        padding: 60px 0;
    }

    .pdp-related__title {
        font-size: 24px;
    }

    .pdp-related__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .pdp-info__title {
        font-size: 22px;
    }

    .pdp-cart {
        flex-direction: column;
    }

    .pdp-qty {
        justify-content: center;
    }

    .pdp-related__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .pdp-related-card__body {
        padding: 14px;
    }
}
