/* -------------------------------------------------------------------------- */
/*   1. VARIABLES, RESET & BASE STYLES */
/* -------------------------------------------------------------------------- */

:root {
    --color-brand: #222222;
    --color-brand-dark: #000000;
    --red-extra: #FC0202;
    --color-brand-shadow: rgba(252,2,2,0.2);
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --red-100: #fee2e2;
    --red-500: #ef4444;
    --yellow-400: #fbbf24;
    
    --bg-body: var(--gray-50);
    --text-main: var(--gray-900);
    --text-light: var(--gray-600);
    --bg-white: #ffffff;
}
* {
    -webkit-tap-highlight-color:transparent;
    -webkit-user-select:none;
    user-select:none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Normal';
    font-weight: 400;
    background-color: black;
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -moz-user-select: none;
}
html {
    overflow-x: hidden; 
}
html, body {
    overscroll-behavior-y: none;
}


/* -------------------------------------------------------------------------- */
/*   2. TYPOGRAPHY & FONTS */
/* -------------------------------------------------------------------------- */

@font-face {
    font-family: 'Bold';
    src: url('font/bold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'Normal';
    src: url('font/normal.ttf') format('truetype');
    font-weight: 400;
}
@font-face {
    font-family: 'Normal';
    src: url('font/normal-thin.otf') format('opentype');
    font-weight: 200;
}

.brand-title { 
    font-family: 'Bold';
    font-weight: 700;
}
.text-brand { 
    color: var(--red-extra); 
}


/* -------------------------------------------------------------------------- */
/*   3. UTILITIES & LAYOUT HELPERS */
/* -------------------------------------------------------------------------- */

/* Visibility & State */
.hidden { display: none !important; }
.block { display: block; }
.scale-0 { transform: scale(0); }
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }
.grayscale { filter: grayscale(100%); }
.pointer-events-none { pointer-events: none; }
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.width-icon {
    width: 1.25rem;
    text-align: center;
}

/* Layout Helpers */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}
.grid-2 { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 0.75rem; 
}

/* Main Wrapper */
#content-wrapper {
    position: relative;
    z-index: 10;
    background-color: var(--gray-50);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transition: margin-bottom 0.3s;
    min-height: 100vh;
}


/* -------------------------------------------------------------------------- */
/*   4. BUTTONS & FORMS */
/* -------------------------------------------------------------------------- */

/* Primary Button */
.btn-primary {
    width: 100%;
    background-color: var(--color-brand);
    color: white;
    font-weight: 700;
    padding: 0.75rem;
    border-radius: 0rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary:hover { 
    background-color: var(--color-brand-dark); 
    transform: translateY(-1px); 
}
.btn-primary:active { 
    transform: scale(0.95); 
}
.btn-primary:disabled { 
    background-color: var(--gray-400); 
    cursor: not-allowed; 
    box-shadow: none; 
    transform: none; 
}

/* Secondary Buttons */
.text-btn { 
    color: var(--color-brand); 
    font-weight: 500; 
    background: none; 
    border: none; 
    cursor: pointer; 
}
.text-btn-gray { 
    color: var(--gray-600); 
    font-weight: 500; 
    background: none; 
    border: none; 
    cursor: pointer; 
}
.btn-small-dark { 
    padding: 0.5rem 1rem; 
    font-size: 0.875rem; 
    color: white; 
    background: var(--gray-800); 
    border-radius: 0.5rem; 
    border: none; 
    cursor: pointer; 
}

/* Form Elements */
.form-group { 
    margin-bottom: 1rem; 
}
.form-label { 
    display: block; 
    font-size: 0.875rem; 
    font-weight: 500; 
    color: var(--gray-700); 
    margin-bottom: 0.25rem; 
}
.form-input {
    width: 100%; 
    padding: 0.75rem 1rem;
    border-radius: 0.75rem; 
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200); 
    outline: none; 
    transition: all 0.2s;
}
.form-input:focus { 
    border-color: var(--color-brand); 
    box-shadow: 0 0 0 1px var(--color-brand); 
    transform: scale(1.01); 
}

