/* Global Responsive Resets & Base Styles */
@font-face {
    font-family: 'SEGO';
    src: url('../fonts/SEGO.otf') format('opentype'),
         url('../fonts/SEGO.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    /* Prevent font size changes on orientation change in iOS */
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* CSS Variables for Consistency */
    --primary-color: #1a1512;
    --accent-color: #d4af37;
    --bg-color: #e9e5e2;
    --text-color: #1a1a1a;
    --font-serif: 'SEGO', 'Copperplate Gothic 29 BC', 'Copperplate Gothic', sans-serif;
    --font-sans: 'Poppins', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #e9e5e2;
}

/* --- Responsive Utilities --- */
.show-on-mobile {
    display: none !important;
}

.hide-on-mobile {
    display: block !important;
}

@media (max-width: 768px) {
    .show-on-mobile {
        display: block !important;
    }

    .hide-on-mobile {
        display: none !important;
    }

    .flex-mobile-column {
        flex-direction: column !important;
    }
}

/* Typography Base Responsive */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    word-wrap: break-word;
    overflow-wrap: break-word;
}


/* Performance: Prevent Layout Shift (CLS) */
img {
    aspect-ratio: auto;
    /* Fallback */
    content-visibility: auto;
    /* Browser optimization */
    max-width: 100%;
    height: auto;
}

/* Make common content blocks wrap on small screens */
pre {
    max-width: 100%;
    overflow-x: auto;
}

/* Forms: never overflow the viewport */
input,
select,
textarea,
button {
    font: inherit;
    max-width: 100%;
}

textarea {
    resize: vertical;
}

/* Tables: allow horizontal scroll on mobile */
table {
    max-width: 100%;
}

@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
}

body.menu-open {
    overflow: hidden !important;
    position: fixed;
    /* Extra security for iOS */
    width: 100%;
}

/* Global Container Utility */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

img,
video,
canvas,
svg {
    max-width: 100%;
    display: block;
    /* Removed height:auto — breaks object-fit:cover on bg videos/images */
}

/* height:auto only for content images, NOT background media */
.product-image-box img:not(.aura-bg-image):not(.bg-video):not(.s3-bg-video):not(.img-container img) {
    height: auto;
}

button {
    touch-action: manipulation;
}

a:not(.mood-item a):not(.mood-item a *):not(.product-card):not(.product-card *):not(.pagination-link):not(.pagination-link *):not(.success-btn-main):not(.success-btn-secondary) {
    touch-action: manipulation;
    text-decoration: none;
    color: #000;
    background-image: linear-gradient(to right, #e1cb7d, #a78411 50%, #000 50%);
    background-size: 200% 100%;
    background-position: -100%;
    display: inline-block;
    padding: 2px 0;
    /* position: relative; */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

a:not(.mood-item a):not(.mood-item a *):not(.product-card):not(.product-card *):not(.pagination-link):not(.pagination-link *):not(.success-btn-main):not(.success-btn-secondary):hover {
    background-position: 0;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* Keep touch-action on ALL links */
a {
    touch-action: manipulation;
}

/* Mood card links — plain, no gradient text effect */
.mood-item a {
    text-decoration: none;
    color: inherit;
    background: none;
    -webkit-text-fill-color: inherit;
    display: block;
    padding: 0;
}

/* Delicate jewelry underline effect */
a:not(.mood-item a):not(.header-logo):not(.action-icon-btn):not(.success-btn-main):not(.success-btn-secondary)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    transition: width 0.4s ease, opacity 0.4s ease;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
}

a:hover:not(.mood-item a):not(.header-logo):not(.action-icon-btn):not(.success-btn-main):not(.success-btn-secondary)::after {
    width: 100%;
    opacity: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Firefox Scrollbar Support */
* {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
}

/* --- Header System --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.5s ease;
    background-color: transparent;
}

/* Header States */
.header.active-header,
.header.scrolled {
    opacity: 1;
    transform: translateY(0);
}

.header.scrolled {
    background-color: transparent;
    padding: 15px 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* --- Menu Settings (Language/Currency) --- */
.header-selectors {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 10px;
}

.selector-group {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
    color: #000;
}

.selector-group i {
    font-size: 10px;
}

.divider-v {
    width: 1px;
    height: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.selector-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    color: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    min-width: 120px;
    display: none;
    z-index: 9999;
}

/* Bridge the gap to prevent hover loss */
.selector-dropdown::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}

.selector-group:hover .selector-dropdown {
    display: block;
}

.dropdown-item {
    padding: 8px 15px;
    font-size: 10px;
    white-space: nowrap;
    text-align: left;
}

.dropdown-item:hover {
    color: #d4af37;
    background: #f9f9f9;
}

.header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
    z-index: 1002;
}

.header-logo img {
    width: 8vw;
    max-width: 120px;
    min-width: 80px;
}

.header-icons {
    display: flex;
    gap: 25px;
    align-items: center;
    color: #000;
}

.header-icons a {
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.header-icons i {
    font-size: 20px;
}

/* --- Mobile Menu Styles --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #e9e5e2;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hamburger {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: #000;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    /* Spacing between direct children (groups and standalone links) */
    width: 100%;
    padding: 80px 20px 40px;
    max-height: 100vh;
    overflow-y: auto;
}

.menu-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 320px;
}

/* Standalone menu items which are direct children of menu-content */
.menu-content>.menu-link {
    width: 100%;
    max-width: 320px;
    justify-content: flex-start;
    text-align: left;
}

.menu-link {
    font-family: 'Baskerville Display PT', 'Copperplate Gothic 29 BC', 'Copperplate Gothic', 'Copperplate', sans-serif;
    font-size: clamp(20px, 5vw, 22px);
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    opacity: 0;
    /* Hidden initially for animation */
    transform: translateY(20px);
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    cursor: pointer;
    padding: 5px 0;
}
.menu-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;  
    width: 26px;
    height: 26px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 500;
    margin-left: 12px;

  }

