/* ============================================
   AMMOURI PARFUM - MAIN STYLESHEET
   Premium Luxury Perfume E-Commerce Theme
   ============================================ */

/* ============================================
   RESET & BASE STYLES
   ============================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    line-height: 1.2;
    color: var(--text-primary);
}

/* ============================================
   LAYOUT & CONTAINERS
   ============================================ */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.container-wide {
    max-width: var(--container-wide);
}

.container-narrow {
    max-width: var(--container-narrow);
}

.ammouri-main {
    min-height: 60vh;
    position: relative;
    z-index: 1;
}

/* Offset for fixed header on non-hero pages */
body:not(.home) .ammouri-main {
    padding-top: var(--header-height);
}

body:not(.home).has-announcement .ammouri-main {
    padding-top: calc(var(--header-height) + 36px);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: left var(--transition-smooth);
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background: var(--bg-black);
    color: var(--text-white);
    border-color: var(--bg-black);
}

.btn-primary::before {
    background: var(--color-secondary);
}

.btn-primary:hover {
    border-color: var(--color-secondary);
    color: var(--bg-black);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-outline::before {
    background: var(--bg-black);
}

.btn-outline:hover {
    color: var(--text-white);
    border-color: var(--bg-black);
}

.btn-gold {
    background: var(--color-secondary);
    color: var(--bg-black);
    border-color: var(--color-secondary);
}

.btn-gold::before {
    background: var(--bg-black);
}

.btn-gold:hover {
    color: var(--color-secondary);
    border-color: var(--bg-black);
}

.btn-outline-white {
    background: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
}

.btn-outline-white::before {
    background: var(--text-white);
}

.btn-outline-white:hover {
    color: var(--bg-black);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: var(--fs-sm);
}

.btn i {
    font-size: 0.75rem;
    transition: transform var(--transition-base);
}

.btn:hover i {
    transform: translateX(4px);
}

/* ============================================
   SECTION STYLING
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--fs-3xl);
    font-weight: var(--fw-semibold);
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-family: var(--font-accent);
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    font-style: italic;
    font-weight: var(--fw-light);
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: var(--space-sm);
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: var(--space-md) 0 var(--space-lg);
}

.divider-line {
    width: 60px;
    height: 1px;
    background: var(--border-gold);
}

.divider-icon {
    color: var(--color-secondary);
    font-size: var(--fs-xs);
}

.section-cta {
    text-align: center;
    margin-top: var(--space-3xl);
}

/* ============================================
   HERO SECTION
   ============================================ */

.ammouri-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #f5f0ea;
    transition: background-color 0.8s ease;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.1) 100%);
    z-index: 1;
    transition: background 0.8s ease;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: calc(var(--header-height) + 2rem) 0 var(--space-3xl);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    min-height: 80vh;
}

.hero-text {
    padding-right: var(--space-3xl);
}

.hero-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: var(--space-lg);
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--color-secondary);
    background: rgba(201, 169, 110, 0.08);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: var(--fw-bold);
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-family: var(--font-accent);
    font-size: var(--fs-xl);
    color: var(--text-secondary);
    font-style: italic;
    font-weight: var(--fw-light);
    margin-bottom: var(--space-2xl);
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-product-showcase {
    position: relative;
    width: 100%;
    max-width: 500px;
}

/* Luxury Glow Effect — behind the perfume bottle */
.hero-product-showcase::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 320px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.45) 0%,
            rgba(255, 255, 255, 0.2) 30%,
            rgba(255, 255, 255, 0) 70%);
    filter: blur(30px);
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: heroPulse 4s ease-in-out infinite;
}

@keyframes heroPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1;
    }
}

.hero-perfume-image {
    position: relative;
    z-index: 2;
}

.hero-perfume-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.15));
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-14px) rotate(0.5deg);
    }
}

/* Hero Perfume Slider */
.hero-slider {
    position: relative;
    width: 100%;
    min-height: 400px;
    animation: heroFloat 6s ease-in-out infinite;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.15));
    transition: filter 0.6s ease;
}

.hero-slide.active img {
    filter: drop-shadow(0 25px 70px rgba(0, 0, 0, 0.2));
}

.hero-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: var(--space-lg);
    position: relative;
    z-index: 2;
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--color-secondary);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-base);
}

.hero-slider-dot:hover {
    background: rgba(201, 169, 110, 0.4);
}

.hero-slider-dot.active {
    background: var(--color-secondary);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(201, 169, 110, 0.4);
}

/* Hero Placeholder Bottle */
.hero-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.perfume-bottle-placeholder {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: heroFloat 6s ease-in-out infinite;
}