/* Error Messages */
.error-msg { 
    color: var(--red-500); 
    font-size: 0.875rem; 
    padding: 0.5rem; 
    background: var(--red-100); 
    border-radius: 0.5rem; 
}
.error-text { 
    color: var(--red-500); 
    font-size: 0.875rem; 
    margin-top: 0.5rem; 
}


/* -------------------------------------------------------------------------- */
/*   5. NAVIGATION & HEADER */
/* -------------------------------------------------------------------------- */

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    height: 70px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}
.nav-btn:hover { 
    background-color: var(--gray-100);
}
.nav-btn svg { 
    width: 24px; 
    height: 24px; 
    color: var(--gray-700); 
    transition: color 0.2s; 
}
.nav-btn svg, .nav-btn i { 
    font-size: 1.1rem;
    color: var(--gray-700); 
    transition: color 0.2s; 
}
.nav-btn:hover svg { 
    color: var(--color-brand); 
}
.nav-btn:hover svg, .nav-btn:hover i { 
    color: var(--color-brand); 
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--color-brand);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 9999px;
    transition: transform 0.2s;
    border: 2px solid white;
}

/* Logo */
.logo-text {
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    margin-right: auto;
}
@media (min-width: 768px) { 
    .logo-text { font-size: 1.5rem; } 
}

/* User Menu */
#auth-buttons button {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}
#auth-buttons button:hover { 
    color: var(--color-brand); 
}
#auth-buttons button:active { 
    transform: scale(0.95); 
}

.user-dropdown {
    right: 0;
    top: 120%;
    position: absolute;
    right: 0;
    top: 120%;
    width: 12rem;
    background: var(--bg-white);
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-out;
    z-index: 100;
}
.user-dropdown button {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background-color 0.1s;
}
.user-dropdown button:hover { 
    background-color: var(--gray-50); 
    color: var(--color-brand); 
}
#user-menu.menu-open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Search Bar */
.search-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.search-overlay.active {
    opacity: 1;
    visibility: visible;
}
.close-search-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    transition: color 0.2s;
}
.close-search-btn:hover {
    color: var(--color-brand);
}
.search-content {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    transform: translateY(20px);
    transition: transform 0.3s ease-out;
}
.search-overlay.active .search-content {
    transform: translateY(0);
}
.search-input-wrapper {
    position: relative;
    border-bottom: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
}
.big-search-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    padding: 1rem 3rem 1rem 0;
    outline: none;
    color: var(--gray-900);
    font-weight: 500;
}
.big-search-input::placeholder {
    color: var(--gray-300);
}
.search-submit-btn {
    position: absolute;
    right: 0;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
}
.big-search-input:focus + .search-submit-btn {
    color: var(--color-brand);
}


/* -------------------------------------------------------------------------- */
/* 6. PRODUCT LISTING (GRID & CARDS) */
/* -------------------------------------------------------------------------- */

.products-section {
    padding-bottom: 3rem;
    min-height: 90vh;
    background-color: var(--gray-50);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 50%); 
    gap: 2rem 0; 
    width: 100%;
    padding: 0;
    overflow: hidden;
}
@media (min-width: 1024px) { 
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    } 
}
@media (min-width: 1280px) { 
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    } 
}

.product-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    width: 100%;
    overflow: hidden;
    border: none;
    margin: 0;
}

.product-image-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--gray-100);
    aspect-ratio: 2 / 3;
}
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-overlay {
    display: none;
}

.product-details {
    padding: 0.75rem 1rem; 
    display: flex;
    flex-direction: column;
    gap: 0.1rem; 
    background-color: var(--bg-white);
    flex-grow: 1;
}
.product-name {
    font-size: 0.97rem;
    font-family: 'Normal';
    font-weight: 200;
    color: var(--gray-900);
    line-height: 1.2;
    text-transform: capitalize;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
}
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
}
.product-price {
    font-size: 0.9rem;
    font-family: 'Normal';
    font-weight: 700;
    color: var(--gray-900);
}

.oos-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    z-index: 5;
}
.product-img.grayscale { 
    filter: grayscale(100%); 
}

.wishlist-btn {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border-radius: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    z-index: 10;
    opacity: 1;
    transform: none;
}
.wishlist-btn i { 
    font-size: 1rem;
    color: var(--gray-100);
    transition: color 0.2s; 
}
.wishlist-btn.active i { 
    color: var(--red-500); 
    font-weight: 900; 
}


