/* ===========================
   CSS Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* SAK Brand Colors - Official Guidelines */
    --primary-green: #0E3B35;
    --secondary-green: #082D28;
    --ivory-sand: #F7F3ED;
    --ivory-light: #FAF7F2;
    --champagne-gold: #D4AF37;
    --soft-gold-hover: #E0C36A;
    --text-dark: #1A1A1A;
    --text-muted: #5F5F5F;
    --footer-muted: #B7C7C2;
    --card-background: #FAF7F2;
    --image-fallback: #EFE9E1;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--ivory-sand);
    overflow-x: hidden;
}

/* ===========================
   Custom Scrollbar (Theme)
   =========================== */
/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--champagne-gold) var(--primary-green);
}

/* Chromium / Safari */
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: var(--primary-green);
}

*::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--champagne-gold) 85%, var(--ivory-sand) 15%);
    border-radius: 999px;
    border: 2px solid var(--primary-green);
}

*::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--soft-gold-hover) 90%, var(--ivory-sand) 10%);
}

*::-webkit-scrollbar-corner {
    background: var(--primary-green);
}

/* Fallback when color-mix isn't supported */
@supports not (background: color-mix(in srgb, white 50%, black)) {
    *::-webkit-scrollbar-thumb {
        background: var(--champagne-gold);
    }

    *::-webkit-scrollbar-thumb:hover {
        background: var(--soft-gold-hover);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: transparent;
    color: var(--ivory-sand);
    border: 2px solid var(--champagne-gold);
}

.btn-primary:hover {
    background-color: var(--champagne-gold);
    color: var(--primary-green);
    border-color: var(--soft-gold-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Primary button on light modal surfaces */
.cart-modal .btn-primary,
.auth-modal .btn-primary,
.search-modal .btn-primary {
    background-color: var(--primary-green);
    color: var(--ivory-sand);
    border-color: var(--primary-green);
}

.cart-modal .btn-primary:hover,
.auth-modal .btn-primary:hover,
.search-modal .btn-primary:hover {
    background-color: var(--secondary-green);
    color: var(--ivory-sand);
    border-color: var(--secondary-green);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--text-dark);
    color: var(--ivory-sand);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-outline:hover {
    background-color: var(--primary-green);
    color: var(--ivory-sand);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-green);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    z-index: 1000;
    padding: 16px 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 500;
    color: var(--champagne-gold);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--ivory-sand);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--champagne-gold);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links li.active > a::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-icon {
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-green);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 12px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: var(--shadow-lg);
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 12px;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 24px;
    color: var(--ivory-sand);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--champagne-gold);
    padding-left: 28px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--champagne-gold);
    color: var(--champagne-gold);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.lang-btn:hover {
    border-color: var(--champagne-gold);
    color: var(--champagne-gold);
}

.lang-btn[aria-pressed="true"] {
    border-color: var(--champagne-gold);
    color: var(--champagne-gold);
}

.login-btn {
    background: var(--champagne-gold);
    border: 1px solid var(--champagne-gold);
    color: var(--primary-green);
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    white-space: nowrap;
}

.login-btn:hover {
    background: var(--soft-gold-hover);
    border-color: var(--soft-gold-hover);
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ivory-sand);
    padding: 8px;
    transition: var(--transition);
    position: relative;
}

.icon-btn:hover {
    color: var(--champagne-gold);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--champagne-gold);
    color: var(--primary-green);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--ivory-sand);
    transition: var(--transition);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 100vh;
    padding-top: 72px;
}

.hero-content {
    display: flex;
    align-items: center;
    padding: 80px 60px;
    background-color: var(--primary-green);
}

.hero-text {
    max-width: 540px;
}

.hero-title {
    font-size: 72px;
    color: var(--ivory-sand);
    margin-bottom: 24px;
    line-height: 1.1;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--ivory-sand);
    margin-bottom: 40px;
    line-height: 1.8;
    opacity: 0.9;
}

.hero-image {
    background-color: var(--image-fallback);
    background-image: linear-gradient(rgba(14, 59, 53, 0.25), rgba(14, 59, 53, 0.25)), url('../Hero-sec.png');
    background-size: 108% auto;
    background-position: center 12%;
    background-repeat: no-repeat;
    position: relative;
}

/* ===========================
   Bestsellers Section
   =========================== */
.bestsellers {
    padding: 120px 0;
    background-color: var(--ivory-sand);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 48px;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.product-card {
    background-color: var(--card-background);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--image-fallback);
    background-size: cover;
    background-position: center;
    position: relative;
}

