/*
    styles.css
    - Black & White minimal (Korean + Apple) style
    - Section styles, side menu, cart drawer, carousel, product cards, filter pills
    - Fully responsive design for all devices
*/

:root{
    --bg: #fff;
    --fg: #000;
    --muted: #f5f5f5;
    --gap: 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*{box-sizing:border-box}
html,body{
    height:100%;
    background:var(--bg);
    color:var(--fg);
    margin:0;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Touch optimization */
html {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

body {
    overscroll-behavior-x: none;
    overscroll-behavior-y: auto;
}

/* Ensure all interactive elements have sufficient touch areas */
button, a, .icon-btn {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}

/* topbar */
.topbar{
    display:flex;align-items:center;justify-content:space-between;
    padding:16px 28px;border-bottom:1px solid #eee;position:sticky;top:0;background:var(--bg);z-index:50;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.left-area,.right-area{display:flex;align-items:center;gap:4px}
.brand{
    font-weight:800;
    font-size:32px;
    letter-spacing:0.08em;
    text-transform:uppercase;
    color:var(--fg);
    font-family:'Helvetica Neue', Arial, sans-serif;
    transition: transform 0.3s ease;
}
.brand:hover {
    transform: scale(1.02);
}

.icon-btn{background:transparent;border:0;padding:8px;cursor:pointer}
.icon-btn svg{display:block}
.burger{display:inline-block;width:26px;height:18px;position:relative}
.burger::before,.burger::after,.burger span{content:'';position:absolute;left:0;right:0;height:2px;background:var(--fg);}
.burger::before{top:0}
.burger::after{bottom:0}
.burger span{top:50%;transform:translateY(-50%)}

.instagram{display:flex;align-items:center}
.instagram a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}

/* Search box */
.search-box {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 8px;
    padding: 12px;
    width: 280px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
}

.search-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #000;
}

.search-box button {
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    font-weight: 500;
}

.search-box #searchSubmit {
    background: #000;
    color: #fff;
}

.search-box #searchSubmit:hover {
    background: #333;
}

.search-box #searchClose {
    background: #f5f5f5;
    color: #000;
    border: 1px solid #ddd;
}

.search-box #searchClose:hover {
    background: #eee;
}

/* Side menu (white background, black text) */
.side-menu{
    position:fixed;
    left:-100%;
    top:0;
    width:320px;
    height:100%;
    background:var(--bg);
    color:var(--fg);
    box-shadow:2px 0 12px rgba(0,0,0,0.06);
    transition:left .28s ease;
    z-index:70;
    padding-top:80px;
    overflow-y:auto;
}
.side-menu.open{left:0}
.side-menu ul{list-style:none;padding:0;margin:0}
.side-menu li{padding:18px 24px;border-bottom:1px solid #f0f0f0}
.side-menu a{
    color:var(--fg);
    text-decoration:none;
    font-size:18px;
    display:block;
    padding:8px 0;
}
.close-menu{
    position:absolute;
    top:20px;
    right:20px;
    font-size:20px;
    padding:12px;
    min-width:44px;
    min-height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* Menu background overlay */
.menu-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.3);opacity:0;visibility:hidden;transition:all .28s ease;z-index:65}
.menu-overlay.show{opacity:1;visibility:visible}

/* Shopping cart drawer */
.cart-drawer{
    position:fixed;
    right:-100%;
    top:0;
    width:420px;
    height:100%;
    background:var(--bg);
    color:var(--fg);
    box-shadow:-6px 0 18px rgba(0,0,0,0.08);
    transition:right .28s ease;
    z-index:70;
    display:flex;
    flex-direction:column;
    overflow-y:auto;
}
.cart-drawer.open{
    right:0
}
.cart-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 20px;
    border-bottom:1px solid #f0f0f0
}
.cart-items{
    flex:1;
    overflow:auto;
    padding:12px 20px
}

/* Cart background overlay */
.cart-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.3);opacity:0;visibility:hidden;transition:all .28s ease;z-index:65}
.cart-overlay.show{opacity:1;visibility:visible}

/* Login modal */
.login-modal,
#loginStateLoggedIn {
    display: none;
}

.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.login-modal.show {
    display: flex;
}

.login-container {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container h2 {
    margin: 0 0 8px;
    font-size: 1.8em;
    text-align: center;
}

.login-container p {
    margin: 0 0 32px;
    text-align: center;
    color: #666;
    font-size: 0.9em;
}

.login-container button {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1.5px solid;
}

.login-container #appleLogin {
    background: #000;
    color: #fff;
    border-color: #000;
}