/* Animation trigger for all menu links */
.mobile-menu-overlay.active .menu-link {
    opacity: 1;
    transform: translateY(0);
}

/* Sophisticated Staggering: Groups first, then standalone links */
.mobile-menu-overlay.active .menu-group:nth-child(1) .menu-link {
    transition-delay: 0.1s;
}

.mobile-menu-overlay.active .menu-group:nth-child(2) .menu-link {
    transition-delay: 0.2s;
}

.mobile-menu-overlay.active a.menu-link:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-menu-overlay.active a.menu-link:nth-child(4) {
    transition-delay: 0.4s;
}



.submenu-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    padding-left: 20px;
    /* Traditional indent */
    width: 100%;
}

.menu-group.open .submenu-links {
    max-height: 500px;
    opacity: 1;
    margin-top: 10px;
}

.submenu-links a {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.1em;
    padding: 4px 0;
}

/* Header transparency when menu open */
body.menu-open .header {
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2100 !important;
    /* Ensure it stays above everything */
}

.menu-footer {
    position: absolute;
    bottom: 40px;
    font-size: 14px;
    color: #666;
    opacity: 0;
    transition: 0.5s ease 0.6s;
}

.mobile-menu-overlay.active .menu-footer {
    opacity: 1;
}

/* --- Mobile / Tablet Tweaks --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .header {
        padding: 15px 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .header {
        padding: 12px 20px;
    }

    .header-logo img {
        width: 12vw;
        min-width: 70px;
    }

    .header-icons {
        gap: 15px;
    }

    .header.scrolled {
        padding: 10px 20px;
    }

    /* Global Typography Scalability */
    h1 {
        font-size: clamp(24px, 7vw, 32px) !important;
    }

    h2 {
        font-size: clamp(20px, 6vw, 24px) !important;
    }

    h3 {
        font-size: clamp(18px, 5vw, 20px) !important;
    }

    p {
        font-size: 14px !important;
        line-height: 1.6;
    }
}

/* Specific for iPhone-sized screens */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header-icons {
        gap: 12px;
    }

    .header-logo img {
        width: 18vw;
    }

    .header-icons i {
        font-size: 18px;
    }

    .mobile-menu-overlay .menu-content {
        padding: 60px 15px 30px;
    }

    .menu-link {
        font-size: 18px;
        padding: 6px 0;
    }
}

/* Universal Media Fixes */
@media (max-width: 1024px) {
    .hide-tablet {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    /* Better tap targets */
    .header-icons a,
    .header-icons i,
    .header-icons svg {
        padding: 5px;
    }

    button,
    .btn,
    a {
        min-height: 44px;
        /* Apple/Google accessibility standard */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Ensure images don't overflow on small screens — but NOT bg/slider images */
img {
    max-width: 100%;
}

/* Only apply height:auto to regular content images */


/* Fix for iOS momentum scrolling */
.mobile-menu-overlay,
.submenu-links {
    -webkit-overflow-scrolling: touch !important;
}

.full-height {
    height: 100vh;
}

/* --- Global Search Overlay --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(233, 229, 226, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 100px 40px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.search-overlay.active {
    display: flex;
    opacity: 1;
}

.search-overlay-close {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000;
    transition: transform 0.3s ease;
}

.search-overlay-close:hover {
    transform: rotate(90deg);
}

.search-container-global {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.search-container-global h2 {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.search-input-field {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 2px solid #000;
    font-size: 48px;
    font-family: var(--font-serif);
    padding: 20px 0;
    text-align: center;
    outline: none;
}

.search-input-field::placeholder {
    color: #ccc;
}

.search-results-global {
    margin-top: 60px;
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px;
}

.search-result-item {
    padding: 15px;
    border-radius: 4px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.search-result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.search-result-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.search-result-info h4 {
    font-family: var(--font-serif);
    font-size: 16px;
    margin-bottom: 4px;
}

.search-result-info p {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .search-input-field {
        font-size: 28px;
    }

    .search-overlay {
        padding: 80px 20px;
    }
}

.fa-chevron-down {
    font-size: 10px !important;
}

.pick-name {
    font-family: 'SEGO', 'Copperplate Gothic 29 BC', 'Copperplate Gothic', sans-serif;
}

/* --- Success Modal Styles --- */
.action-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.action-success-modal.active {
    opacity: 1;
    visibility: visible;
}
.action-success-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.85);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.action-success-modal.active .action-success-content {
    transform: scale(1);
}
.action-success-icon {
    font-size: 50px;
    color: #c5a880;
    margin-bottom: 20px;
}
.action-success-title {
    font-family: 'Bodoni Moda', serif;
    font-size: 24px;
    margin-bottom: 10px;
    color: #1a1512;
}
.action-success-msg {
    color: #666;
    margin-bottom: 30px;
    font-size: 15px;
}
.action-success-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.success-btn-main {
    background: #1a1512 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border: none !important;
    padding: 12px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
}
.success-btn-secondary {
    color: #999 !important;
    -webkit-text-fill-color: #999 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    background: none !important;
    border: none !important;
    padding: 10px !important;
    min-height: auto !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
}

.accordion-inner-text p{
    font-size: 15px;
} 