.product-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background-color: var(--champagne-gold);
    color: var(--primary-green);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.silver {
    background-color: var(--primary-green);
    color: var(--ivory-sand);
}

.product-info {
    padding: 24px;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stars {
    color: var(--champagne-gold);
    font-size: 14px;
}

.rating-count {
    font-size: 13px;
    color: var(--text-muted);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.add-to-cart {
    background-color: var(--champagne-gold);
    color: var(--primary-green);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-to-cart:hover {
    background-color: var(--soft-gold-hover);
    transform: scale(1.05);
}

.section-footer {
    text-align: center;
}

/* ===========================
   About Section
   =========================== */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.about-image {
    background-color: var(--image-fallback);
    background-image: linear-gradient(rgba(14, 59, 53, 0.10), rgba(14, 59, 53, 0.10)), url('../lifestyle-1.png');
    background-size: cover;
    background-position: center 38%;
    background-repeat: no-repeat;
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 60px;
    background-color: var(--ivory-light);
}

.about-title {
    font-size: 48px;
    color: var(--text-dark);
    margin-bottom: 24px;
    font-weight: 400;
}

.about-text {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

/* ===========================
   Gifting Section
   =========================== */
.gifting-section {
    padding: 120px 0;
    background-color: var(--primary-green);
    background-image: linear-gradient(rgba(14, 59, 53, 0.65), rgba(14, 59, 53, 0.65)), url('../Green-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.gifting-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.gifting-text {
    max-width: 560px;
}

.gifting-eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--footer-muted);
    margin-bottom: 16px;
}

.gifting-title {
    font-size: 48px;
    color: var(--ivory-sand);
    margin-bottom: 20px;
    font-weight: 400;
}

.gifting-subtitle {
    font-size: 16px;
    color: var(--footer-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

.gifting-media {
    display: flex;
    justify-content: flex-end;
}

.gifting-image {
    width: 520px;
    height: 520px;
    max-width: 100%;
    border-radius: 8px;
    background-color: var(--ivory-light);
    background-image: url('../Gift.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(212, 175, 55, 0.25);
}

/* ===========================
   Testimonials Section
   =========================== */
.testimonials {
    padding: 120px 0;
    background-color: var(--ivory-sand);
}

.testimonials-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.testimonials-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-box {
    width: 300px;
    height: 300px;
    background-color: var(--image-fallback);
    background-image: url('../ring-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.gift-box::before {
    content: '';
    display: none;
}

.gift-box::after {
    content: '';
    display: none;
}

.testimonials-title {
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.rating {
    margin-bottom: 24px;
}

.rating .stars {
    font-size: 24px;
    color: var(--champagne-gold);
}

.testimonial-quote {
    font-size: 18px;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
    border-left: 3px solid var(--champagne-gold);
    padding-left: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--champagne-gold);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.author-title {
    font-size: 14px;
    color: var(--text-muted);
}

.testimonial-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--text-muted);
    background-color: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.nav-dot.active {
    background-color: var(--champagne-gold);
    border-color: var(--champagne-gold);
}

/* ===========================
   RTL (Arabic)
   =========================== */
body.rtl {
    direction: rtl;
}

body.rtl .nav-content {
    flex-direction: row-reverse;
}

body.rtl .nav-links {
    flex-direction: row-reverse;
}

body.rtl .nav-actions {
    flex-direction: row-reverse;
}

/* Keep login button at the far right in RTL too */
body.rtl .login-btn {
    order: -1;
}

body.rtl .nav-links a::after {
    left: auto;
    right: 0;
}

body.rtl .breadcrumb {
    flex-direction: row-reverse;
}

body.rtl .testimonial-quote {
    border-left: none;
    padding-left: 0;
    border-right: 3px solid var(--champagne-gold);
    padding-right: 24px;
}

/* ===========================
   Newsletter Section
   =========================== */
.newsletter {
    padding: 100px 0;
    background-color: var(--primary-green);
}

.newsletter-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 48px;
    color: var(--ivory-sand);
    margin-bottom: 16px;
    font-weight: 400;
}

.newsletter-subtitle {
    font-size: 16px;
    color: var(--ivory-sand);
    margin-bottom: 40px;
    line-height: 1.8;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter .newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    background-color: rgba(247, 243, 237, 0.1);
    color: var(--ivory-sand);
    font-family: var(--font-body);
    font-size: 14px;
}

.newsletter .newsletter-form input::placeholder {
    color: var(--ivory-sand);
    opacity: 0.7;
}

.newsletter .newsletter-form input:focus {
    outline: none;
    border-color: var(--champagne-gold);
    background-color: rgba(247, 243, 237, 0.15);
}

/* ===========================
   FAQ Section
   =========================== */
.faq-section {
    padding: 80px 0;
    background-color: var(--ivory-light);
}

.faq-section .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.faq-section .section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 12px;
}

.faq-section .section-subtitle {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 1.05rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--ivory-sand);
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(14, 59, 53, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-item[open] {
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-green);
    font-weight: 300;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item[open] .faq-question::after {
    content: '−';
}

.faq-question h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
}

.faq-answer {
    padding: 0 24px 20px;
}

.faq-answer p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ===========================
   Footer
   =========================== */
.footer {
    background-color: var(--secondary-green);
    color: var(--ivory-sand);
    padding: 80px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--footer-muted);
}

.footer-title {
    font-size: 18px;
    color: var(--champagne-gold);
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--footer-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--champagne-gold);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: var(--footer-muted);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--champagne-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--champagne-gold);
    font-size: 14px;
    color: var(--footer-muted);
}

/* ===========================
   Shopping Cart Modal
   =========================== */
.cart-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background-color: var(--ivory-light);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    transition: right 0.3s ease;
}

.cart-modal.active {
    right: 0;
}

.cart-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--champagne-gold);
}