.bottle-cap {
    width: 30px;
    height: 20px;
    background: linear-gradient(135deg, #c9a96e, #d4b97e);
    border-radius: 4px 4px 0 0;
}

.bottle-neck {
    width: 16px;
    height: 30px;
    background: linear-gradient(135deg, #c9a96e, #b8944f);
}

.bottle-body {
    width: 140px;
    height: 220px;
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.15), rgba(201, 169, 110, 0.3));
    border: 2px solid var(--color-secondary);
    border-radius: 8px 8px 4px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow:
        0 20px 60px rgba(201, 169, 110, 0.2),
        inset 0 0 30px rgba(201, 169, 110, 0.05);
}

.bottle-label {
    font-family: var(--font-heading);
    font-size: var(--fs-md);
    color: var(--color-secondary);
    letter-spacing: 4px;
    text-align: center;
    font-weight: var(--fw-semibold);
}

/* Floating Particles */
.hero-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--color-secondary);
    opacity: 0.15;
}

.floating-particle.p1 {
    width: 80px;
    height: 80px;
    top: 10%;
    right: -10%;
    animation: floatParticle 8s ease-in-out infinite;
}

.floating-particle.p2 {
    width: 50px;
    height: 50px;
    bottom: 20%;
    left: -5%;
    animation: floatParticle 10s ease-in-out infinite 2s;
}

.floating-particle.p3 {
    width: 30px;
    height: 30px;
    top: 40%;
    right: 5%;
    animation: floatParticle 7s ease-in-out infinite 4s;
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.15;
    }

    33% {
        transform: translate(20px, -30px) scale(1.1);
        opacity: 0.25;
    }

    66% {
        transform: translate(-15px, 15px) scale(0.9);
        opacity: 0.1;
    }
}

/* Hero Side Products */
.hero-side-products {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-lg);
    z-index: 3;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 90%;
    overflow-x: auto;
}

.hero-product-mini {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-width: 200px;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: background var(--transition-base);
}

.hero-product-mini:hover {
    background: var(--bg-cream-light);
}

.hero-product-mini-img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.hero-product-mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-product-mini-info h4 {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    white-space: nowrap;
}

.mini-price {
    font-size: var(--fs-xs);
    color: var(--color-secondary);
    font-weight: var(--fw-medium);
}

.mini-add-btn {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    color: var(--color-secondary);
    white-space: nowrap;
    letter-spacing: 0.5px;
    transition: color var(--transition-base);
}

.mini-add-btn:hover {
    color: var(--color-secondary-dark);
}

/* ============================================
   COLLECTIONS / CATEGORY CARDS
   ============================================ */

.ammouri-collections {
    padding: var(--space-5xl) 0;
    background: var(--bg-white);
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-lg);
}

.collection-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.collection-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.collection-card-inner {
    position: relative;
    height: 280px;
}

.collection-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-cream-dark) 100%);
}

.collection-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0) 0%, rgba(26, 26, 26, 0.7) 100%);
    transition: background var(--transition-base);
}

.collection-card:hover .collection-card-overlay {
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.1) 0%, rgba(26, 26, 26, 0.85) 100%);
}

.collection-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-xl);
    z-index: 2;
    text-align: center;
    color: var(--text-white);
}

.collection-icon {
    font-size: var(--fs-xl);
    color: var(--color-secondary);
    margin-bottom: var(--space-sm);
    transition: transform var(--transition-base);
}

.collection-card:hover .collection-icon {
    transform: scale(1.2);
}

.collection-name {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.collection-desc {
    font-size: var(--fs-sm);
    opacity: 0.8;
    font-style: italic;
    font-family: var(--font-accent);
}

.collection-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-top: var(--space-sm);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.collection-card:hover .collection-link {
    opacity: 1;
    transform: translateY(0);
}

.collection-link:hover {
    color: var(--text-white);
}

.collection-link i {
    transition: transform var(--transition-base);
}

.collection-link:hover i {
    transform: translateX(4px);
}

/* ============================================
   FEATURED PRODUCTS SECTION
   ============================================ */

.ammouri-featured-products {
    padding: var(--space-5xl) 0;
    background: var(--bg-section-alt);
}

/* Filter Buttons */
.products-filter {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-3xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    border-radius: 0;
    transition: all var(--transition-base);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--bg-black);
    color: var(--text-white);
    border-color: var(--bg-black);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

/* Product Card */
.product-card {
    position: relative;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-card-inner {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.04);
}

/* Product Image */
.product-card-image {
    position: relative;
    height: auto;
    min-height: unset;
    padding: 1.25rem;
    overflow: hidden;
    background: var(--bg-cream-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}

.product-card-image img {
    max-height: 220px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: opacity 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Primary image — visible by default */
.product-card-image .primary-image {
    position: relative;
    z-index: 1;
    opacity: 1;
}

/* Secondary image — hidden by default, absolutely positioned over primary */
.product-card-image .secondary-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0;
}

/* On hover: crossfade + subtle zoom */
.product-card:hover .product-card-image .primary-image {
    opacity: 0;
    transform: scale(1.06);
}

.product-card:hover .product-card-image .secondary-image {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
}

/* Keep the subtle scale effect on images that don't have a gallery swap */
.product-card:hover .product-card-image img:only-child {
    transform: scale(1.08);
}

/* Product Placeholder */
.product-placeholder-img {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-cream-dark) 100%);
    border-radius: var(--radius-sm);
}