/* -------------------------------------------------------------------------- */
/* 7. FOOTER */
/* -------------------------------------------------------------------------- */

#main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: black;
    color: var(--gray-300);
    z-index: 1;
}
#footer-content {
    padding: 3rem 1.5rem;
    text-align: center;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.1s ease-out;
}
.footer-brand {
    font-size: 2.25rem;
    color: var(--red-extra);
    display: inline-block;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}
.footer-brand:hover { 
    color: var(--color-brand); 
}
@media (min-width: 768px) { 
    .footer-brand { font-size: 3.75rem; } 
}
.footer-rights {
    color: var(--gray-600); 
    font-size: 0.75rem; 
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.footer-links-group {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}
.footer-top-links {
    margin-bottom: 1rem;
}
.footer-link {
    color: var(--gray-300);
    text-decoration: none;
    padding: 0 0.5rem;
    transition: color 0.2s;
    font-weight: 400;
}
.footer-link:hover {
    color: var(--color-brand);
}
.footer-separator {
    color: var(--gray-600);
    font-size: 0.9rem;
}
.footer-social-icon {
    color: #ffffff;
    font-size: 1.25rem;
    padding: 0 0.5rem;
}
.footer-social-icon:hover {
    color: var(--color-brand);
}
.footer-hr {
    border: none;
    height: 1px;
    background-color: var(--gray-800);
    width: 50%;
    max-width: 300px;
    margin: 0.5rem auto 1rem auto;
}


/* -------------------------------------------------------------------------- */
/*   8. MODALS & OVERLAYS */
/* -------------------------------------------------------------------------- */

/* Generic Modal Overlay */
.modal-overlay { 
    position: fixed; 
    inset: 0; 
    z-index: 50; 
    display: none;
}
.modal-overlay.active { 
    display: block; 
}

.modal-backdrop {
    position: absolute; 
    inset: 0; 
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px); 
    opacity: 0; 
    transition: opacity 0.3s;
}
.modal-overlay.active .modal-backdrop { 
    opacity: 1; 
}

.modal-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Modal Box (Auth/Generic) */
.modal-box {
    background: var(--bg-white);
    width: 100%;
    max-width: 28rem;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    opacity: 0;
    transform: scale(0.95) translateY(15px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.active .modal-box { 
    opacity: 1; 
    transform: scale(1) translateY(0); 
}

.close-modal-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}
.close-modal-btn:hover {
    color: var(--gray-600);
    transform: rotate(90deg);
}

/* Auth Modal Specifics */
.auth-tab-btn {
    font-size: 1.125rem; 
    font-weight: 700; 
    background: none; 
    border: none;
    padding-bottom: 0.5rem; 
    cursor: pointer; 
    color: var(--gray-400);
    border-bottom: 2px solid transparent; 
    transition: all 0.2s;
}
.auth-tab-btn.active { 
    color: var(--color-brand); 
    border-color: var(--color-brand); 
}

.auth-form { 
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
}


/* -------------------------------------------------------------------------- */
/*   9. CART SIDEBAR */
/* -------------------------------------------------------------------------- */

.cart-backdrop {
    position: fixed; 
    inset: 0; 
    z-index: 190; 
    opacity: 0; 
    visibility: hidden;
    transition: all 0.3s ease; 
    backdrop-filter: blur(4px);
    background: rgba(0,0,0,0.2);
}
.cart-backdrop.active { 
    opacity: 1; 
    visibility: visible; 
}

.cart-sidebar {
    position: fixed; 
    top: 0; 
    right: 0; 
    width: 100%; 
    max-width: 400px; 
    height: 100%;
    background-color: var(--bg-white); 
    z-index: 200;
    transform: translateX(100%); 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    display: flex; 
    flex-direction: column;
}
.cart-sidebar.active { 
    transform: translateX(0); 
}

.cart-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-white);
}
.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-100);
    background-color: var(--gray-50);
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: 1rem;
}
.cart-img-box {
    width: 5rem;
    height: 6rem;
    background-color: var(--gray-100);
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}
.cart-img-box img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.cart-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.cart-qty-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    width: fit-content;
}
.cart-qty-btn {
    padding: 0.25rem 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}