.cart-header h3 {
    font-size: 24px;
    color: var(--text-dark);
}

.close-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.empty-cart {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}

.empty-cart svg {
    margin-bottom: 16px;
    opacity: 0.3;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background-color: var(--image-fallback);
    border-radius: 4px;
    background-size: cover;
    background-position: center;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.cart-item-price {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    background-color: var(--ivory-sand);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-dark);
    transition: var(--transition);
}

.qty-btn:hover {
    background-color: var(--champagne-gold);
    color: var(--primary-green);
}

.cart-item-qty {
    font-weight: 600;
}

.remove-item {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.remove-item:hover {
    color: #e74c3c;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--champagne-gold);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
}

/* ===========================
   Collection Pages
   =========================== */
.collections-hero,
.collection-hero {
    padding: 140px 0 80px;
    background-color: var(--primary-green);
    text-align: left;
}

/* Collections hub hero background image */
.collections-hero--bg {
    background-image: linear-gradient(rgba(14, 59, 53, 0.65), rgba(14, 59, 53, 0.65)), url('../collection-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.collections-hero-content,
.collection-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.collection-hero-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: center;
}

.collections-hero-content,
.collection-hero-content {
    margin: 0;
}

.collection-hero-media {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(247, 243, 237, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.20);
    height: clamp(320px, 38vw, 560px);
}

.collection-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.page-title {
    font-size: 56px;
    color: var(--ivory-sand);
    margin-bottom: 20px;
    font-weight: 400;
}

.page-subtitle {
    font-size: 18px;
    color: var(--ivory-sand);
    opacity: 0.9;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ivory-sand);
    opacity: 0.7;
    margin-bottom: 32px;
}

.breadcrumb a {
    color: var(--ivory-sand);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--champagne-gold);
}

.breadcrumb span {
    opacity: 0.5;
}

/* Collection Categories Grid */
.collection-categories {
    padding: 80px 0;
    background-color: var(--ivory-sand);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.category-card {
    display: block;
    background-color: var(--card-background);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-image {
    height: 320px;
    overflow: hidden;
}

.category-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.category-card:hover .category-image-img {
    transform: scale(1.05);
}

.category-image-placeholder {
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

.category-card:hover .category-image-placeholder {
    transform: scale(1.05);
}

.category-content {
    padding: 32px;
    text-align: center;
}

.category-title {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 400;
}

.category-description {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-green);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition);
}

.category-card:hover .category-link {
    color: var(--champagne-gold);
    gap: 12px;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: var(--ivory-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    color: var(--champagne-gold);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 500;
}

.feature-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Filter Bar */
.filter-bar {
    padding: 24px 0;
    background-color: var(--ivory-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 72px;
    z-index: 100;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--card-background);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.filter-sort {
    margin-left: auto;
}

.sort-select {
    padding: 10px 16px;
    background-color: var(--card-background);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    font-size: 14px;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
}

.sort-select:hover,
.sort-select:focus {
    border-color: var(--primary-green);
    outline: none;
}

.results-count {
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
}

.results-count span {
    font-weight: 600;
    color: var(--text-dark);
}

/* Filter Sidebar */
.filter-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    background-color: var(--card-background);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.filter-sidebar.active {
    left: 0;
}

.filter-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.filter-sidebar-header h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-dark);
}

.filter-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-dark);
    transition: var(--transition);
}