.product-placeholder-img i {
    font-size: 3rem;
    color: var(--color-secondary);
    opacity: 0.4;
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 3;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.65rem;
    font-weight: var(--fw-bold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 2px;
}

.badge-sale {
    background: #c0392b;
    color: var(--text-white);
}

.badge-new {
    background: var(--color-secondary);
    color: var(--bg-black);
}

/* Product Actions Overlay */
.product-card-actions {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 3;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-base);
}

.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
    font-size: var(--fs-sm);
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
}

.product-action-btn:hover {
    background: var(--bg-black);
    color: var(--text-white);
    box-shadow: var(--shadow-lg);
}

.product-action-btn.active {
    background: var(--color-secondary);
    color: var(--bg-black);
}

.product-action-btn.active i {
    font-weight: 900;
}

/* Product Info */
.product-card-info {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    text-align: center;
    margin-top: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 0.25rem;
    display: block;
}

.product-title {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.product-title a {
    color: var(--text-primary);
    transition: color var(--transition-base);
}

.product-title a:hover {
    color: var(--color-secondary);
}

/* Star Rating */
.ammouri-star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.ammouri-star-rating i {
    color: var(--color-secondary);
    font-size: 0.75rem;
}

.product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: var(--space-sm);
}

.rating-value {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    font-weight: var(--fw-medium);
}

.rating-count {
    font-size: var(--fs-xs);
    color: var(--text-light);
    margin-left: 0.25rem;
}

/* Product Price */
.product-price {
    margin-bottom: var(--space-md);
}

.product-price .price,
.product-price .woocommerce-Price-amount {
    font-family: var(--font-body);
    font-size: var(--fs-lg);
    font-weight: var(--fw-regular);
    color: var(--text-primary);
}

.product-price del {
    font-size: var(--fs-sm);
    color: var(--text-light);
    margin-right: 0.5rem;
    font-weight: var(--fw-light);
}

.product-price ins {
    text-decoration: none;
    color: #c0392b;
    font-weight: var(--fw-medium);
}

/* Product Card Buttons Container */
.product-card-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    margin-top: auto;
}

/* Add to Cart Button */
.btn-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 1;
    padding: 0.7rem 0.75rem;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-white);
    background: var(--bg-black);
    border: 2px solid var(--bg-black);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    white-space: normal;
    min-width: 0;
}

.btn-add-to-cart:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--bg-black);
}

.btn-add-to-cart.is-added {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--bg-black);
}

/* Buy Now Button */
.btn-buy-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 1;
    padding: 0.7rem 0.75rem;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--bg-black);
    background: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    white-space: normal;
    min-width: 0;
}

.btn-buy-now:hover {
    background: var(--bg-black);
    border-color: var(--bg-black);
    color: var(--color-secondary);
}

.btn-buy-now i,
.btn-add-to-cart i {
    font-size: 0.75rem;
}

/* Micro-animation: buttons lift slightly when card is hovered */
.product-card:hover .product-card-buttons .btn-add-to-cart,
.product-card:hover .product-card-buttons .btn-buy-now {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   BESTSELLERS SECTION
   ============================================ */

.ammouri-bestsellers {
    padding: var(--space-5xl) 0;
    background: var(--bg-white);
}

.bestsellers-carousel-wrapper {
    position: relative;
    padding: 0 var(--space-3xl);
}

.bestsellers-swiper {
    overflow: hidden;
}

.bestsellers-swiper .swiper-slide {
    height: auto;
}

.bestsellers-swiper .product-card {
    height: 100%;
}

.bestsellers-prev,
.bestsellers-next {
    width: 48px;
    height: 48px;
    background: var(--bg-white) !important;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.bestsellers-prev::after,
.bestsellers-next::after {
    font-size: 14px !important;
    font-weight: bold;
    color: var(--text-primary);
}

.bestsellers-prev:hover,
.bestsellers-next:hover {
    background: var(--bg-black) !important;
    border-color: var(--bg-black);
}

.bestsellers-prev:hover::after,
.bestsellers-next:hover::after {
    color: var(--text-white);
}

/* ============================================
   PROMOTIONAL BANNER
   ============================================ */

.ammouri-promo-banner {
    padding: var(--space-5xl) 0;
    background: var(--bg-section-alt);
}

.promo-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-xl);
    min-height: 400px;
}

.promo-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.promo-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    transition: transform var(--transition-slow);
}

.promo-card:hover .promo-card-bg {
    transform: scale(1.05);
}

.promo-card-bg-2 {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #8b6914 100%);
}

.promo-card-content {
    position: relative;
    z-index: 2;
    padding: var(--space-3xl);
    color: var(--text-white);
}

.promo-label {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: var(--space-md);
    padding: 0.25rem 1rem;
    border: 1px solid var(--color-secondary);
}