.cart-qty-btn:hover { 
    background-color: var(--gray-50); 
}


/* -------------------------------------------------------------------------- */
/*   10. PRODUCT DETAIL OVERLAY */
/* -------------------------------------------------------------------------- */

.product-detail-overlay {
    position: fixed; 
    inset: 0; 
    z-index: 1000; 
    background: var(--bg-white);
    transform: translateY(100%); 
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    visibility: hidden; 
    overflow-y: auto;
}
.product-detail-overlay.active { 
    transform: translateY(0); 
    visibility: visible; 
}

.close-detail-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    padding: 0;
    width: 40px;
    height: 40px;
    background: rgba(250,250,250,0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.3s;
}
.close-detail-btn:hover {
    color: var(--gray-600);
    transform: rotate(90deg);
}
.detail-layout {
    display: flex; 
    flex-direction: column; 
    min-height: 100vh;
    align-items: flex-start; 
}
@media (min-width: 768px) { 
    .detail-layout { flex-direction: row; } 
}

/* Gallery */
.detail-gallery {
    width: 100%; 
    height: auto; 
    background-color: var(--gray-100); 
    position: relative;
    transition: height 0.3s ease; 
}
@media (min-width: 768px) { 
    .detail-gallery { width: 50%; height: auto; } 
}

.gallery-scroll {
    width: 100%; 
    height: 100%; 
    display: flex; 
    overflow-x: auto;
    scroll-snap-type: x mandatory; 
    scrollbar-width: none;
}
.gallery-scroll::-webkit-scrollbar { 
    display: none; 
}
.gallery-scroll img {
    flex-shrink: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    scroll-snap-align: center;
    display: block;
}

.gallery-dots-container { 
    position: absolute; 
    bottom: 1rem; 
    left: 0; 
    right: 0; 
    display: flex; 
    justify-content: center; 
    gap: 0.5rem; 
    z-index: 20; 
}
.gallery-dot { 
    width: 8px; 
    height: 8px; 
    border-radius: 50%;
    background: transparent; 
    border: 1px solid rgba(0,0,0,0.8);
    transition: all 0.3s; 
}
.gallery-dot.active { 
    background: var(--gray-900);
    border: none;
    transform: scale(1.4);
}
.gallery-nav { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none; 
    cursor: pointer; 
    z-index: 30; 
    box-shadow: none;
    transition: opacity 0.2s;
    padding: 10px;
}
.gallery-nav.prev { 
    left: 1rem; 
}
.gallery-nav.next { 
    right: 1rem; 
}
.group:not(:hover) .gallery-nav { 
    opacity: 0; 
}

/* Info Section */
.detail-info {
    width: 100%; 
    padding: 1.5rem; 
    background: var(--bg-white);
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    animation: fadeIn 0.6s ease-out 0.3s forwards; 
    opacity: 0; 
    transform: translateY(20px);
}
@media (min-width: 768px) { 
    .detail-info { width: 50%; padding: 4rem; overflow-y: auto; } 
}

.detail-content-wrapper { 
    max-width: 32rem; 
    margin: 0 auto; 
    width: 100%; 
}
.detail-title { 
    font-size: 1.4rem; 
    font-weight: 200; 
    color: var(--gray-900); 
    margin-bottom: 0rem; 
    line-height: 1.2; 
}
.detail-price { 
    font-size: 1.2rem; 
    color: var(--color-brand); 
    font-weight: 700; 
    margin-bottom: 1.75rem; 
}
.stock-badge { 
    display: inline-block; 
    background: transparent; 
    color: white; 
    padding: 0.25rem 0.5rem; 
    border-radius: 0.5rem; 
    font-size: 0.75rem; 
    font-weight: 600; 
    margin-bottom: 1rem;
}

/* Size Selector */
.size-label {
    font-size: 0.9rem;
    font-weight: 400; 
    margin-bottom: 0.5rem; 
}
.size-grid { 
    display: flex; 
    gap: 0rem; 
    margin-bottom: 1rem;
}
.size-btn {
    width: 3.5rem; 
    height: 3rem; 
    border-radius: 0rem;
    border: 1px solid var(--gray-200); 
    background: var(--bg-white);
    display: flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer; 
    transition: all 0.2s;
    font-weight: 500;
}
.size-btn:hover { 
    border-color: var(--color-brand); 
    color: var(--color-brand); 
}
.size-btn.selected { 
    background-color: var(--text-main); 
    color: white; 
    border-color: var(--text-main); 
}
.size-btn:disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
}