.filter-close:hover {
    color: var(--primary-green);
}

.filter-sidebar-content {
    padding: 24px;
}

.filter-group {
    margin-bottom: 32px;
}

.filter-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-green);
}

.btn-clear-filters {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    border: 1px solid var(--text-dark);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-clear-filters:hover {
    background-color: var(--primary-green);
    color: var(--ivory-sand);
    border-color: var(--primary-green);
}

/* Collection Products */
.collection-products {
    padding: 60px 0 80px;
    background-color: var(--ivory-sand);
}

/* Green trust banner (like template) */
.trust-banner {
    background-color: var(--primary-green);
    background-image: linear-gradient(rgba(14, 59, 53, 0.75), rgba(14, 59, 53, 0.75)), url('../Green-background.png');
    background-size: cover;
    background-position: center;
    padding: 34px 0;
}

/* Gold variant (used on collections.html only) */
.trust-banner.trust-banner--gold {
    background-color: var(--champagne-gold);
    background-image: none;
}

@supports (background-color: color-mix(in srgb, red 50%, white)) {
    .trust-banner.trust-banner--gold {
        background-color: color-mix(in srgb, var(--champagne-gold) 72%, var(--ivory-sand) 28%);
    }
}

.trust-banner.trust-banner--gold .trust-banner-content {
    color: var(--primary-green);
}

.trust-banner.trust-banner--gold .trust-banner-title {
    color: var(--primary-green);
    opacity: 1;
}

.trust-banner.trust-banner--gold .trust-banner-divider {
    background: rgba(14, 59, 53, 0.25);
}

.trust-banner.trust-banner--gold .trust-check {
    color: var(--primary-green);
}

.trust-banner-content {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--footer-muted);
    justify-content: center;
    flex-wrap: wrap;
}

.trust-banner-title {
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--ivory-sand);
    opacity: 0.95;
    white-space: nowrap;
}

.trust-banner-divider {
    width: 1px;
    height: 26px;
    background: rgba(247, 243, 237, 0.25);
}

.trust-banner-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .trust-banner {
        padding: 26px 0;
    }

    .trust-banner-title {
        font-size: 22px;
    }
}

.trust-check {
    color: var(--champagne-gold);
    font-weight: 600;
}

/* Compact product cards for collection pages (matches template layout) */
.collection-products .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.product-card--collection {
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.10);
}

.product-card--collection:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.product-image--collection {
    aspect-ratio: 1;
    background: var(--image-fallback);
    overflow: hidden;
}

.product-image--collection img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-info--collection {
    padding: 16px 18px 18px;
    text-align: center;
}

.product-name--collection {
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.product-price--collection {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.view-details-btn {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    background: transparent;
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.view-details-btn:hover {
    background-color: var(--text-dark);
    color: var(--ivory-sand);
    border-color: var(--text-dark);
}

/* Product details page */
.product-detail {
    max-width: none;
    margin: 0 0 40px;
}

.product-page {
    padding: 36px 0 24px;
}

.product-page .container {
    max-width: none;
}

.product-breadcrumb {
    margin-bottom: 18px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    padding: 24px;
    border-radius: 10px;
    background: var(--ivory-light);
    border: 1px solid rgba(0, 0, 0, 0.10);
}

.product-detail-media {
    border-radius: 10px;
    overflow: hidden;
}

.product-gallery {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    align-items: start;
}

.product-thumbs {
    display: grid;
    gap: 10px;
}

.product-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: var(--ivory-sand);
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-thumb[aria-pressed="true"] {
    border-color: var(--champagne-gold);
}

.product-main {
    background: var(--image-fallback);
    border-radius: 10px;
    overflow: hidden;
    height: clamp(320px, 38vw, 520px);
    max-height: 70vh;
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 90px;
    z-index: 2200;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    background-color: var(--ivory-light);
    width: min(720px, calc(100% - 48px));
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.10);
    overflow: hidden;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.search-body {
    padding: 16px 20px 20px;
}

.search-input {
    width: 100%;
    padding: 14px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: var(--ivory-sand);
    font-family: var(--font-body);
}

.search-results {
    margin-top: 12px;
    display: grid;
    gap: 10px;
    max-height: min(55vh, 520px);
    overflow: auto;
    padding-right: 2px;
}

.search-result {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--ivory-light);
    transition: var(--transition);
}

.search-result:hover {
    border-color: var(--champagne-gold);
}

.search-result-img {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    background: var(--image-fallback);
    background-size: cover;
    background-position: center;
}

.search-result-name {
    color: var(--text-dark);
    font-weight: 600;
}

.search-result-meta {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 2px;
}

.search-empty {
    color: var(--text-muted);
    padding: 12px 4px;
}

/* Auth Modal (login/register) */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2300;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal-content {
    background-color: var(--ivory-light);
    width: min(520px, calc(100% - 48px));
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.10);
    overflow: hidden;
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.auth-body {
    padding: 16px 20px 20px;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.auth-tab {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: var(--ivory-sand);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.auth-tab.active {
    border-color: var(--champagne-gold);
    background: var(--ivory-light);
}

.auth-label {
    display: block;
    margin: 10px 0 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-input {
    width: 100%;
    padding: 12px 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: var(--ivory-sand);
    font-family: var(--font-body);
}

.auth-hint {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 13px;
    min-height: 18px;
}

.product-detail-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-detail-title {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 12px;
}

.product-detail-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--text-muted);
}

.product-stars {
    color: var(--champagne-gold);
    letter-spacing: 1px;
    font-size: 14px;
}

.product-reviews-link {
    color: var(--text-muted);
    text-decoration: none;
}

.product-reviews-link:hover {
    color: var(--text-dark);
}

.product-detail-price {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 18px;
}

.product-detail-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px;
    }

    .product-gallery {
        grid-template-columns: 1fr;
    }

    .product-thumbs {
        grid-auto-flow: column;
        grid-auto-columns: 72px;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .product-main {
        height: 360px;
        max-height: none;
    }

    .product-detail-title {
        font-size: 28px;
    }
}

/* Product reviews */
.product-reviews {
    max-width: none;
    margin: 0 0 40px;
}

.product-reviews-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0 14px;
}

.product-reviews-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
}