.promo-card-bg-2+.promo-card-content .promo-label {
    color: var(--bg-black);
    border-color: var(--bg-black);
}

.promo-title {
    font-family: var(--font-heading);
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    letter-spacing: 3px;
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.promo-card-small .promo-title {
    font-size: var(--fs-4xl);
}

.promo-text {
    font-family: var(--font-accent);
    font-size: var(--fs-lg);
    font-style: italic;
    opacity: 0.9;
    margin-bottom: var(--space-xl);
}

/* ============================================
   BRAND STORY
   ============================================ */

.ammouri-brand-story {
    padding: var(--space-5xl) 0;
    background: var(--bg-white);
}

.brand-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.brand-story-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.brand-story-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.brand-image-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-cream-dark) 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-image-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: inherit;
}

.brand-placeholder-inner {
    text-align: center;
}

.brand-placeholder-inner i {
    font-size: 3rem;
    color: var(--color-secondary);
    opacity: 0.5;
    margin-bottom: var(--space-md);
    display: block;
}

.brand-placeholder-inner span {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    color: var(--color-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.6;
}

.brand-story-accent {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    background: var(--color-secondary);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    z-index: 2;
}

.accent-text {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--bg-black);
    letter-spacing: 2px;
}

.brand-story-content {
    padding-left: var(--space-xl);
}

.brand-story-title {
    font-family: var(--font-heading);
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    letter-spacing: 3px;
    margin-bottom: var(--space-xl);
    line-height: 1.3;
}

.brand-story-text {
    margin-bottom: var(--space-2xl);
}

.brand-story-text p {
    font-size: var(--fs-base);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.brand-story-stats {
    display: flex;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    color: var(--color-secondary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.ammouri-testimonials {
    padding: var(--space-5xl) 0;
    background: var(--bg-cream-light);
}

.testimonials-carousel-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-white);
    padding: var(--space-3xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-card);
    margin: var(--space-md);
}

.testimonial-quote-icon {
    font-size: var(--fs-2xl);
    color: var(--color-secondary);
    opacity: 0.4;
    margin-bottom: var(--space-md);
}

.testimonial-rating {
    margin-bottom: var(--space-lg);
}

.testimonial-text {
    font-family: var(--font-accent);
    font-size: var(--fs-lg);
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-secondary), #8b6914);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-initials {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--text-white);
}

.testimonial-author-info {
    text-align: left;
}

.testimonial-name {
    font-family: var(--font-heading);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
}

.testimonial-title {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.testimonials-pagination {
    margin-top: var(--space-xl) !important;
    position: relative !important;
}

.testimonials-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--border-medium);
    opacity: 1;
    transition: all var(--transition-base);
}

.testimonials-pagination .swiper-pagination-bullet-active {
    background: var(--color-secondary);
    width: 30px;
    border-radius: 5px;
}

/* ============================================
   NEWSLETTER SECTION (on front page)
   ============================================ */

.ammouri-newsletter-section {
    padding: var(--space-5xl) 0;
    background: var(--bg-white);
}

.newsletter-block {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: var(--space-4xl);
    text-align: center;
}

.newsletter-block-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    z-index: 0;
}

.newsletter-block-content {
    position: relative;
    z-index: 1;
    color: var(--text-white);
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-block-title {
    font-family: var(--font-heading);
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    letter-spacing: 4px;
    margin-bottom: var(--space-md);
    color: var(--text-white);
}

.newsletter-block-text {
    font-family: var(--font-accent);
    font-size: var(--fs-lg);
    font-style: italic;
    opacity: 0.8;
    margin-bottom: var(--space-2xl);
}

.newsletter-block-input-group {
    display: flex;
    gap: 0;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-block-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    font-size: var(--fs-sm);
    border-radius: 0;
}

.newsletter-block-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-block-input:focus {
    border-color: var(--color-secondary);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-block-form .btn-primary {
    border-radius: 0;
    white-space: nowrap;
}

/* ============================================
   INSTAGRAM GALLERY
   ============================================ */

.ammouri-instagram {
    padding: var(--space-5xl) 0;
    background: var(--bg-section-alt);
}

.instagram-handle {
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: 3px;
    color: var(--color-secondary);
    margin-top: var(--space-sm);
    transition: color var(--transition-base);
}

.instagram-handle:hover {
    color: var(--color-secondary-dark);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-sm);
}

.instagram-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.instagram-item-inner {
    position: relative;
    padding-top: 100%;
}

.instagram-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-cream-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.instagram-placeholder i {
    font-size: 2rem;
    color: var(--color-secondary);
    opacity: 0.3;
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-overlay i {
    font-size: 1.5rem;
    color: var(--text-white);
}

.instagram-overlay span {
    font-size: var(--fs-xs);
    color: var(--text-white);
    letter-spacing: 1px;
}

/* ============================================
   QUICK VIEW MODAL
   ============================================ */

.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: clamp(22px, 4vh, 48px) 16px;
    box-sizing: border-box;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.35s, opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.quick-view-modal.active {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.quick-view-content {
    position: relative;
    background: var(--bg-white);
    width: min(100%, 860px);
    max-height: min(84vh, 760px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2), 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: scale(0.92) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.quick-view-modal.active .quick-view-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.quick-view-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    z-index: 10;
    font-size: var(--fs-base);
    color: var(--text-primary);
    transition: all 0.25s ease;
    cursor: pointer;
}

.quick-view-close:hover {
    background: var(--bg-black);
    border-color: var(--bg-black);
    color: var(--text-white);
    transform: rotate(90deg);
}

.quick-view-loading {
    display: none;
    padding: var(--space-4xl);
    text-align: center;
}

.quick-view-loading.active {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--color-secondary);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.quick-view-body {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    min-height: 460px;
    gap: 0;
    transition: opacity 0.3s ease;
}

.quick-view-gallery {
    padding: var(--space-2xl);
    background: var(--bg-cream-light);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--space-md);
}

.quick-view-image {
    width: 100%;
    height: 360px;
    max-height: 360px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.78);
    object-fit: contain;
    transition: transform 0.3s ease;
}

.quick-view-image:hover {
    transform: scale(1.02);
}

/* Gallery Thumbnails */
.quick-view-thumbnails {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    min-height: 60px;
    align-content: flex-start;
}

.quick-view-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.25s ease;
}