/* Accordions (Size Guide & Description) */
.accordion-container {
    margin-top: 0;
    border-bottom: none;
}
.accordion-container:last-of-type {
    border-top: none; 
}
.accordion-header {
    width: 100%;
    font-family: inherit;
    background: none;
    border: none;
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--gray-900);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    transition: color 0.2s;
    text-transform: uppercase;
}
.accordion-header:hover {
    color: var(--color-brand);
}
.accordion-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}
.accordion-icon.rotate {
    transform: rotate(90deg);
}
.accordion-collapse {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}
.accordion-collapse.open {
    grid-template-rows: 1fr;
}
.accordion-body {
    overflow: hidden;
}

.guide-svg {
    display: block;
    max-width: 150px;
    margin: 0 auto 1.5rem auto;
    height: auto;
}
.guide-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    width: 100%;
    border-top: 1px solid var(--gray-200);
    border-left: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}
.guide-cell {
    background: var(--bg-white);
    border-right: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--gray-900);
    font-weight: 200;
}
.header-cell {
    font-weight: 600;
    background-color: var(--gray-50);
}
.label-cell {
    font-weight: 600;
    justify-content: flex-start;
    padding-left: 1.5rem;
    text-transform: uppercase;
}
.global-desc-text {
    font-weight: 200;
    color: var(--text-light);
    white-space: pre-wrap;
    line-height: 1.6;
    padding-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .guide-inner-layout {
        display: flex;
        align-items: flex-start;
        gap: 2rem;
    }
    .guide-svg {
        margin: 0;
        order: 2;
    }
    .guide-grid {
        flex: 1;
    }
}


/* -------------------------------------------------------------------------- */
/*   11. CHECKOUT, ORDERS & WISHLIST MODALS */
/* -------------------------------------------------------------------------- */

.checkout-modal-box {
    background: var(--bg-white); 
    width: 100%; 
    max-width: 42rem;
    border-radius: 1rem; 
    display: flex; 
    flex-direction: column; 
    max-height: 90vh;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    overflow: hidden;
}
.checkout-summary-list { 
    display: flex; 
    flex-direction: column; 
    gap: 0.75rem; 
    margin-bottom: 1rem; 
}
.checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-brand);
    border-top: 1px solid var(--gray-200);
    padding-top: 1rem;
}
.checkout-footer { 
    padding: 1.25rem; 
    border-top: 1px solid var(--gray-100); 
    background: var(--gray-50); 
    display: flex; 
    justify-content: flex-end; 
}
.address-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 1rem; 
}
@media (min-width: 768px) { 
    .address-grid { grid-template-columns: 1fr 1fr; } 
}
.address-form-box { 
    display: flex; 
    flex-direction: column; 
    gap: 0.75rem; 
    padding: 1.5rem;
    border: 1px solid var(--gray-200); 
    border-radius: 0.75rem; 
    background: var(--gray-50);
}
.address-card {
    border: 1px solid var(--gray-200); 
    border-radius: 0.75rem; 
    padding: 1rem;
    cursor: pointer; 
    position: relative; 
    transition: all 0.2s;
    background: var(--bg-white);
}
.address-card:hover { 
    border-color: var(--gray-300); 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.address-card.selected { 
    border-color: var(--color-brand); 
    background-color: var(--gray-50); 
    box-shadow: 0 0 0 1px var(--color-brand);
}
.address-card h4 { 
    font-weight: 700; 
    margin-bottom: 0.25rem; 
    font-size: 0.95rem;
    color: var(--gray-900);
}
.address-card p { 
    font-size: 0.85rem; 
    color: var(--gray-600); 
    line-height: 1.4;
}

/* Address Checkmark */
.address-check {
    position: absolute; 
    top: 1rem; 
    right: 1rem; 
    width: 20px; 
    height: 20px;
    border-radius: 50%; 
    border: 2px solid var(--gray-300); 
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: var(--bg-white);
    transition: all 0.2s;
}
.address-card.selected .address-check { 
    border-color: var(--color-brand); 
    background: var(--color-brand); 
}
.address-check i { 
    color: white; 
    font-size: 10px; 
    opacity: 0; 
}
.address-card.selected .address-check i { 
    opacity: 1; 
}

/* Order History */
.inline-search-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    background: var(--bg-white);
    padding: 0 1rem;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px); 
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.navbar.search-mode .inline-search-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}
.navbar.search-mode .brand-title,
.navbar.search-mode .nav-actions {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    pointer-events: none;
    transition: all 0.2s ease;
}
.search-input-box {
    flex: 1;
    display: flex;
    align-items: center;
    height: 40px;
    background: var(--gray-100);
    border-radius: 9999px;
    margin: 0 0.5rem;
    padding: 0 1rem;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.search-input-box:focus-within {
    background: var(--bg-white);
    border-color: var(--color-brand);
    box-shadow: 0 0 0 2px var(--color-brand-shadow);
}
#inline-search-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--gray-900);
}
.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15);
    border-top: 1px solid var(--gray-100);
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    overflow: hidden;
    z-index: 45;
    max-height: 60vh;
    overflow-y: auto;
}
.suggestion-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.1s;
    border-bottom: 1px solid var(--gray-50);
}
.suggestion-item:hover {
    background-color: var(--gray-50);
}
.suggestion-icon {
    width: 24px;
    display: flex;
    justify-content: center;
    margin-right: 1rem;
    color: var(--gray-400);
    font-size: 0.9rem;
}
.suggestion-text {
    flex: 1;
    font-size: 0.95rem;
    color: var(--gray-900);
    font-weight: 500;
    display: flex;
    flex-direction: column;
}
.suggestion-thumb {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 0.75rem;
    background: var(--gray-200);
}
.suggestion-remove {
    color: var(--gray-400);
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
}
.suggestion-remove:hover {
    color: var(--color-brand);
}