.login-container #appleLogin:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.login-container #instagramLogin {
    background: #fff;
    color: #000;
    border-color: #000;
}

.login-container #instagramLogin:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.login-container .close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.login-container .close-btn:hover {
    opacity: 1;
}

/* Unified close button style */
.close-btn{font-size:20px;padding:8px 12px;cursor:pointer}
.cart-footer{padding:14px 20px;border-top:1px solid #f0f0f0;display:flex;align-items:center;justify-content:space-between}
.checkout-btn{background:#000;color:#fff;padding:10px 14px;text-decoration:none;border-radius:6px}
.cart-item{display:flex;gap:12px;padding:10px 0;border-bottom:1px solid #f6f6f6}
.cart-item img{width:80px;height:120px;object-fit:cover;border-radius:6px;background:#eee}
.cart-item .meta{flex:1}
.qty-controls{display:flex;gap:8px;align-items:center}
.qty-controls button{width:28px;height:28px;border-radius:4px;border:1px solid #ddd;background:#fff;cursor:pointer}

/* Main container */
.container{
    max-width:1200px;
    margin:28px auto;
    padding:0 28px;
    width: 100%;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Carousel */
.hero{
    position: relative;
    overflow: visible;
    padding: 40px 0;
}
.carousel{
    position: relative;
    width: 81%;
    height: 0;
    padding-bottom: 45.8%;
    overflow: visible;
    border-radius: 12px;
    z-index: 1;
    margin: 0 auto;
    box-shadow: 
        -200px 0 200px -50px rgba(0, 0, 0, 0.15),
        200px 0 200px -50px rgba(0, 0, 0, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.1);
}
.slide{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    overflow: hidden;
    border-radius: 12px;
}
.slide.active {
    opacity: 1;
    z-index: 1;
}
.carousel .slide svg{
    width:100%;
    height:100%;
    display:block
}

/* Carousel navigation buttons */
.carousel-nav{
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background:rgba(255,255,255,0.9);
    border:none;
    width:40px;
    height:40px;
    border-radius:50%;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#000;
    opacity:0.7;
    transition:opacity 0.3s ease;
    box-shadow:0 2px 6px rgba(0,0,0,0.1);
}
.carousel-nav:hover{
    opacity:1
}
.carousel-nav.prev{
    left:20px
}
.carousel-nav.next{
    left: auto;
    right:20px
}

/* Carousel navigation dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 8px;
    z-index: 2;
    padding: 4px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid #000;
    background: #fff;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.carousel-dots .dot:hover {
    transform: scale(1.1);
}

.carousel-dots .dot.active {
    background: #000;
}

/* Filter pills bottom right */
/* filter pills */
.filter-pills{
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    margin: 1rem 0 1rem;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}
.pill{
    background: #fff;
    border: 1px solid #000;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: #000;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}
.pill.active{
    background: #000;
    color: #fff;
}

/* Product section horizontal scroll style */
.products-horizontal {
    display: flex !important;
    gap: 20px !important;
    padding: 0 20px 20px 20px !important; /* Add bottom padding for scrollbar */
    overflow-x: scroll !important; /* Force scroll instead of auto */
    overflow-y: hidden !important;
    scroll-behavior: smooth !important;
}

/* Product section scrollbar style - Firefox */
@supports (scrollbar-width: auto) {
    .products-horizontal {
        scrollbar-width: auto !important; /* Force visible scrollbar */
        scrollbar-color: #666 #e0e0e0 !important;
    }
}

/* Product section scrollbar style - Webkit (Chrome, Safari, Edge) */
.products-horizontal::-webkit-scrollbar {
    height: 14px !important;
    -webkit-appearance: none !important;
    display: block !important;
}

.products-horizontal::-webkit-scrollbar-track {
    background: #e0e0e0 !important;
    border-radius: 8px !important;
    margin: 0 20px !important;
    display: block !important;
}

.products-horizontal::-webkit-scrollbar-thumb {
    background: #666 !important;
    border-radius: 8px !important;
    border: 2px solid #e0e0e0 !important;
    transition: background 0.3s ease !important;
    display: block !important;
}

.products-horizontal::-webkit-scrollbar-thumb:hover {
    background: #333 !important;
}

/* Product section: Responsive grid layout - only for non-horizontal scroll */
.products:not(.products-horizontal) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
    padding: 0 1rem;
    width: 100%;
    max-width: 1400px;
}

/* Product grid layout (category pages and See More pages) */
.products-grid,
#productsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 280px));
    gap: 2rem;
    margin: 2rem auto;
    padding: 0 1rem;
    width: 100%;
    max-width: 1400px;
    justify-content: center;
}

/* Product card width for horizontal scroll */
.products-horizontal .product-card {
    width: 240px;
    flex-shrink: 0;
}

.product-card {
    width: 100%;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: #000;
    text-decoration: none;
}

.product-card h3,
.product-card .price,
.product-card .stock-status {
    color: #000;
}

.product-card:active {
    transform: scale(0.98);
}

.product-card img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 6px;
    background: #f5f5f5;
}
.product-info{padding:12px 0;display:flex;flex-direction:column;gap:8px}
.product-info h4{margin:0;font-size:16px}
.product-info p{margin:0;color:#666;font-size:14px}
.add-btn{margin-top:auto;background:#000;color:#fff;padding:10px;border-radius:8px;border:0;cursor:pointer}

.about,.contact{margin-top:48px;padding:28px;border-top:1px solid #f2f2f2}

.about {
    font-family: 'Gochi Hand', cursive;
    font-size: 1.5em;
    line-height: 1.6;
    padding: 40px;
    background: #fff;
    letter-spacing: 0.02em;
}

.about h2 {
    font-family: 'Gochi Hand', cursive;
    font-size: 2.4em;
    margin-bottom: 30px;
    letter-spacing: 0.04em;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.03);
}

.about p {
    margin-bottom: 25px;
    font-family: 'Gochi Hand', cursive;
    word-spacing: 0.1em;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.03);
}

/* Side menu bottom text */
.side-menu-footer{
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    padding: 0 24px;
    text-align: left;
    font-size: 16px;
    color: #000;
    font-style: italic;
    letter-spacing: 0.02em;
    font-weight: 500;
}

/* Responsive design - Tablet */
@media (max-width:900px){
    .topbar{
        padding:12px 20px;
    }
    
    .brand{
        font-size:24px;
    }
    
    .cart-drawer{
        width:100%;
        right:-100%
    }
    .cart-drawer.open{
        right:0
    }
    
    .side-menu{
        width:280px;
    }
    
    .side-menu-footer{
        position:relative;
        margin-top:32px;
        bottom:auto
    }
    
    .carousel{
        width: 81%;
        padding-bottom: 45.8%;
        overflow: visible;
        box-shadow: 
            -200px 0 200px -50px rgba(0, 0, 0, 0.15),
            200px 0 200px -50px rgba(0, 0, 0, 0.15),
            0 20px 60px rgba(0, 0, 0, 0.1);
    }
    
    .product-grid{
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap:20px;
        padding:20px;
    }
    
    .filter-pills{
        flex-wrap:wrap;
        gap:8px;
    }
}

/* Responsive design - Mobile */
@media (max-width:600px){
    /* Overall scaling optimization */
    body {
        font-size: 14px;
        line-height: 1.5;
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative;
    }
    
    html {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    .container {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }
    
    .topbar{
        padding:8px 12px;
    }
    
    .brand{
        font-size:16px;
        letter-spacing:0.03em;
    }
    
    .icon-btn{
        padding:4px;
        min-width: 36px;
        min-height: 36px;
    }
    
    .icon-btn svg{
        width:16px;
        height:16px;
    }
    
    .burger{
        width:20px;
        height:14px;
    }
    
    .side-menu{
        width:100%;
        padding:16px;
    }
    
    .side-menu-header{
        font-size:20px;
        padding-bottom:12px;
    }
    
    .side-menu-close{
        top:12px;
        right:12px;
        width: 36px;
        height: 36px;
    }
    
    .side-menu-nav a{
        font-size:16px;
        padding:10px 0;
    }
    
    /* Mobile: Make carousel as large as possible */
    .carousel{
        width: 100%;
        height: auto;
        padding-bottom: 142.384%; /* 161.8% * 0.88 = 142.384% */
    }
    
    .carousel-inner img{
        object-fit:cover;
    }
    
    .carousel-indicators{
        bottom:8px;
    }
    
    .carousel-btn{
        width:28px;
        height:28px;
        font-size:16px;
    }
    
    .products{
        gap:15px !important; /* Horizontal scroll spacing */
        padding:0 15px !important;
    }
    
    .product-card{
        min-width: 180px !important; /* Smaller cards on mobile */
        max-width: 180px !important;
        padding: 0;
    }
    
    .product-card img{
        height:220px; /* Reduce image height for two columns */
        object-fit: cover;
    }
    
    .product-card h3 {
        font-size: 13px; /* Reduce title size */
        margin: 8px 8px 4px;
        line-height: 1.3;
    }
    
    .product-card .price {
        font-size: 16px;
        margin: 0 8px;
        font-weight: 600;
    }
    
    .product-card .stock-status {
        font-size: 10px;
        margin: 4px 8px 8px;
    }
    
    /* Mobile: Horizontal scrolling filter pills */
    .filter-pills{
        overflow-x: auto !important;
        overflow-y: visible !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding: 0.5rem 0.8rem !important;
        margin: 1rem 0 1rem !important;
        scroll-snap-type: x proximity;
        display: flex !important;
        flex-direction: row !important;
        position: relative;
        z-index: 10;
    }
    
    @supports (scrollbar-width: none) {
        .filter-pills {
            scrollbar-width: none;
        }
    }
    
    .filter-pills::-webkit-scrollbar {
        display: none;
    }
    
    .pill {
        flex-shrink: 0 !important;
        scroll-snap-align: start;
        font-size: 11px !important;
        padding: 0.35rem 1rem !important;
        position: relative;
        z-index: 1;
    }
    
    .filter-pill{
        font-size:11px;
        padding:5px 10px;
        white-space: nowrap;
    }
    
    .cart-drawer{
        padding:16px;
    }
    
    .cart-header{
        font-size:20px;
        padding-bottom:12px;
    }
    
    .cart-item{
        padding:10px 0;
    }
    
    .cart-item-info h4{
        font-size:13px;
        margin-bottom: 4px;
    }
    
    .cart-item-info p{
        font-size:11px;
    }
    
    .cart-item .price {
        font-size: 14px;
    }
    
    .qty-controls {
        gap: 6px;
    }
    
    .qty-btn {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    
    .qty-display {
        font-size: 13px;
        min-width: 28px;
    }
    
    .cart-footer{
        padding:12px 0;
        font-size: 14px;
    }
    
    .cart-footer .total {
        font-size: 18px;
    }
    
    .btn-checkout {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .search-box{
        width:calc(100vw - 24px);
        right: 4.5px;
        padding: 12px;
    }
    
    .search-box input {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .login-container{
        max-width:90%;
        padding:20px;
    }
    
    .login-container h2 {
        font-size: 22px;
    }
    
    .login-container input {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .login-container button {
        padding: 12px;
        font-size: 14px;
    }
    
    .login-container h2{
        font-size:22px;
    }
    
    .oauth-btn{
        font-size:14px;
        padding:12px;
    }
    
    .about {
        font-size: 1.2em;
        padding: 20px;
        line-height: 1.8;
    }
    
    .about h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    
    .about p {
        margin-bottom: 20px;
    }
    
    #aboutUsContent {
        padding-bottom: 20px;
    }
    
    .contact {
        padding: 20px;
    }
}

/* Footer Styles */
.footer {
    background: #000;
    color: #fff;
    padding: 40px 20px;
    margin-top: 80px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 16px;
    font-size: 0.95em;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
    padding: 0 8px;
}

.footer-links a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.footer-separator {
    margin: 0 4px;
    opacity: 0.5;
}

.footer-copyright {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 12px;
}

/* Privacy Policy Modal */
.privacy-modal {
    display: flex;
}

.privacy-content {
    animation: slideDown 0.3s ease;
}

.privacy-content h2 {
    color: #000;
}

.privacy-content ul {
    margin: 8px 0;
}

.privacy-content li {
    margin: 6px 0;
}

@media (max-width: 768px) {
    /* 手機版：更小的輪播圓點 */
    .carousel-dots .dot {
        width: 6px !important;
        height: 6px !important;
        border-width: 1px !important;
    }
    
    .carousel-dots {
        gap: 6px !important;
        bottom: 15px !important;
        left: 15px !important;
    }
    
    /* Mobile product grid - show two columns */
    .products-grid,
    #productsGrid,
    .products:not(.products-horizontal) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 12px !important;
        margin: 1rem auto !important;
    }
    
    /* Adjust product card size on mobile */
    .product-card {
        padding: 10px;
        border-radius: 8px;
    }
    
    .product-card img {
        height: 240px;
        border-radius: 4px;
    }
    
    .product-info h4 {
        font-size: 14px;
    }
    
    .product-info p {
        font-size: 12px;
    }
    
    .add-btn {
        padding: 8px;
        font-size: 13px;
    }
    
    .footer {
        padding: 32px 16px;
        margin-top: 60px;
    }
    
    .footer-links {
        font-size: 0.9em;
        display:flex;
        flex-direction:column;
        gap:12px;
    }
    
    .footer-separator{
        display:none;
    }
    
    .footer-copyright {
        font-size: 0.85em;
    }
    
    .privacy-content {
        padding: 24px;
        max-width: 95%;
        margin:0 auto;
    }
    
    .privacy-content h1{
        font-size:1.5em;
    }
    
    .privacy-content h2{
        font-size:1.2em;
    }
    
    /* Privacy Modal responsive */
    .privacy-content > div[style*="grid"]{
        display:block !important;
    }
    
    .privacy-content aside{
        margin-top:24px;
    }
}

@media (max-width: 480px) {
    .privacy-content {
        padding: 20px 16px;
    }
    
    .privacy-content h1{
        font-size:1.3em;
    }
    
    #closePrivacyModal{
        top:8px;
        right:8px;
        font-size:24px;
    }
    
    /* 更小螢幕：圓點再縮小一點 */
    .carousel-dots .dot {
        width: 5px !important;
        height: 5px !important;
        border-width: 1px !important;
    }
    
    .carousel-dots {
        gap: 5px !important;
    }
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Results Modal */
.no-results-modal {
    display: flex;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.no-results-content {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.no-results-modal button:hover {
    opacity: 1;
}

.no-results-modal #closeNoResultsBtn:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.no-results-modal #closeNoResultsBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Interactive Elements Hover/Active States */
.product-card, .pill, .checkout-btn, .see-more-container a, .scroll-arrow {
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.product-card:hover, .pill:hover, .checkout-btn:hover, .see-more-container a:hover, .scroll-arrow:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-card:active, .pill:active, .checkout-btn:active, .see-more-container a:active, .scroll-arrow:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Product Page - Cart Items Styles */
.cart-item-container {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.cart-item-image {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    background: #f5f5f5;
    flex-shrink: 0;
    display: block;
}

.cart-item-details-wrapper {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 14px;
}

.cart-item-size {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.cart-item-price-text {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cart-item-qty-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f8f8;
    padding: 4px 8px;
    border-radius: 6px;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cart-qty-text {
    min-width: 24px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
}

.cart-remove-btn {
    padding: 6px 12px;
    border: 1px solid #ff4444;
    color: #ff4444;
    background: #fff;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-remove-btn:hover {
    background: #ff4444;
    color: #fff;
}

.cart-item-total {
    font-weight: 500;
    font-size: 14px;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Product Page - Size Reference Tables */
.size-reference {
    max-width: 900px;
    margin: 80px auto 0;
    padding: 0 24px;
}

.size-reference-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 1px;
}

.size-category {
    margin-bottom: 50px;
}

.size-category-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #000;
}

.size-table thead tr {
    background-color: #000;
    color: #fff;
}

.size-table th {
    padding: 14px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #000;
}

.size-table td {
    padding: 12px;
    border: 1px solid #000;
}

.size-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Brand title link in product pages */
.brand-title-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Order pages styles */
.order-terms {
    font-size: 14px;
    color: #86868b;
    margin-top: 24px;
}

.email-status.hidden {
    display: none;
}

/* Brand link */
.brand-link {
    color: inherit;
    text-decoration: none;
}

/* Topbar sticky */
.topbar-sticky {
    z-index: 50;
}

/* Hero all products */
.hero-all-products {
    padding: 3rem 1rem 2rem;
    text-align: center;
}

.hero-title {
    font-size: 2rem;
    margin: 0;
}

/* Filter pills centered */
.filter-pills-centered {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    flex-wrap: wrap;
}

/* Products grid container */
.products-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Search box form elements */
.search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #000;
}

.search-buttons {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.search-btn-primary {
    flex: 1;
    padding: 8px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.search-btn-primary:hover {
    opacity: 0.8;
}

.search-btn-secondary {
    flex: 1;
    padding: 8px;
    background: #f5f5f5;
    color: #000;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.search-btn-secondary:hover {
    background: #eee;
}

/* Login modal styles */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.login-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
}

.login-modal-title {
    margin: 0 0 8px;
    font-size: 1.8em;
    text-align: center;
}

.login-modal-subtitle {
    margin: 0 0 32px;
    text-align: center;
    color: #666;
    font-size: 0.9em;
}

.login-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.login-btn-facebook {
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #000;
    border: 1.5px solid #000;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn-facebook:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.login-btn-apple {
    width: 100%;
    padding: 12px;
    background: #000;
    color: #fff;
    border: 1.5px solid #000;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn-apple:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.login-btn-instagram {
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #000;
    border: 1.5px solid #000;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn-instagram:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.login-btn-guest {
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 12px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.login-btn-guest:hover {
    background: #e8e8e8;
    border-color: #999;
    color: #333;
}

.login-btn-guest:hover svg circle,
.login-btn-guest:hover svg path {
    stroke: #333;
}

.login-success-message {
    display: none;
    text-align: center;
    padding: 32px 20px;
    margin-bottom: 24px;
    background: #f5f5f5;
    border: 1px solid #000;
    border-radius: 12px;
}

.login-success-message svg {
    margin-bottom: 16px;
}

.login-success-message svg circle {
    stroke: #000;
}

.login-success-message svg path {
    stroke: #000;
}

.success-text {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin: 0 0 8px 0;
}

.success-subtext {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.user-info {
    text-align: center;
    padding: 32px 20px;
    margin-bottom: 24px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ddd;
}

.user-name {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 0 0 8px 0;
}

.user-type {
    font-size: 14px;
    color: #666;
    margin: 0;
    text-transform: capitalize;
}

.logout-btn {
    width: 100%;
    padding: 14px 20px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #333;
}

.login-terms {
    margin-top: 32px;
    text-align: center;
    font-size: 0.8em;
    color: #999;
}

.login-terms a {
    color: #000;
    text-decoration: underline;
}

/* Main container override */
.main-container {
    width: 100%;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Carousel dots override */
.carousel-dots-right {
    left: auto !important;
    right: 20px !important;
    transform: none !important;
}

.carousel-dot-custom {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
}

/* No results modal */
.no-results-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.no-results-content-box {
    background: #fff;
    border-radius: 0;
    padding: 48px 40px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    text-align: center;
}

.no-results-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.no-results-close-btn:hover {
    opacity: 1;
}

.no-results-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    border: 3px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-results-title {
    margin: 0 0 12px;
    font-size: 1.5em;
    font-weight: 600;
    color: #000;
}

.no-results-text {
    margin: 0 0 32px;
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
}

.no-results-ok-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.no-results-ok-btn:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* See More container */
.see-more-wrapper {
    text-align: center;
    margin: 2rem 0 3rem;
}

.see-more-link {
    display: inline-block;
    padding: 14px 40px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.see-more-link:hover {
    background: #333;
}

/* About Us section */
.about-us-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    -webkit-user-select: none;
    user-select: none;
}

.about-us-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8em;
}

.about-us-content {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

/* Contact section */
.contact-website-link {
    color: #000;
    text-decoration: underline;
}

.contact-instagram-link {
    color: #000;
    text-decoration: underline;
}

/* Footer website link */
.footer-website-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-website-link:hover {
    color: #000;
}

.footer-website-text {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

/* Privacy policy modal */
.privacy-policy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.privacy-policy-content {
    background: #fff;
    border-radius: 12px;
    max-width: 980px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
}

.privacy-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #000;
    line-height: 1;
    z-index: 1;
}

.privacy-close-btn:hover {
    opacity: 0.7;
}

.privacy-title {
    margin: 0 0 8px;
    font-size: 2.5em;
    font-weight: 600;
}

.privacy-date {
    color: #86868b;
    font-size: 14px;
    margin-bottom: 32px;
}

.privacy-body {
    line-height: 1.6;
    color: #1d1d1f;
}

.privacy-paragraph {
    margin-bottom: 24px;
}

.privacy-heading-1 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 1.5em;
    font-weight: 600;
}

.privacy-heading-2 {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 1.2em;
    font-weight: 600;
}

.privacy-list {
    margin: 12px 0 12px 24px;
}

.privacy-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #d2d2d7;
}

.privacy-footer-text {
    color: #86868b;
    font-size: 14px;
}

.privacy-link {
    color: #0066cc;
    text-decoration: none;
}