.quick-view-thumb:hover,
.quick-view-thumb.active {
    border-color: var(--color-secondary);
    opacity: 1;
}

.quick-view-info {
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Stock Badge */
.quick-view-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.quick-view-stock.in-stock {
    color: #27ae60;
}

.quick-view-stock.in-stock::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #27ae60;
    animation: stockPulse 2s ease-in-out infinite;
}

.quick-view-stock.out-of-stock {
    color: #c0392b;
}

@keyframes stockPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.quick-view-title {
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

.quick-view-price {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.quick-view-price del {
    color: var(--text-light);
    font-size: var(--fs-base);
    margin-right: 0.5rem;
}

.quick-view-price ins {
    text-decoration: none;
    color: #c0392b;
}

.quick-view-rating {
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.quick-view-description {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    font-family: var(--font-accent);
    font-style: italic;
}

.quick-view-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    align-items: stretch;
}

.quick-view-actions .btn-add-to-cart {
    flex: 1;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-light);
    border-radius: 0;
    overflow: hidden;
}

.qty-btn {
    width: 42px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-lg);
    font-weight: var(--fw-medium);
    color: var(--text-primary);
    background: transparent;
    border: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.qty-btn:hover {
    background: var(--bg-cream-light);
    color: var(--color-secondary);
}

.qty-input {
    width: 50px;
    height: 46px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    font-weight: var(--fw-semibold);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
}

.quick-view-divider {
    height: 1px;
    background: var(--border-light);
    margin-bottom: var(--space-lg);
}

.quick-view-details-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-primary);
    transition: all 0.25s ease;
}

.quick-view-details-link:hover {
    color: var(--color-secondary);
    gap: 0.75rem;
}

/* ============================================
   BACK TO TOP
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--bg-black);
    color: var(--text-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-sm);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-sticky);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-secondary);
    color: var(--bg-black);
    transform: translateY(-3px);
}

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */

.ammouri-announcement-bar {
    background: var(--bg-black);
    color: var(--text-white);
    padding: 0.6rem 0;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    font-size: var(--fs-xs);
    letter-spacing: 1.5px;
    font-weight: var(--fw-medium);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.ammouri-announcement-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.ammouri-announcement-bar p {
    margin: 0;
}

.ammouri-announcement-bar a {
    color: var(--color-secondary);
    font-weight: var(--fw-semibold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ammouri-announcement-bar a:hover {
    color: var(--color-secondary-light);
}

.ammouri-announcement-bar i {
    margin-right: 0.5rem;
    color: var(--color-secondary);
}

.announcement-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-white);
    font-size: var(--fs-sm);
    opacity: 0.6;
    transition: opacity var(--transition-base);
    cursor: pointer;
}

.announcement-close:hover {
    opacity: 1;
}

/* ============================================
   SELECTION STYLING
   ============================================ */

::selection {
    background: var(--color-secondary);
    color: var(--bg-black);
}

::-moz-selection {
    background: var(--color-secondary);
    color: var(--bg-black);
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-cream-light);
}

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

/* ============================================
   SINGLE PRODUCT PAGE
   ============================================ */

.ammouri-single-product {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(2rem, 4vw, 4.5rem);
    align-items: start;
    margin-top: 0;
}