.product-reviews-subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

.product-reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.product-review-card {
    border-radius: 10px;
    background: var(--ivory-light);
    border: 1px solid rgba(0, 0, 0, 0.10);
    padding: 14px;
}

.product-review-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.product-review-name {
    font-weight: 600;
}

.product-review-stars {
    color: var(--champagne-gold);
    letter-spacing: 1px;
    font-size: 13px;
    white-space: nowrap;
}

.product-review-text {
    color: var(--text-muted);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .product-reviews-grid {
        grid-template-columns: 1fr;
    }

    .product-reviews-head {
        flex-direction: column;
        align-items: flex-start;
    }

    body.rtl .product-reviews-head {
        align-items: flex-end;
    }
}

/* RTL tweaks for gallery */
body.rtl .product-gallery {
    grid-template-columns: 1fr 72px;
}

body.rtl .product-thumbs {
    order: 2;
}

body.rtl .product-main {
    order: 1;
}

.load-more-section {
    text-align: center;
    margin-top: 60px;
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background-color: var(--ivory-light);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-size: 36px;
    color: var(--champagne-gold);
    margin-bottom: 16px;
    font-weight: 400;
}

.newsletter-text {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    background-color: var(--ivory-sand);
    color: var(--text-dark);
    font-size: 14px;
    font-family: var(--font-body);
}

.newsletter-section .newsletter-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.newsletter-section .btn.btn-primary {
    color: var(--primary-green);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-green);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        min-height: 500px;
    }

    .hero-image-media {
        width: min(86%, 520px);
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .about-section,
    .gifting-content,
    .testimonials-content {
        grid-template-columns: 1fr;
    }

    .gifting-media {
        justify-content: center;
    }

    .gifting-image {
        width: 100%;
        max-width: 520px;
        height: 460px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 24px;
    }

    /* Collection Pages Responsive */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .page-title {
        font-size: 42px;
    }

    .filter-controls {
        flex-wrap: wrap;
    }

    .collection-products .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-sort {
        margin-left: 0;
        width: 100%;
    }

    .sort-select {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .hero-content,
    .about-content {
        padding: 60px 32px;
    }

    .hero-scroll-hint {
        right: 18px;
        bottom: 18px;
    }
    
    .hero-title {
        font-size: 42px;
    }

    .gifting-section {
        padding: 80px 0;
    }

    .gifting-title {
        font-size: 38px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }

    .collection-products .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    
    .cart-modal {
        max-width: 100%;
    }

    /* Collection Pages Mobile */
    .page-title {
        font-size: 36px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .collections-hero,
    .collection-hero {
        padding: 120px 0 60px;
    }

    .collection-hero-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .collection-hero-img {
        height: 100%;
    }

    .collection-hero-media {
        height: 340px;
    }

    .category-image {
        height: 240px;
    }

    .filter-sidebar {
        width: 100%;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

