/* ======================================================================
   STANDBY CLOTHING - MAIN STYLESHEET (EMPIRO CLONE)
   Version: 3.0 (Pixel-Perfect Rebuild)
   Author: Senior Frontend Engineer
   Target: Pixel-perfect replication of provided screenshots.
====================================================================== 
*/

/* ======================================================================
   1. RESET & VARIABLES
====================================================================== 
*/

:root {
    /* --- COLOR PALETTE (Strict Black & White Identity) --- */
    --color-black: #000000;
    --color-white: #ffffff;
    
    /* Text Colors */
    --color-text-main: #1c1c1c;
    --color-text-secondary: #666666;
    --color-text-muted: #999999;
    --color-text-placeholder: #b0b0b0;

    /* Interface Colors */
    --color-border: #e5e5e5;
    --color-border-dark: #d1d1d1;
    --color-bg-light: #f9f9f9;
    --color-bg-body: #ffffff;
    --color-bg-overlay: rgba(0, 0, 0, 0.5);

    /* Accents (From Screenshots) */
    --color-accent: #ff4400; /* Used for 'HOT' tag and badges */
    --color-success: #28a745;
    --color-error: #d32f2f;
    --color-warning: #ffc107;

    /* --- TYPOGRAPHY --- */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    --font-weight-black: 900;

    /* --- SPACING & SIZING --- */
    --container-width: 1400px;
    --header-height: 60px;
    --sidebar-width: 320px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-circle: 50%;

    /* --- TRANSITIONS --- */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease-in-out;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

#password-rules {
    list-style: none;
    padding: 0;
    margin-top: 8px;
    font-size: 14px;
}

#password-rules li {
    margin-bottom: 4px;
}

.valid {
    color: green;
}

.invalid {
    color: red;
}

img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    max-width: 100%;
}

/* ======================================================================
   2. TYPOGRAPHY UTILITIES
====================================================================== 
*/

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    color: var(--color-text-main);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.875rem; }

p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-text-muted);
}

ul, ol {
    list-style: none;
}

strong, b {
    font-weight: var(--font-weight-bold);
}

small {
    font-size: 80%;
}

/* ======================================================================
   3. LAYOUT & CONTAINERS
====================================================================== 
*/

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.gap-xs { gap: 5px; }
.gap-sm { gap: 10px; }
.gap-md { gap: 20px; }
.gap-lg { gap: 40px; }

/* Grid Utilities */
.grid { display: grid; }

/* Spacing Utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.py-20 { padding-top: 20px; padding-bottom: 20px; }
.py-40 { padding-top: 40px; padding-bottom: 40px; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.hidden { display: none !important; }

/* ======================================================================
   4. BUTTONS & INTERACTIVE ELEMENTS
====================================================================== 
*/

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    background-color: var(--color-black);
    color: var(--color-white);
    text-transform: uppercase;
    font-weight: var(--font-weight-bold);
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 1px solid var(--color-black);
    text-align: center;
    transition: all var(--transition-fast);
    border-radius: 0; /* Sharp edges */
}

.btn:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-black);
    border: 1px solid var(--color-black);
}

.btn-outline:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* ======================================================================
   5. FORMS & INPUTS
====================================================================== 
*/

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    color: var(--color-text-main);
    font-size: 1rem;
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-black);
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
}

/* Checkbox & Radio Customization */
input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    padding: 0;
    margin-right: 8px;
    vertical-align: middle;
    accent-color: var(--color-black);
}

/* ======================================================================
   6. HEADER & NAVIGATION (Black Strip)
====================================================================== 
*/

header {
    background-color: var(--color-black);
    color: var(--color-white);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 900;
    width: 100%;
    border-bottom: 1px solid #222;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-icons button,
.nav-icons a {
    color: var(--color-white);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--color-white);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 1.8rem;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--color-accent); /* Orange/Red */
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: bold;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-black);
}

/* ======================================================================
   7. SIDEBAR MENU (Mobile Off-Canvas)
====================================================================== 
*/

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-overlay);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal);
}

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

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px; /* Wider sidebar */
    height: 100%;
    background-color: var(--color-white);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.sidebar-content ul {
    width: 100%;
}