/* Gallery column */
.ammouri-product-gallery {
    position: relative;
    border: none;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gallery container: thumbnails on the left, large main image on the right */
.ammouri-product-gallery .woocommerce-product-gallery {
    width: 100% !important;
    max-width: 660px;
    margin: 0;
    display: flex !important;
    flex-direction: row-reverse;
    align-items: stretch;
    gap: 16px;
}

/* Main image wrapper — also acts as the viewport when FlexSlider is absent */
.ammouri-product-gallery .flex-viewport,
.ammouri-product-gallery .woocommerce-product-gallery__wrapper {
    width: 100% !important;
    flex: 1 1 auto;
    background: var(--bg-cream-light);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    min-width: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

/* Premium frame interaction for the main image box only */
.ammouri-product-gallery .woocommerce-product-gallery>.flex-viewport::before,
.ammouri-product-gallery .woocommerce-product-gallery>.woocommerce-product-gallery__wrapper::before {
    content: '';
    position: absolute;
    inset: 22px;
    pointer-events: none;
    border: 2px solid rgba(17, 17, 17, 0.3);
    border-radius: 8px;
    opacity: 0.82;
    transition: inset 0.46s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, opacity 0.3s ease;
}

.ammouri-product-gallery .woocommerce-product-gallery>.flex-viewport:hover::before,
.ammouri-product-gallery .woocommerce-product-gallery>.woocommerce-product-gallery__wrapper:hover::before {
    inset: 1px;
    border-color: rgba(17, 17, 17, 0.4);
    opacity: 1;
}

/* When .flex-viewport exists, the inner wrapper should be unstyled */
.ammouri-product-gallery .flex-viewport .woocommerce-product-gallery__wrapper {
    background: transparent;
    padding: 0;
    border-radius: 0;
    aspect-ratio: auto;
    overflow: visible;
    position: static;
    width: 100% !important;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure slides fill the viewport */
.ammouri-product-gallery .flex-viewport .slides,
.ammouri-product-gallery .flex-viewport .slides>li,
.ammouri-product-gallery .flex-viewport .slides>div {
    height: 100%;
    width: 100%;
    flex: 0 0 100%;
}

.ammouri-product-gallery .flex-viewport .slides {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    height: 100%;
}

/* Main product image — contained and centered, no stretching */
.ammouri-product-gallery .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image,
.ammouri-product-gallery .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Stack images on top of each other inside the wrapper viewport */
    position: absolute;
    top: 0;
    left: 0;
}

/* When hidden by jQuery, ensure it stays hidden */
.ammouri-product-gallery .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image[style*="display: none"] {
    position: absolute !important;
}

.ammouri-product-gallery .woocommerce-product-gallery__image img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    padding: 0;
}

/* Thumbnails */
.ammouri-product-gallery .flex-control-thumbs {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 92px !important;
    flex: 0 0 92px;
    order: 0;
}

.ammouri-product-gallery .flex-control-thumbs li {
    float: none !important;
    margin: 0 !important;
    width: 92px !important;
    height: 92px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.ammouri-product-gallery .flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 1px solid #e5e5e5;
    padding: 4px;
    background: #fff;
    border-radius: 6px;
    opacity: 0.65;
    transition: opacity 0.25s ease, border-color 0.25s ease;
}

.ammouri-product-gallery .flex-control-thumbs li img.flex-active,
.ammouri-product-gallery .flex-control-thumbs li:hover img {
    opacity: 1;
    border-color: var(--color-secondary);
}

.ammouri-product-gallery .flex-control-thumbs li:has(img.flex-active) {
    border-color: transparent;
}

/* Single product: keep perfume images completely static (main + thumbnails) */
body.single-product .ammouri-product-gallery .woocommerce-product-gallery__image,
body.single-product .ammouri-product-gallery .woocommerce-product-gallery__image a,
body.single-product .ammouri-product-gallery .woocommerce-product-gallery__image img,
body.single-product .ammouri-product-gallery .flex-control-thumbs li,
body.single-product .ammouri-product-gallery .flex-control-thumbs li img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

body.single-product .ammouri-product-gallery .flex-control-thumbs li:hover img {
    opacity: 0.65;
    border-color: #e5e5e5;
}

/* Sale badge */
.ammouri-product-gallery .onsale {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: var(--fw-semibold);
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 0;
    line-height: 1;
}

.ammouri-single-product .onsale {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: var(--fw-semibold);
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 0;
    line-height: 1;
}

/* Summary column */
.ammouri-product-summary {
    padding-top: 10px;
    margin-top: 0;
    width: 100%;
    max-width: 560px;
    justify-self: start;
}

.ammouri-product-summary .product_title {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 2.8vw, 2.2rem);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.24;
    margin-top: 0;
    margin-bottom: 14px;
    color: var(--text-primary);
}

body.single-product .ammouri-single-product h1.product_title {
    font-size: clamp(1.65rem, 2.5vw, 2.1rem) !important;
    font-weight: 500 !important;
    line-height: 1.28 !important;
    text-transform: capitalize !important;
    margin-bottom: 12px !important;
    letter-spacing: 0.4px !important;
    max-width: 26ch;
}

.ammouri-product-summary .woocommerce-review-link {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
}