/* -------------------------------------------------------------------------- */
/*   12. TOASTS */
/* -------------------------------------------------------------------------- */

.toast-container { 
    position: fixed; 
    bottom: 1.25rem; 
    right: 1.25rem; 
    z-index: 2000; 
    display: flex; 
    flex-direction: column; 
    gap: 0.5rem; 
    pointer-events: none; 
}
.toast {
    background: var(--bg-white); 
    padding: 12px 20px; 
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    border-left: 4px solid var(--color-brand);
    display: flex; 
    align-items: center; 
    gap: 12px; 
    font-size: 0.9rem;
    animation: slideInRight 0.3s ease-out; 
    pointer-events: auto;
    color: var(--text-main);
}
.toast.error { 
    border-color: var(--red-500); 
    color: var(--red-500); 
}


/* -------------------------------------------------------------------------- */
/*   13. ANIMATIONS */
/* -------------------------------------------------------------------------- */

@keyframes fadeIn { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}
@keyframes slideUpFade { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}
@keyframes slideInRight { 
    from { transform: translateX(100%); opacity: 0; } 
    to { transform: translateX(0); opacity: 1; } 
}
@keyframes shimmer { 
    from { transform: translateX(-100%); } 
    to { transform: translateX(100%); } 
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.scroll-fade { 
    opacity: 0; 
}
.scroll-fade.fade-in { 
    animation: fadeIn 0.7s ease-out forwards; 
}
.animate-shake { 
    animation: shake 0.4s ease-in-out; 
}
.animate-slide-up { 
    animation: slideUpFade 0.4s ease-out forwards; 
}

/* Skeleton Loading */
.skeleton { 
    background: #e2e8f0; 
    border-radius: 0.5rem; 
    position: relative; 
    overflow: hidden; 
}
.skeleton::after {
    content: ''; 
    position: absolute; 
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite linear;
}
.product-skeleton { 
    opacity: 1; 
    transition: opacity 0.5s; 
    padding-bottom: 2rem; 
}
.product-skeleton.fade-out { 
    opacity: 0; 
}

/* Payment Status Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--gray-200);
    border-top-color: var(--color-brand);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
#payment-status-modal .modal-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}