.menu-item {
    border-bottom: 1px solid var(--color-border);
    padding: 15px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.menu-item a {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hot-tag {
    background-color: var(--color-accent);
    color: var(--color-white);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 8px;
    font-weight: bold;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--color-border);
}

.sidebar-btn {
    width: 100%;
    padding: 12px;
    text-align: center;
    border: 1px solid var(--color-black);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.sidebar-btn.dark {
    background-color: var(--color-black);
    color: var(--color-white);
}

/* ======================================================================
   8. HOME PAGE & PRODUCT GRID
====================================================================== 
*/

.page-title {
    text-align: center;
    padding: 40px 0 10px;
}

.page-title h1 {
    font-size: 2rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 800;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Columns on Mobile */
    gap: 15px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 Columns on Desktop */
        gap: 20px;
    }
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Image Wrapper */
.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* Portrait Aspect Ratio */
    background-color: #f4f4f4;
    overflow: hidden;
    margin-bottom: 10px;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

/* Floating Action Icons (Bottom of Image) */
.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.action-btn {
    width: 36px;
    height: 36px;
    background-color: var(--color-white);
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.action-btn:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

/* Product Info */
.product-info {
    padding: 0 5px;
}

.product-brand {
    font-size: 0.85rem;
    font-weight: 800; /* Extra bold */
    text-transform: uppercase;
    color: var(--color-text-main);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* ======================================================================
   9. PRODUCT DETAIL PAGE
====================================================================== 
*/

.product-detail-container {
    display: flex;
    flex-direction: column;
    padding-top: 40px;
    padding-bottom: 80px;
}

@media (min-width: 992px) {
    .product-detail-container {
        flex-direction: row;
        gap: 60px;
    }
    
    .detail-gallery {
        flex: 1.5;
    }
    
    .detail-info {
        flex: 1;
        position: sticky;
        top: 100px;
        height: fit-content;
    }
}

.detail-gallery img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.detail-info h1 {
    font-size: 2rem;
    margin-top: 10px;
    margin-bottom: 15px;
}

.detail-brand {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-price {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 30px;
}

.detail-description {
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    font-size: 0.95rem;
}

/* Selection Options */
.option-group {
    margin-bottom: 25px;
}

.option-label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

.size-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-btn {
    min-width: 45px;
    height: 45px;
    padding: 0 10px;
    border: 1px solid var(--color-border-dark);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-transform: uppercase;
}

.size-btn:hover {
    border-color: var(--color-black);
}

.size-btn.selected {
    background-color: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.qty-wrapper {
    display: inline-flex;
    border: 1px solid var(--color-border-dark);
    height: 45px;
}

.qty-btn {
    width: 45px;
    height: 100%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-input {
    width: 50px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 1rem;
    padding: 0;
    background: transparent;
}

/* ======================================================================
   10. CART PAGE
====================================================================== 
*/

.cart-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 992px) {
    .cart-layout {
        flex-direction: row;
    }
    
    .cart-items-container {
        flex: 2;
    }
    
    .cart-summary {
        flex: 1;
    }
}

.cart-header-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.cart-item {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.cart-img-link {
    width: 100px;
    height: 133px; /* 3:4 ratio */
    flex-shrink: 0;
    background-color: #f4f4f4;
}

.cart-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-product-name {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: block;
}

.cart-meta {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 5px;
}

.remove-btn {
    font-size: 0.8rem;
    text-decoration: underline;
    color: var(--color-text-muted);
    text-align: left;
    margin-top: auto;
    padding: 5px 0;
}

.cart-summary {
    background-color: var(--color-bg-light);
    padding: 30px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.summary-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border-dark);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ======================================================================
   11. CHECKOUT PAGE (Specific Split Layout)
====================================================================== 
*/

/* Note: Checkout usually doesn't extend layout.html in complex apps,
   so these styles are specific to the checkout template structure.
*/

.checkout-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (min-width: 1000px) {
    .checkout-layout {
        flex-direction: row;
    }
    
    .checkout-main {
        width: 58%;
        padding: 50px 5% 50px 0;
        display: flex;
        justify-content: flex-end;
        border-right: 1px solid var(--color-border);
    }
    
    .checkout-sidebar {
        width: 42%;
        padding: 50px 0 50px 5%;
        background-color: #fafafa;
    }
    
    .main-inner {
        width: 100%;
        max-width: 600px;
    }
    
    .sidebar-inner {
        width: 100%;
        max-width: 450px;
        position: sticky;
        top: 50px;
    }
}

.logo-area {
    margin-bottom: 30px;
}

.logo-area a {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-black);
}

.section-header {
    font-size: 1.1rem;
    margin-bottom: 15px;
    margin-top: 40px;
    font-weight: 500;
    color: var(--color-text-main);
}

/* The Radio Box (Delivery Method) */
.radio-box {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-white);
    overflow: hidden;
}

.radio-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: background-color 0.2s;
}

.radio-row:last-child {
    border-bottom: none;
}

.radio-row:hover {
    background-color: #fcfcfc;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--color-text-main);
    width: 100%;
    cursor: pointer;
}

/* Custom Radio */
.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-black);
    margin-right: 10px;
}

.btn-pay {
    width: 100%;
    padding: 20px;
    background-color: var(--color-black);
    color: var(--color-white);
    font-weight: bold;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    margin-top: 30px;
    transition: opacity 0.2s;
}

.btn-pay:hover {
    opacity: 0.9;
}

/* Mobile Summary Toggle */
.mobile-summary {
    background: #fafafa;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

@media (min-width: 1000px) {
    .mobile-summary { display: none; }
}

.checkout-sidebar {
    display: none; /* Hidden on mobile by default */
}

.checkout-sidebar.active {
    display: block;
    background: #fafafa;
    padding: 20px;
}

@media (min-width: 1000px) {
    .checkout-sidebar { display: block !important; }
}

/* ======================================================================
   12. PROFILE & ADMIN
====================================================================== 
*/

.profile-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .profile-layout {
        flex-direction: row;
    }
    
    .profile-sidebar {
        width: 250px;
        flex-shrink: 0;
    }
    
    .profile-content {
        flex: 1;
    }
}

.order-card {
    border: 1px solid var(--color-border);
    padding: 20px;
    margin-bottom: 20px;
    background: var(--color-white);
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-bg-light);
    font-weight: bold;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 15px;
    background: var(--color-bg-light);
    border-bottom: 2px solid var(--color-border);
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid var(--color-border);
}

/* ======================================================================
   13. FOOTER
====================================================================== 
*/

footer {
    background-color: var(--color-black); /* Always Black */
    color: var(--color-white);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-section h4 {
    color: var(--color-white);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 25px;
    font-weight: 800;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #ccc;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: all 0.2s;
}

.social-icon:hover {
    border-color: var(--color-white);
    background: var(--color-white);
    color: var(--color-black);
}

/* ======================================================================
   14. DARK MODE (Strict Overrides)
====================================================================== 
*/

body.dark-mode {
    --color-bg-body: #121212;
    --color-bg-light: #1e1e1e;
    --color-text-main: #f0f0f0;
    --color-text-secondary: #b0b0b0;
    --color-border: #333333;
    --color-border-dark: #444444;
    --color-white: #121212; /* Invert logic mostly */
    --color-black: #ffffff; /* Invert logic mostly */
}

/* Fix specific areas in Dark Mode */

/* Header & Footer MUST stay Black background */
body.dark-mode header {
    background-color: #000000;
    border-bottom: 1px solid #333;
}
body.dark-mode header .logo,
body.dark-mode header .nav-icons button,
body.dark-mode header .nav-icons a {
    color: #ffffff;
}

body.dark-mode footer {
    background-color: #000000;
    color: #ffffff;
}
body.dark-mode .footer-section h4 { color: #ffffff; }
body.dark-mode .footer-links a { color: #bbbbbb; }

/* Sidebar */
body.dark-mode .sidebar {
    background-color: #1e1e1e;
    color: #ffffff;
}
body.dark-mode .menu-item {
    color: #ffffff;
    border-bottom: 1px solid #333;
}
body.dark-mode .sidebar-header {
    background-color: #000000;
    color: #ffffff;
}

/* Inputs & Forms */
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background-color: #2c2c2c;
    color: #ffffff;
    border-color: #444;
}

body.dark-mode .product-image-wrapper {
    background-color: #222;
}

/* Restore Action buttons in dark mode (White bg, black icon) */
body.dark-mode .action-btn {
    background-color: #ffffff;
    color: #000000;
}
body.dark-mode .action-btn:hover {
    background-color: #cccccc;
}

/* Checkout specific dark mode fix */
body.dark-mode .radio-box {
    border-color: #333;
    background-color: #1e1e1e;
}
body.dark-mode .radio-row {
    border-bottom-color: #333;
    background-color: #1e1e1e;
}
body.dark-mode .radio-row:hover {
    background-color: #252525;
}
body.dark-mode .checkout-sidebar {
    background-color: #1a1a1a;
}
body.dark-mode .btn-pay {
    background-color: #ffffff;
    color: #000000;
}

/* ======================================================================
   15. UTILITIES & ANIMATIONS
====================================================================== 
*/

.w-full { width: 100%; }
.h-full { height: 100%; }

.border-bottom { border-bottom: 1px solid var(--color-border); }

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

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Print Styles */
@media print {
    header, footer, .sidebar, .product-actions {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }
}

/* ======================================================================
   END OF STYLESHEET
====================================================================== 
*/