.ammouri-product-summary .price {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    flex-wrap: wrap;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 600;
    color: var(--text-primary);
    margin: 8px 0 18px 0 !important;
    letter-spacing: 0.5px;
    direction: ltr;
}

.ammouri-product-summary .price del {
    font-size: 0.8em;
    font-weight: 400;
    color: #9ca3af;
    opacity: 1;
    text-decoration: line-through;
}

.ammouri-product-summary .price del .woocommerce-Price-amount {
    unicode-bidi: isolate;
    direction: ltr;
}

.ammouri-product-summary .price ins {
    text-decoration: none;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--color-secondary);
}

.ammouri-product-summary .price ins .woocommerce-Price-amount {
    unicode-bidi: isolate;
    direction: ltr;
}

.ammouri-product-summary .price .woocommerce-Price-currencySymbol {
    unicode-bidi: isolate;
    direction: rtl;
}

.ammouri-product-summary .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 10px;
}

.ammouri-product-summary .star-rating {
    color: var(--color-secondary);
    font-size: 0.9rem;
}

.ammouri-product-summary .woocommerce-product-details__short-description {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    font-size: var(--fs-base);
    max-width: 48ch;
}

/* CTA area */
.ammouri-product-summary form.cart:not(.variations_form) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.ammouri-product-summary form.cart.variations_form .single_variation_wrap .variations_button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.ammouri-product-summary .quantity {
    margin: 0;
}

.ammouri-product-summary .quantity .qty {
    width: 68px;
    height: 52px;
    text-align: center;
    border: 1px solid var(--border-light);
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    font-family: var(--font-body);
    -moz-appearance: textfield;
}

.ammouri-product-summary .quantity .qty::-webkit-inner-spin-button,
.ammouri-product-summary .quantity .qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add to cart button */
.ammouri-product-summary .single_add_to_cart_button {
    background: var(--bg-black);
    color: var(--text-white);
    width: 100%;
    min-height: 52px;
    padding: 14px 22px;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: var(--fw-semibold);
    letter-spacing: 1.8px;
    text-transform: uppercase;
    border: 2px solid var(--bg-black);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 0;
}

.ammouri-product-summary .single_add_to_cart_button:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--bg-black);
}

.ammouri-product-summary .ammouri-buy-now-button {
    background: transparent !important;
    color: var(--text-primary) !important;
    width: 100%;
    min-height: 52px;
    padding: 14px 22px !important;
    font-family: var(--font-body);
    font-size: 12.5px !important;
    font-weight: var(--fw-semibold);
    letter-spacing: 1.8px;
    text-transform: uppercase;
    border: 2px solid var(--bg-black) !important;
    border-radius: 0 !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.ammouri-product-summary .ammouri-buy-now-button:hover {
    background: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
    color: var(--bg-black) !important;
}

.ammouri-product-summary .ammouri-buy-now-button:disabled,
.ammouri-product-summary .ammouri-buy-now-button.disabled,
.ammouri-product-summary .ammouri-buy-now-button.wc-variation-selection-needed {
    opacity: 0.45;
    cursor: not-allowed;
}

.ammouri-product-summary .yith-wcwl-add-to-wishlist {
    margin-top: 9px;
}

.ammouri-product-summary .yith-wcwl-add-to-wishlist .yith-wcwl-add-button a.add_to_wishlist,
.ammouri-product-summary .yith-wcwl-add-to-wishlist .yith-wcwl-add-button a.single_add_to_wishlist {
    width: 48px !important;
    height: 48px !important;
}

/* Product meta (SKU, categories, tags) */
.ammouri-product-summary .product_meta {
    margin-top: 1.1rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-light);
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.75;
}

.ammouri-product-summary .product_meta>span {
    display: block;
    margin-bottom: 3px;
}

.ammouri-product-summary .product_meta a {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.ammouri-product-summary .product_meta a:hover {
    color: var(--color-secondary);
}

/* Tabs (description, reviews, etc.) */
.ammouri-single-product~.woocommerce-tabs {
    margin-top: clamp(1.5rem, 2.8vw, 2.4rem);
    border-top: 1px solid var(--border-light);
    padding-top: clamp(1rem, 1.8vw, 1.4rem);
}

.woocommerce-tabs ul.tabs {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-xl);
    border-bottom: 1px solid var(--border-light);
}

.woocommerce-tabs ul.tabs li {
    padding: 0;
    margin: 0;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: var(--space-md) 0;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: -1px;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
    color: var(--text-primary);
    border-bottom-color: var(--color-secondary);
}

.woocommerce-tabs .panel {
    max-width: 86ch;
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: var(--fs-base);
}

.woocommerce-tabs .panel h2,
.woocommerce-tabs .panel h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    letter-spacing: 0.6px;
    margin-bottom: 0.75rem;
}

.woocommerce-tabs .panel p {
    margin: 0 0 1rem;
}

/* Responsive: single product */
@media (max-width: 991px) {
    .ammouri-single-product {
        grid-template-columns: 1fr 1fr;
        gap: 34px;
    }

    .ammouri-product-gallery .woocommerce-product-gallery {
        gap: 14px;
    }

    .ammouri-product-gallery .flex-control-thumbs {
        gap: 10px;
        width: 76px !important;
        flex-basis: 76px;
    }

    .ammouri-product-gallery .flex-control-thumbs li {
        width: 76px !important;
        height: 76px;
    }

    .ammouri-product-summary .product_title {
        font-size: 24px;
    }

    body.single-product .ammouri-single-product h1.product_title {
        font-size: 24px !important;
    }

    .ammouri-product-summary .price {
        font-size: 20px;
    }

    .ammouri-product-summary .single_add_to_cart_button {
        padding: 12px 24px;
        font-size: 13px;
    }

    .woocommerce-tabs ul.tabs {
        gap: var(--space-md);
    }

    .woocommerce-tabs ul.tabs li a {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 768px) {
    .ammouri-single-product {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        margin-top: 10px;
    }

    .ammouri-product-gallery {
        position: static;
    }

    /* Switch gallery to column: image on top, horizontal thumbnails below */
    .ammouri-product-gallery .woocommerce-product-gallery {
        flex-direction: column !important;
        max-width: 520px;
        margin: 0 auto;
        gap: 14px;
    }

    .ammouri-product-gallery .woocommerce-product-gallery__wrapper,
    .ammouri-product-gallery .flex-viewport {
        width: 100% !important;
        flex: 0 0 auto;
    }

    .ammouri-product-gallery .flex-control-thumbs {
        flex-direction: row;
        width: 100% !important;
        flex: 0 0 auto;
        justify-content: flex-start;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .ammouri-product-gallery .flex-control-thumbs li {
        width: 64px !important;
        height: 64px;
        flex: 0 0 64px;
    }

    .ammouri-product-summary {
        max-width: 620px;
        margin: 0 auto;
        padding: 0;
    }

    .ammouri-product-summary .product_title {
        font-size: var(--fs-2xl);
    }

    body.single-product .ammouri-single-product h1.product_title {
        font-size: var(--fs-2xl) !important;
    }

    .ammouri-product-summary .price {
        font-size: 20px;
    }

    .ammouri-product-summary .woocommerce-product-details__short-description {
        font-size: var(--fs-sm);
    }

    .ammouri-product-summary .product_meta {
        margin-top: var(--space-lg);
        padding-top: var(--space-md);
    }

    .ammouri-product-summary form.cart:not(.variations_form) {
        grid-template-columns: 84px minmax(0, 1fr) minmax(0, 1fr);
    }

    .ammouri-product-summary form.cart.variations_form .single_variation_wrap .variations_button {
        grid-template-columns: 84px minmax(0, 1fr) minmax(0, 1fr);
    }

    .woocommerce-tabs ul.tabs {
        flex-wrap: wrap;
        gap: 0;
    }

    .woocommerce-tabs ul.tabs li a {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .ammouri-single-product~.woocommerce-tabs {
        margin-top: var(--space-2xl);
    }
}

@media (max-width: 575px) {
    .ammouri-product-gallery .woocommerce-product-gallery {
        max-width: 100%;
    }

    .ammouri-product-gallery .woocommerce-product-gallery__wrapper,
    .ammouri-product-gallery .flex-viewport {
        padding: 12px;
    }

    .ammouri-product-gallery .flex-viewport {
        aspect-ratio: 1 / 1;
    }

    .ammouri-product-gallery .flex-control-thumbs li {
        width: 54px !important;
        height: 54px;
        flex-basis: 54px;
    }

    .ammouri-product-summary {
        padding: 0;
    }

    body.single-product .ammouri-single-product h1.product_title {
        font-size: 20px !important;
    }

    .ammouri-product-summary .price {
        font-size: 18px;
    }

    .ammouri-product-summary .single_add_to_cart_button {
        width: 100%;
        padding: 14px;
        font-size: 13px;
    }

    .ammouri-product-summary .quantity .qty {
        width: 100%;
        height: 50px;
    }

    .ammouri-product-summary form.cart:not(.variations_form) {
        grid-template-columns: 1fr;
    }

    .ammouri-product-summary form.cart.variations_form .single_variation_wrap .variations_button {
        grid-template-columns: 1fr;
    }

    .ammouri-product-summary form.cart .single_add_to_cart_button,
    .ammouri-product-summary form.cart .ammouri-buy-now-button {
        width: 100%;
    }
}

/* Single product: woocommerce-breadcrumb spacing */
.single-product .woocommerce-breadcrumb {
    margin-top: 0;
    margin-bottom: 10px;
}

.single-product form.cart {
    margin-top: 10px;
}


/* Fix excessive header spacing on WooCommerce product page */
.single-product .ammouri-main {
    padding-top: var(--header-height) !important;
}

/* Single product container: centered with bounded width */
body.single-product .ammouri-page-wrapper>.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 4rem;
}