/* Loobek-Inspired Modern Ecommerce Design */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');

:root {
    /* Colors - Brand Colors */
    --primary-color: #FF6D1F;
    --primary-hover: #e55a0f;
    --accent-color: #3f4d40;
    --accent-hover: #2f3a30;
    --text-color: #000000;
    --text-light: #808080;
    --bg-color: #ffffff;
    --bg-light: #fafafa;
    --border-color: #e5e5e5;
    --input-bg: #f0f0f0;
    
    /* Buttons */
    --button-bg: #000000;
    --button-color: #ffffff;
    --button-hover-bg: #FF6D1F;
    --button-hover-color: #ffffff;
    
    /* Typography */
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 14px;
    --font-line-height: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-sticky: 0 4px 4px rgba(155, 155, 155, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:before, *:after {
    box-sizing: border-box;
}

/* Prevent all elements from overflowing */
* {
    max-width: 100%;
}

/* Allow specific elements to overflow when needed */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
    height: 100%;
}

body {
    overflow-x: hidden;
    min-height: 100%;
    position: relative;
}

body {
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    line-height: var(--font-line-height);
    color: var(--text-color);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-tap-highlight-color: rgba(255, 109, 31, 0.2);
    -webkit-touch-callout: none;
}

/* Ensure all interactive elements are touch-friendly */
a, button, input, select, textarea, [role="button"] {
    -webkit-tap-highlight-color: rgba(255, 109, 31, 0.2);
    touch-action: manipulation;
}

/* Prevent text selection on buttons and interactive elements */
button, .btn, .cart-link, .mobile-menu-toggle {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
}

/* Prevent any element from causing horizontal overflow */
* {
    max-width: 100%;
}

/* Allow specific elements to have their natural width */
table, 
pre, 
code, 
textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select {
    max-width: 100%;
    box-sizing: border-box;
}

/* Optimize image loading on mobile */
@media (max-width: 768px) {
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    /* Disable hover effects on touch devices */
    .product-card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
    
    .product-card:hover .product-image img {
        transform: none;
    }
    
    .product-info h3 a:hover {
        color: var(--text-color);
    }
    
    /* Use active state instead of hover for touch */
    .product-card:active {
        transform: scale(0.98);
    }
    
    .btn:active {
        transform: scale(0.97);
    }
    
    .cart-link:active {
        transform: scale(0.95);
    }
}

/* ============================================
   ADMIN BAR (WordPress-style)
   ============================================ */
:root {
    --admin-bar-height: 32px;
}

.admin-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10050;
    height: var(--admin-bar-height);
    overflow: visible;
    background: #1d2327;
    color: #c3c4c7;
    font-size: 12px;
    line-height: 1;
    border-bottom: 1px solid #2c3338;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.admin-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 100%;
    max-width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
}

.admin-bar-group {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.admin-bar-group-left {
    flex: 1;
    min-width: 0;
    overflow: visible;
}

.admin-bar-site {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f0f0f1;
    text-decoration: none;
    font-weight: 600;
    padding: 0 8px;
    height: var(--admin-bar-height);
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.admin-bar-site:hover {
    background: #2c3338;
    color: #fff;
}

.admin-bar-site-icon {
    opacity: 0.85;
    flex-shrink: 0;
}

.admin-bar-site-name {
    white-space: nowrap;
}

.admin-bar-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.admin-bar-menu::-webkit-scrollbar {
    display: none;
}

.admin-bar-menu-item {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    color: #c3c4c7;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 3px;
    transition: background 0.15s, color 0.15s;
}

.admin-bar-menu-item:hover {
    background: #2c3338;
    color: #fff;
}

.admin-bar-menu-item.is-active {
    background: #2271b1;
    color: #fff;
}

.admin-bar-menu-item-messages {
    gap: 6px;
}

.admin-bar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #d63638;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    border-radius: 10px;
}

.admin-bar-menu-item.is-active .admin-bar-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #d63638;
}

.admin-bar-dropdown {
    position: relative;
    flex-shrink: 0;
}

.admin-bar-dropdown-toggle {
    gap: 4px;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.admin-bar-dropdown-chevron {
    opacity: 0.7;
    transition: transform 0.15s;
}

.admin-bar-dropdown.is-open .admin-bar-dropdown-chevron {
    transform: rotate(180deg);
}

.admin-bar-dropdown-menu {
    display: none;
    position: fixed;
    min-width: 140px;
    max-width: none;
    padding: 4px 0;
    background: #2c3338;
    border: 1px solid #3c434a;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    z-index: 10100;
    pointer-events: auto;
}

.admin-bar-dropdown-menu.is-visible {
    display: block !important;
}

.admin-bar-dropdown-item {
    display: block;
    padding: 8px 14px;
    color: #c3c4c7;
    text-decoration: none;
    white-space: nowrap;
    font-size: 12px;
    transition: background 0.15s, color 0.15s;
}

.admin-bar-dropdown-item:hover {
    background: #3c434a;
    color: #fff;
}

.admin-bar-dropdown-item.is-active {
    background: #2271b1;
    color: #fff;
}

.admin-bar-group-right {
    flex-shrink: 0;
    gap: 2px;
}

.admin-bar-action {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    color: #c3c4c7;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 3px;
    transition: background 0.15s, color 0.15s;
}

.admin-bar-action:hover {
    background: #2c3338;
    color: #fff;
}

.admin-bar-action-edit {
    color: #9ec2e6;
}

.admin-bar-action-edit:hover {
    background: #2c3338;
    color: #fff;
}

.admin-bar-user {
    display: inline-flex;
    align-items: center;
    max-width: 140px;
    height: 24px;
    padding: 0 8px;
    color: #a7aaad;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 3px;
    transition: background 0.15s, color 0.15s;
}

.admin-bar-user:hover {
    background: #2c3338;
    color: #fff;
}

.admin-bar-logout {
    color: #dba617;
}

.admin-bar-logout:hover {
    background: #2c3338;
    color: #f0c14b;
}

html.has-admin-bar body {
    padding-top: var(--admin-bar-height);
}

html.has-admin-bar .site-header.is-sticky {
    top: var(--admin-bar-height);
}

html.has-admin-bar .admin-product-edit-toolbar {
    top: var(--admin-bar-height);
}

@media (max-width: 1024px) {
    html.has-admin-bar body {
        padding-top: 0;
    }

    html.has-admin-bar .site-header,
    html.has-admin-bar .site-header.is-sticky {
        top: var(--admin-bar-height) !important;
    }
}

@media (max-width: 768px) {
    .admin-bar-site-name {
        display: none;
    }

    .admin-bar-user {
        display: none;
    }

    .admin-bar-menu-item,
    .admin-bar-action {
        padding: 0 6px;
        font-size: 11px;
    }
}

/* ============================================
   HEADER - Loobek Style
   ============================================ */
.site-header {
    background-image: url('https://telia-bg.com/pattern.png');
    background-repeat: repeat;
    background-color: var(--accent-color);
    color: #fff;
    text-align: center;
    border-bottom: 1px solid var(--accent-hover);
    position: relative;
    margin-bottom: 0;
    z-index: 993;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px 1px rgba(0, 0, 0, 0.2), 
                0 2px 4px 2px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Force fixed header on mobile - must override everything */
@media (max-width: 1024px) {
    html {
        overflow-y: auto;
        height: 100%;
    }
    
    body {
        overflow-y: auto;
        position: relative;
        min-height: 100vh;
        padding-top: 0; /* Will be set dynamically if needed */
    }
    
    .site-header {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        z-index: 1000 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Add padding to main content to account for fixed header */
    main.main-content {
        padding-top: var(--header-height, 80px) !important;
    }
    
    /* Ensure no parent containers interfere */
    .site-header .container {
        position: relative;
    }
    
    /* Override .is-sticky class on mobile to use fixed */
    .site-header.is-sticky {
        position: fixed !important;
        animation: none !important;
        transform: none !important;
    }

    html:not(.has-admin-bar) .site-header,
    html:not(.has-admin-bar) .site-header.is-sticky {
        top: 0 !important;
    }
}

html:not(.has-admin-bar) .site-header.is-sticky {
    top: 0;
}

.site-header.is-sticky {
    position: sticky;
    box-shadow: 0 2px 4px 1px rgba(0, 0, 0, 0.2), 
                0 2px 4px 2px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.35s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.logo a:hover {
    color: var(--primary-color);
}

.site-logo {
    max-height: 50px;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex: 1;
    justify-content: center;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    transition: color 0.3s;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-nav a svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.main-nav a:hover svg {
    transform: scale(1.1);
}

.main-nav a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(246, 186, 162, 0.15);
    border-radius: 5px;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: -1;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: calc(100% + 10px);
    height: calc(100% + 8px);
}

.cart-icon {
    position: relative;
}

.cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    position: relative;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
}

.cart-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.cart-icon-svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    transition: all 0.3s ease;
}

.cart-link:hover .cart-icon-svg {
    stroke: var(--primary-color);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    padding: 0 4px;
    border: 2px solid #3f4d40;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translate(30%, -30%);
    transition: all 0.3s ease;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-right: 15px;
}

.lang-dropdown {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 6px 12px;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.lang-current:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-flag {
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
}

.lang-code {
    font-weight: 600;
    margin-right: 4px;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.lang-dropdown:hover .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.lang-option.active {
    background: var(--primary-color);
    color: #ffffff;
}

.lang-option.active:hover {
    background: var(--primary-hover);
    color: #ffffff;
}

.lang-option .lang-flag {
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
}

.cart-link:hover .cart-count {
    transform: translate(30%, -30%) scale(1.1);
    box-shadow: 0 4px 8px rgba(255, 109, 31, 0.3);
}

.cart-count:empty {
    display: none;
}

/* Dynamic Search - Cool Design */
.header-search {
    flex: 0 0 auto;
    margin: 0 15px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    padding: 0;
}

.search-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.search-icon-btn svg {
    width: 20px;
    height: 20px;
}

.search-form-inline {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
    z-index: 10;
    background: rgba(63, 77, 64, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 5px;
}

.search-form-inline.expanded {
    width: 400px;
    display: flex;
}

@media (max-width: 768px) {
    .search-form-inline.expanded {
        width: calc(100vw - 100px);
        max-width: 300px;
    }
}

.search-form-inline input {
    flex: 1;
    padding: 10px 45px 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 14px;
    font-family: var(--font-main);
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: none;
    min-width: 0;
}

.search-form-inline input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-form-inline input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
    transform: none;
}

.search-form-inline button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    box-shadow: none;
}

.search-form-inline button:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.search-form-inline button:hover {
    background: var(--primary-hover);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 8px rgba(255, 109, 31, 0.3);
}

.search-form-inline button:active {
    transform: translateY(-50%) scale(0.95);
}

.search-form-inline button svg {
    width: 18px;
    height: 18px;
    stroke: white;
    stroke-width: 2.5;
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    animation: slideDownFade 0.3s ease;
}

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

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s ease;
    cursor: pointer;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-light);
    padding-left: 20px;
    border-left: 3px solid var(--primary-color);
}

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

.search-result-item-info h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.search-result-item-info p {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.search-results-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

.search-results-empty::before {
    content: "🔍";
    display: block;
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Minicart Sidebar */
.minicart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: var(--bg-color);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.minicart-sidebar.active {
    right: 0;
}

.minicart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
}

.minicart-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.minicart-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.minicart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.minicart-header h3 {
    font-size: 20px;
    font-weight: 500;
}

.minicart-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-color);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.minicart-close:hover {
    color: var(--primary-color);
}

.minicart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.minicart-empty {
    text-align: center;
    padding: 60px 20px;
}

.minicart-empty p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.minicart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.minicart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s;
}

.minicart-item:hover {
    box-shadow: var(--shadow-sm);
}

.minicart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.minicart-item-info {
    flex: 1;
}

.minicart-item-info h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.minicart-item-info h4 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.minicart-item-info h4 a:hover {
    color: var(--primary-color);
}

.minicart-item-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 13px;
    gap: 10px;
}

.minicart-item-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-color);
}

.qty-btn {
    background: var(--bg-light);
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.2s;
    user-select: none;
}

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

.qty-btn:active {
    transform: scale(0.95);
}

.minicart-quantity-input {
    width: 50px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    background: transparent;
    padding: 0;
    -moz-appearance: textfield;
}

.minicart-quantity-input::-webkit-outer-spin-button,
.minicart-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.minicart-quantity-input:focus {
    outline: none;
    background: var(--bg-light);
}

.minicart-remove {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    flex: 1;
    text-decoration: none;
}

.minicart-remove:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.minicart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

.minicart-total {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.minicart-total span {
    color: var(--primary-color);
}

.minicart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--text-color) 0%, #1a1a1a 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.b2b-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 15px;
}

/* ============================================
   HOMEPAGE SECTIONS
   ============================================ */
.homepage-section {
    padding: 0px 0;
}

.homepage-section:first-child {
    padding-top: 0px;
}

.homepage-hero.homepage-section:first-child,
.homepage-hero:first-child,
.homepage-hero,
.hero-slider {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Remove gap between hero slider and next section */
.hero-slider + .homepage-section,
.homepage-hero + .homepage-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

main.main-content > .homepage-hero:first-child,
main.main-content > .hero-slider:first-child,
main.main-content > section:first-child.homepage-hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove any spacing from container wrapper */
main.main-content {
    padding-top: 0;
}

/* Add spacing for sticky header on mobile */
@media (max-width: 768px) {
    main.main-content {
        padding-top: 20px;
    }
    
    /* First h1/h2 should have extra spacing from sticky header */
    .main-content > .container > h1:first-child,
    .main-content > .container > h2:first-child,
    .container > h1:first-child,
    .container > h2:first-child {
        margin-top: 30px !important;
        padding-top: 0 !important;
    }
}

@media (max-width: 480px) {
    main.main-content {
        padding-top: 15px;
    }
    
    /* First h1/h2 should have extra spacing from sticky header */
    .main-content > .container > h1:first-child,
    .main-content > .container > h2:first-child,
    .container > h1:first-child,
    .container > h2:first-child {
        margin-top: 30px !important;
        padding-top: 0 !important;
    }
}

main.main-content > .homepage-hero:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* === HEADING STYLE SEVEN === */
.section-title {
    text-align: center;
    font-size: 30px;
    font-weight: 300;
    color: var(--text-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: grid;
    grid-template-columns: 1fr max-content 1fr;
    grid-template-rows: 27px 0;
    grid-gap: 20px;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 40px;
    font-family: "Playfair Display", serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

.section-title::after,
.section-title::before {
    content: " ";
    display: block;
    border-bottom: 1px solid var(--primary-color);
    border-top: 1px solid var(--primary-color);
    height: 5px;
    background-color: var(--bg-color);
}

/* Mobile: Remove decorations and fix wrapping */
@media (max-width: 768px) {
    .section-title,
    .steps-main-title {
        display: block !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        grid-gap: 0 !important;
        padding-left: 15px;
        padding-right: 15px;
        text-align: center;
        white-space: normal !important;
        overflow: visible !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .section-title {
        padding: 0px !important;
        margin-top: 30px !important;
        font-weight: bold;
        margin-bottom: 20px;
    }
    
    /* First section-title in container - ensure spacing from sticky header */
    .container > .section-title:first-child,
    .main-content > .container > .section-title:first-child,
    .homepage-section > .section-title:first-child {
        margin-top: 50px !important;
        padding-top: 0 !important;
    }
    
    .text-image-content {
        font-size: 16px;
        line-height: 1.7;
        padding: 0px;
    }
    
    .section-title::before,
    .section-title::after,
    .steps-main-title::before,
    .steps-main-title::after {
        display: none !important;
        content: "" !important;
        width: 0 !important;
        height: 0 !important;
        border: none !important;
        background: none !important;
    }
}

@media (max-width: 480px) {
    .section-title,
    .steps-main-title {
        display: block !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        grid-gap: 0 !important;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 20px !important;
        text-align: center;
        white-space: normal !important;
        overflow: visible !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .section-title {
        padding: 0px !important;
        margin-top: 30px !important;
        font-weight: bold;
        margin-bottom: 20px;
    }
    
    /* First section-title in container - ensure spacing from sticky header */
    .container > .section-title:first-child,
    .main-content > .container > .section-title:first-child,
    .homepage-section > .section-title:first-child {
        margin-top: 50px !important;
        padding-top: 0 !important;
    }
    
    .text-image-content {
        font-size: 16px;
        line-height: 1.7;
        padding: 0px;
    }
    
    .section-title::before,
    .section-title::after,
    .steps-main-title::before,
    .steps-main-title::after {
        display: none !important;
        content: "" !important;
        width: 0 !important;
        height: 0 !important;
        border: none !important;
        background: none !important;
    }
}

/* Homepage Hero */
.homepage-hero {
    background: var(--bg-light);
    color: white;
    padding: 0;
    margin: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    text-align: left;
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 0;
    min-height: 375px;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 375px;
    background-color: var(--bg-light);
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.hero-slider::before {
    display: none;
}

.hero-slides {
    position: relative;
    width: 100%;
    min-height: 400px;
    height: 100%;
    margin-top: 0px !important;
}

    .hero-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        min-height: 400px;
        height: 100%;
        opacity: 0;
        transition: opacity 0.8s ease-in-out;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-color: var(--bg-light);
        display: flex;
        align-items: center;
    }

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide .container {
    position: relative;
    z-index: 3;
}

.homepage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 0;
    pointer-events: none;
}

.hero-slider .homepage-hero::before {
    display: none;
}

.hero-slider::before {
    display: none;
}

.homepage-hero .container {
    text-align: left;
    padding: 70px 20px;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}

/* Mobile: Add padding-top for sticky header */
@media (max-width: 768px) {
    .homepage-hero .container {
        padding-top: 100px;
    }
    
    .hero-content {
        padding: 20px 15px;
        margin-top: -30px;
    }
}

@media (max-width: 480px) {
    .homepage-hero .container {
        padding-top: 90px;
    }
    
    .hero-content {
        padding: 20px 15px;
        margin-top: -30px;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 700px;
    background: #3e4c3f9e;
    font-size: 17px;
    padding: 24px;
    margin-left: 0;
    margin-right: auto;
    box-shadow: 1px 3px 4px 1px #0000003b;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.hero-content h1 {
    font-size: 34px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
    text-shadow: 1px 1px 1px #00000075;
}

.hero-content p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 30px;
    border-top: 1px solid #57654e;
    padding: 10px 0px 0px 0px;
}

/* Hero Slider Controls */
.hero-slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.hero-slider-prev,
.hero-slider-next {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 5px;
    font-size: 29px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(5px);
    padding: 0;
    line-height: 50px;
    transform: translateY(-2px);
}

.hero-slider-prev:hover,
.hero-slider-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1) translateY(-2px);
}

.hero-slider-dots {
    position: absolute;
    bottom: calc(20px - 25px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-slider-dot.active {
    background: white;
    border-color: white;
}

.hero-slider-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Categories Section */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-color);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.category-card h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.category-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* Testimonials Section */
.testimonials-section {
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-color);
    text-align: right;
}

/* CTA Section */
.cta-section {
    background: var(--text-color);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Text Block Section */
.text-block-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.text-block-content h1,
.text-block-content h2,
.text-block-content h3,
.text-block-content h4,
.text-block-content h5,
.text-block-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.text-block-content p {
    margin-bottom: 1em;
}

.text-block-content ul,
.text-block-content ol {
    margin-left: 2em;
    margin-bottom: 1em;
}

.text-block-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.text-block-content a:hover {
    text-decoration: underline;
}

.text-block-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

/* Text Image Section */
.text-image-wrapper {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

.text-image-content {
    font-size: 16px;
    line-height: 24px;
    color: var(--text-color);
}

.text-image-content h1,
.text-image-content h2,
.text-image-content h3,
.text-image-content h4,
.text-image-content h5,
.text-image-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.text-image-content p {
    margin-bottom: 1em;
}

.text-image-content ul,
.text-image-content ol {
    margin-left: 2em;
    margin-bottom: 1em;
}

.text-image-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.text-image-content a:hover {
    text-decoration: underline;
}

/* About Page Content */
.about-page-content {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

.about-page-content p {
    margin-bottom: 1em;
}

.about-page-content h1,
.about-page-content h2,
.about-page-content h3,
.about-page-content h4,
.about-page-content h5,
.about-page-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.about-page-content ul,
.about-page-content ol {
    margin-left: 2em;
    margin-bottom: 1em;
}

.about-page-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.about-page-content a:hover {
    text-decoration: underline;
}

.about-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

.text-image-image {
    /* Box model adjustments */
    display: inline-block;
    padding: 10px;
    background-color: #fff;
    
    /* The Border Image Effect */
    border: 15px solid transparent; /* Required border thickness */
    
    /* Gradient used as the border image */
    border-image: linear-gradient( 45deg, #3e4c3f 0%, #344435 25%, #334434 25%, #304131 50%, #FF6D1F 50%, #d78a11 75%, #4f5d4f 75% ) 10 / 1 / 0 stretch;
    
    width: 100%;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
}

.text-image-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .text-image-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .text-image-image {
        min-height: 250px;
    }
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Products Grid Columns */
.products-grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.products-grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.products-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-header {
    margin-bottom: 40px;
}

.products-header h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--text-color);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 400px;
}

.search-form input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 14px;
    font-family: var(--font-main);
}

.search-form input:focus {
    outline: none;
    border-color: var(--text-color);
    background: var(--bg-color);
}

.search-form button {
    padding: 12px 30px;
    background: var(--button-bg);
    color: var(--button-color);
    border: 1px solid var(--button-bg);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-main);
}

.search-form button:hover {
    background: var(--button-hover-bg);
    border-color: var(--button-hover-bg);
}

.category-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 0;
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
    background: var(--button-bg);
    color: var(--button-color);
    border-color: var(--button-bg);
}

/* ============================================
   PRODUCT GRID - Loobek Style
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 60px;
}

.product-card {
    background: #3f4d401c !important;
    border: 1px solid #3f4d401c;
    border-radius: 5px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-image {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--bg-light);
    position: relative;
}

.product-image a {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: pointer;
    display: block;
    position: relative;
    z-index: 1;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.product-image-placeholder {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: var(--bg-light);
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.product-card:hover .product-image img {
    transform: translate3d(0, 0, 0) scale(1.08);
}

.product-info {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    flex-shrink: 0;
    font-family: arial;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.product-info h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.product-info h3 a:hover {
    color: var(--primary-color);
}

.product-info .btn {
    width: 100%;
    display: block;
    margin-top: auto;
}

.product-description {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 40px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--button-bg);
    color: var(--button-color);
    border: 1px solid var(--button-bg);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-main);
    text-align: center;
    border-radius: 0;
}

.btn:hover {
    background: var(--button-hover-bg);
    border-color: var(--button-hover-bg);
    color: var(--button-hover-color);
}

.btn-primary {
    background: #3e4c3f;
    border-color: #3e4c3f;
    color: var(--button-color);
}

.btn-primary:hover {
    background: var(--button-hover-bg);
    border-color: var(--button-hover-bg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--button-bg);
    color: var(--button-color);
    border-color: var(--button-bg);
}

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

.btn.btn-primary.btn-large {
    background: #3e4c3f;
    border-color: #3e4c3f;
}

.btn.btn-primary.btn-large:hover {
    background: #FF6D1F;
    border-color: #FF6D1F;
}

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

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.breadcrumb {
    margin-bottom: 20px;
    padding: 20px 0;
    color: var(--text-light);
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-hover);
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    background: var(--bg-color);
    padding: 40px;
    margin-bottom: 0px;
    border: 1px solid var(--border-color);
}

.product-images {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.product-images > img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
    height: auto;
}

.product-main-image {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-light);
    margin-bottom: 15px;
    box-sizing: border-box;
}

.product-main-image img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
    display: block;
    box-sizing: border-box;
    transform: translate3d(0, 0, 0);
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: border-color 0.2s ease, border-width 0.2s ease;
    background: var(--bg-light);
    box-sizing: border-box;
    padding: 0;
    font: inherit;
    appearance: none;
}

.product-thumbnail:hover {
    border-color: var(--primary-color);
}

.product-thumbnail.active {
    border-color: var(--primary-color);
    border-width: 3px;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: unset;
    object-fit: cover;
    display: block;
    transform: translate3d(0, 0, 0);
}

.product-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.product-thumbnails::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.product-thumbnails::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.product-thumbnails::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

.product-details {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.product-details h1 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 42px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

/* Add to Cart Row */
.add-to-cart-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.unit-btn {
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-width: 120px;
    text-align: center;
}

.unit-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(255, 109, 31, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.unit-btn.active {
    background: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 109, 31, 0.3);
    transform: translateY(-2px);
    font-weight: 700;
}

.unit-btn.active::before {
    content: '✓';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.unit-btn span {
    display: block;
}

.unit-btn small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 2px;
}

.unit-btn.active small {
    opacity: 0.95;
}

.unit-btn.active:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 6px 16px rgba(255, 109, 31, 0.4);
}

.quantity-btn {
    width: 40px;
    height: 50px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    font-family: var(--font-main);
}

.quantity-btn:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.quantity-btn:active {
    background: var(--bg-light);
    transform: scale(0.95);
}

.quantity-input-styled {
    width: 80px;
    height: 50px;
    padding: 0 10px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    background: var(--bg-color);
    color: var(--text-color);
    transition: all 0.2s ease;
    font-family: var(--font-main);
    -moz-appearance: textfield;
    appearance: textfield;
}

.quantity-input-styled::-webkit-outer-spin-button,
.quantity-input-styled::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input-styled:focus {
    outline: none;
    background: var(--bg-light);
}

.quantity-input-styled:hover {
    background: var(--bg-light);
}

.add-to-cart-row .quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
}

.add-to-cart-row .quantity-selector label {
    margin: 0;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
}

.add-to-cart-row .quantity-selector input[type="number"] {
    width: 80px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
}

.add-to-cart-row .btn {
    flex: 1 1 auto;
    min-width: 150px;
}

@media (max-width: 768px) {
    .add-to-cart-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .add-to-cart-row .quantity-selector {
        width: 100%;
        justify-content: center;
    }
    
    .quantity-btn {
        width: 40px;
        height: 50px;
    }
    
    .quantity-input-styled {
        flex: 1;
    }
    
    .quantity-input-styled {
        width: 100%;
        max-width: 200px;
    }
    
    .add-to-cart-row .btn {
        width: 100%;
    }
}

/* Pricing Tiers Table */
/* Product Contact Info */
.product-contact-info-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}


.product-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
}

.contact-text {
    flex: 1;
}

.contact-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.contact-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.product-description-full {
    margin: 30px 0;
}

.product-description-full h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
}

.product-description-content {
    color: var(--text-color);
    line-height: 24px;
    font-size: 15px;
}

.product-description-content p {
    color: var(--text-color);
    line-height: 24px;
    margin-bottom: 20px;
}

.product-description-content p:last-child {
    margin-bottom: 0;
}

.product-description-content strong {
    font-weight: 600;
    color: var(--text-color);
}

.product-description-content ul,
.product-description-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.product-description-content li {
    margin-bottom: 8px;
    line-height: 24px;
}

.product-description-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.product-description-content a:hover {
    text-decoration: underline;
}

.product-stock {
    margin: 20px 0;
    font-weight: 500;
}

.in-stock {
    color: var(--primary-color);
    font-weight: 600;
}

.out-of-stock {
    color: var(--text-light);
}

.quantity-selector {
    margin-bottom: 20px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 14px;
}

.quantity-selector input {
    width: 100px;
    padding: 12px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    font-size: 14px;
    font-family: var(--font-main);
}

/* Override for inline layout in add-to-cart-row */
.add-to-cart-row .quantity-selector {
    margin-bottom: 0;
}

.add-to-cart-row .quantity-selector label {
    display: inline-block;
    margin-bottom: 0;
    margin-right: 10px;
}

.add-to-cart-form {
    margin-top: 30px;
}

.login-prompt {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-light);
    border-left: 3px solid var(--primary-color);
    font-size: 13px;
}

.login-prompt a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

/* ============================================
   CART PAGE
   ============================================ */
.cart-table {
    width: 100%;
    background: var(--bg-color);
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart-table thead {
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
}

.cart-table th,
.cart-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cart-product {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cart-product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.cart-product h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.cart-product p {
    font-size: 12px;
    color: var(--text-light);
}

/* Contact Form Styles */
.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.contact-form-wrapper {
    position: relative;
    background: var(--bg-color);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-turnstile-wrap {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 14px;
    font-family: var(--font-main);
    border-radius: 4px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-color);
    box-shadow: 0 0 0 3px rgba(255, 109, 31, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    background: var(--bg-color);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.contact-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
}

.contact-content p {
    margin-bottom: 1em;
}

.contact-content h1,
.contact-content h2,
.contact-content h3,
.contact-content h4,
.contact-content h5,
.contact-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.contact-content ul,
.contact-content ol {
    margin-left: 2em;
    margin-bottom: 1em;
}

.contact-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-content a:hover {
    text-decoration: underline;
}

.contact-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

.contact-details {
    font-size: 15px;
    line-height: 1.8;
}

.contact-details strong {
    color: var(--text-color);
    font-weight: 600;
}

.quantity-input {
    width: 80px;
    padding: 10px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    font-size: 14px;
}

.btn-remove {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-remove:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.cart-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.cart-summary {
    display: flex;
    justify-content: flex-end;
}

.summary-card {
    background: var(--bg-color);
    padding: 30px;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-color);
}

.summary-card h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 600;
    border-bottom: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.checkout-form-section {
    background: var(--bg-color);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.checkout-form h2 {
    font-size: 20px;
    font-weight: 500;
    margin: 30px 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.checkout-form h2:first-child {
    margin-top: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    font-size: 14px;
    font-family: var(--font-main);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-color);
    background: var(--bg-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.checkout-success {
    background: var(--bg-color);
    padding: 60px 40px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.checkout-success h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 20px;
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 40px 0;
}

.auth-card {
    background: var(--bg-color);
    padding: 50px;
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--border-color);
}

.auth-card h1 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 30px;
    text-align: center;
}

.auth-form {
    margin-bottom: 20px;
}

.auth-link {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

.auth-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.demo-accounts {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-light);
}

/* Profile page */
.profile-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0 60px;
}

.profile-page-header {
    margin-bottom: 28px;
}

.profile-page-header h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 600;
}

.profile-page-header p {
    margin: 0;
    color: var(--text-light);
    font-size: 15px;
}

.profile-page-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.profile-tabs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px;
}

.profile-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.profile-tab:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.profile-tab.is-active {
    background: var(--primary-color);
    color: #fff;
}

.profile-meta-card {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-meta-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light);
    font-weight: 600;
}

.profile-meta-value {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 8px;
}

.profile-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.profile-card h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
}

.profile-card-desc {
    margin: 0 0 24px;
    color: var(--text-light);
    font-size: 14px;
}

.profile-form {
    padding: 0;
    box-shadow: none;
    background: transparent;
}

.profile-form .form-group {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .profile-page-layout {
        grid-template-columns: 1fr;
    }

    .profile-tabs {
        flex-direction: row;
        overflow-x: auto;
    }

    .profile-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .profile-meta-card {
        display: none;
    }
}

.demo-accounts h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-color);
}

/* ============================================
   ORDERS PAGE
   ============================================ */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: var(--bg-color);
    padding: 30px;
    border: 1px solid var(--border-color);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.order-date {
    color: var(--text-light);
    font-size: 13px;
    margin-top: 5px;
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #f0f0f0;
    color: var(--text-color);
}

.status-processing {
    background: var(--button-bg);
    color: var(--button-color);
}

.status-completed {
    background: var(--primary-color);
    color: white;
}

.status-cancelled {
    background: var(--text-light);
    color: white;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.order-item-row img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

/* ============================================
   ADMIN PANEL - Modern & Sleek
   ============================================ */
body.admin-page {
    background: #f5f7fa;
}

.admin-page .main-content {
    background: transparent;
    padding: 24px 0 0;
}

.admin-page .container {
    max-width: 1400px;
}

.admin-nav {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    background: var(--bg-color);
    border-radius: 8px;
    padding: 5px;
    box-shadow: var(--shadow-sm);
}

.admin-nav a {
    padding: 12px 24px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
}

.admin-nav a:hover {
    background: var(--bg-light);
    color: var(--text-color);
}

.admin-nav a.active {
    background: var(--button-bg);
    color: var(--button-color);
    box-shadow: var(--shadow-sm);
}

.admin-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #d63638;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    border-radius: 10px;
}

.admin-nav a.active .admin-nav-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #d63638;
}

.admin-nav-dropdown {
    position: relative;
}

.admin-nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
    font-family: inherit;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-nav-dropdown-toggle:hover,
.admin-nav-dropdown.is-open .admin-nav-dropdown-toggle {
    background: var(--bg-light);
    color: var(--text-color);
}

.admin-nav-dropdown-toggle.active,
.admin-nav-dropdown.is-active-group .admin-nav-dropdown-toggle {
    background: var(--button-bg);
    color: var(--button-color);
    box-shadow: var(--shadow-sm);
}

.admin-nav-dropdown-chevron {
    opacity: 0.6;
    transition: transform 0.2s;
}

.admin-nav-dropdown.is-open .admin-nav-dropdown-chevron {
    transform: rotate(180deg);
}

.admin-nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 160px;
    padding: 6px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    z-index: 100;
}

.admin-nav-dropdown.is-open .admin-nav-dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-nav-dropdown-menu a {
    padding: 10px 16px;
    border-radius: 6px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid var(--primary-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-card h3 {
    color: var(--text-light);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    font-weight: 500;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-color);
    display: block;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    transition: gap 0.2s;
}

.stat-card a:hover {
    gap: 10px;
}

.visitor-period-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.visitor-period-btn {
    padding: 10px 18px;
    border-radius: 6px;
    background: var(--bg-color);
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.visitor-period-btn:hover,
.visitor-period-btn.active {
    background: var(--button-bg);
    color: var(--button-color);
}

.visitor-stats-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.visitor-daily-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.visitor-daily-row {
    display: grid;
    grid-template-columns: 90px 1fr 110px;
    gap: 12px;
    align-items: center;
}

.visitor-daily-label {
    font-size: 13px;
    color: var(--text-light);
}

.visitor-daily-bar-wrap {
    background: var(--bg-light);
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.visitor-daily-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 999px;
    min-width: 4px;
}

.visitor-daily-value {
    font-size: 13px;
    text-align: right;
    color: var(--text-color);
    font-weight: 500;
}

.visitor-chart-legend {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-light);
}

.admin-section {
    background: var(--bg-color);
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.admin-section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.admin-actions {
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Admin contact messages inbox */
.admin-contact-tabs {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 20px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 4px;
}

.admin-contact-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.admin-contact-tab:hover {
    color: var(--text-color);
    background: var(--bg-light);
}

.admin-contact-tab.is-active {
    background: var(--primary-color);
    color: #fff;
}

.admin-contact-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #d63638;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
}

.admin-contact-tab.is-active .admin-contact-tab-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #d63638;
}

.admin-messages-section {
    padding: 0;
    overflow: hidden;
}

.admin-messages-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
}

.admin-messages-tabs {
    display: inline-flex;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 4px;
}

.admin-messages-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 7px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.admin-messages-tab:hover {
    color: var(--text-color);
}

.admin-messages-tab.active {
    background: var(--button-bg);
    color: var(--button-color);
}

.admin-messages-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--bg-light);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.admin-messages-tab.active .admin-messages-tab-count {
    background: rgba(255, 255, 255, 0.2);
}

.admin-messages-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.admin-messages-search {
    position: relative;
}

.admin-messages-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.admin-messages-search input {
    width: 260px;
    max-width: 100%;
    padding: 9px 12px 9px 36px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-color);
}

.admin-messages-search input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.admin-messages-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    min-height: 520px;
}

.admin-messages-list {
    border-right: 1px solid var(--border-color);
    max-height: 70vh;
    overflow-y: auto;
    background: var(--bg-color);
}

.admin-message-item {
    display: block;
    position: relative;
    padding: 14px 18px 14px 22px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.admin-message-item:hover {
    background: var(--bg-light);
}

.admin-message-item.is-active {
    background: rgba(255, 109, 31, 0.08);
    border-left: 3px solid var(--primary-color);
    padding-left: 19px;
}

.admin-message-item.is-unread {
    background: rgba(34, 113, 177, 0.05);
}

.admin-message-item.is-unread .admin-message-item-name {
    font-weight: 700;
}

.admin-message-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.admin-message-item-name {
    font-size: 14px;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-message-item-date {
    font-size: 11px;
    color: var(--text-light);
    flex-shrink: 0;
}

.admin-message-item-subject {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-message-item-preview {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-message-unread-dot {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #2271b1;
    border-radius: 50%;
}

.admin-message-detail {
    padding: 24px;
    background: var(--bg-color);
    max-height: 70vh;
    overflow-y: auto;
}

.admin-message-detail-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.admin-message-detail-subject {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
}

.admin-message-detail-meta {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
}

.admin-message-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.admin-message-read-label {
    font-size: 12px;
    color: var(--text-light);
    padding: 6px 10px;
    background: var(--bg-light);
    border-radius: 6px;
}

.admin-message-delete {
    color: #c82333;
    border-color: #f1b0b7;
}

.admin-message-detail-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px 24px;
    margin: 0 0 20px;
}

.admin-message-field dt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 4px;
}

.admin-message-field dd {
    margin: 0;
    font-size: 14px;
}

.admin-message-field dd a {
    color: var(--primary-color);
    text-decoration: none;
}

.admin-message-detail-body {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-color);
    white-space: pre-wrap;
    word-break: break-word;
    padding: 18px;
    background: var(--bg-light);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.admin-messages-empty {
    text-align: center;
    padding: 56px 24px;
}

.admin-messages-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.admin-messages-empty h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.admin-messages-empty p {
    color: var(--text-light);
    margin: 0;
}

.admin-messages-empty-inline {
    padding: 40px 20px;
}

/* Admin order / RFQ detail */
.admin-order-detail-toolbar {
    margin-bottom: 16px;
}

.admin-order-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.15s;
}

.admin-order-back:hover {
    color: var(--primary-color);
}

.admin-order-detail {
    padding: 0;
    overflow: hidden;
}

.admin-order-detail-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 32px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-color) 100%);
    border-bottom: 1px solid var(--border-color);
}

.admin-order-detail-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    margin-bottom: 8px;
}

.admin-order-detail-title {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
}

.admin-order-detail-meta {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.admin-order-detail-meta-sep {
    opacity: 0.5;
}

.admin-order-detail-meta .status-badge {
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
}

.admin-order-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}

.admin-order-status-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
}

.admin-order-status-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light);
}

.admin-order-status-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}

.admin-order-status-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.admin-order-detail-block {
    padding: 28px 32px;
    border-bottom: 1px solid var(--border-color);
}

.admin-order-detail-block:last-child {
    border-bottom: none;
}

.admin-order-detail-block-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.admin-order-detail-block-title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.admin-order-detail-block-head .admin-order-detail-block-title {
    margin-bottom: 0;
}

.admin-order-detail-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 4px 12px;
}

.admin-order-detail-fields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin: 0;
}

.admin-order-field {
    margin: 0;
    padding: 14px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

.admin-order-field dt {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light);
    margin-bottom: 6px;
}

.admin-order-field dd {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    word-break: break-word;
}

.admin-order-field dd a {
    color: var(--primary-color);
    text-decoration: none;
}

.admin-order-field dd a:hover {
    text-decoration: underline;
}

.admin-order-field-mono dd {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 14px;
}

.admin-order-detail-empty {
    padding: 32px;
    text-align: center;
    color: var(--text-light);
    background: var(--bg-light);
    border: 1px dashed var(--border-color);
    border-radius: 10px;
}

.admin-order-products-table {
    margin: 0;
}

.admin-order-product-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-order-product-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    flex-shrink: 0;
}

.admin-order-product-thumb.is-hidden {
    display: none;
}

.admin-order-product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.admin-order-product-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
}

.admin-order-product-sku {
    font-size: 12px;
    color: var(--text-light);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.admin-order-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 4px 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    background: var(--bg-light);
    border-radius: 8px;
}

.admin-order-unit {
    color: var(--text-light);
    font-size: 14px;
}

@media (max-width: 768px) {
    .admin-order-detail-header,
    .admin-order-detail-block {
        padding: 20px;
    }

    .admin-order-detail-title {
        font-size: 22px;
    }

    .admin-order-detail-actions {
        width: 100%;
    }

    .admin-order-status-form {
        flex: 1;
        min-width: 0;
    }

    .admin-order-detail-fields {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .admin-messages-layout {
        grid-template-columns: 1fr;
    }

    .admin-messages-list {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        max-height: 280px;
    }

    .admin-messages-search input {
        width: 100%;
    }

    .admin-messages-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-messages-toolbar-actions {
        justify-content: stretch;
    }
}

/* Admin products list */
.admin-products-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.admin-products-tabs {
    display: inline-flex;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 4px;
    box-shadow: var(--shadow-sm);
}

.admin-products-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: background 0.2s, color 0.2s;
}

.admin-products-tab:hover {
    color: var(--text-color);
    background: var(--bg-light);
}

.admin-products-tab.active {
    background: var(--button-bg);
    color: var(--button-color);
    box-shadow: var(--shadow-sm);
}

.admin-products-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.08);
}

.admin-products-tab.active .admin-products-tab-count {
    background: rgba(255, 255, 255, 0.2);
}

.admin-products-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
    min-width: 240px;
}

.admin-products-search {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 320px;
}

.admin-products-search input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-products-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 109, 31, 0.12);
}

.admin-products-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.admin-products-filter select {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-color);
    min-width: 160px;
}

.admin-products-orderbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #fff8e6;
    border: 1px solid #ffe08a;
    border-radius: 10px;
    font-size: 14px;
    color: #7a5b00;
}

.admin-products-orderbar.show {
    display: flex;
}

.admin-products-orderbar .order-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #28a745;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.admin-products-orderbar .order-save-btn:hover {
    background: #218838;
}

.admin-products-orderbar .order-save-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.admin-products-list.admin-section {
    padding: 0;
    overflow: hidden;
}

.admin-products-list .admin-table th:first-child,
.admin-products-list .admin-table td:first-child {
    width: 44px;
    padding-left: 16px;
    padding-right: 8px;
}

.admin-product-cell {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 220px;
}

.admin-product-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.admin-product-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: var(--bg-light);
    border: 1px dashed var(--border-color);
    color: var(--text-light);
    font-size: 10px;
    text-align: center;
    line-height: 1.2;
    flex-shrink: 0;
}

.admin-product-info {
    min-width: 0;
}

.admin-product-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
    text-decoration: none;
    margin-bottom: 4px;
    line-height: 1.35;
}

.admin-product-name:hover {
    color: var(--primary-color);
}

.admin-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.admin-product-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.admin-product-badge-featured {
    background: #fff3e6;
    color: #c45a00;
}

.admin-product-badge-category {
    background: var(--bg-light);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.admin-product-sku {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    color: var(--text-light);
}

.admin-stock-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.admin-stock-ok {
    background: #e8f7ee;
    color: #1b7a3f;
}

.admin-stock-low {
    background: #fff8e6;
    color: #9a6700;
}

.admin-stock-out {
    background: #fdecea;
    color: #b42318;
}

.admin-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.admin-product-actions .btn-small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.admin-products-empty {
    text-align: center;
    padding: 56px 24px;
}

.admin-products-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.admin-products-empty h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.admin-products-empty p {
    color: var(--text-light);
    margin: 0 0 20px;
}

.admin-products-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
    font-size: 13px;
    color: var(--text-light);
}

.admin-products-row-hidden {
    display: none !important;
}

/* Admin categories */
.admin-categories-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.admin-categories-stat {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}

.admin-categories-stat-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light);
    margin-bottom: 8px;
}

.admin-categories-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
}

.admin-categories-panel {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.admin-categories-panel.is-editing {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 109, 31, 0.12);
}

.admin-categories-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-categories-panel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff3e6;
    color: var(--primary-color);
    flex-shrink: 0;
}

.admin-categories-panel-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.admin-categories-panel-subtitle {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--text-light);
}

.admin-categories-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.admin-categories-form .form-group {
    flex: 1;
    min-width: 220px;
    margin: 0;
}

.admin-categories-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-categories-list.admin-section {
    padding: 0;
    overflow: hidden;
}

.admin-categories-list .admin-table th:first-child,
.admin-categories-list .admin-table td:first-child {
    width: 44px;
    padding-left: 16px;
    padding-right: 8px;
}

.admin-category-cell {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 200px;
}

.admin-category-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff3e6 0%, #ffe8d6 100%);
    border: 1px solid rgba(255, 109, 31, 0.15);
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    text-transform: uppercase;
}

.admin-category-info {
    min-width: 0;
}

.admin-category-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 2px;
    line-height: 1.35;
}

.admin-category-slug {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.admin-category-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-light);
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s, color 0.2s;
}

.admin-category-count:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.admin-category-count.is-empty {
    color: var(--text-light);
    cursor: default;
    pointer-events: none;
}

.admin-category-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
}

.admin-category-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-light);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.admin-category-action:hover {
    color: var(--text-color);
    border-color: #ccc;
    background: var(--bg-light);
}

.admin-category-action.is-danger:hover {
    color: #c0392b;
    border-color: #f5c6cb;
    background: #fff5f5;
}

.admin-category-action.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.admin-categories-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
    font-size: 13px;
    color: var(--text-light);
}

.admin-categories-row-hidden {
    display: none !important;
}

.admin-categories-list tr.is-editing-row {
    background: rgba(255, 109, 31, 0.06);
}

.admin-categories-list tr.is-editing-row .admin-category-name {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .admin-categories-form {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-categories-form-actions {
        width: 100%;
    }

    .admin-categories-form-actions .btn {
        flex: 1;
    }

    .admin-category-slug {
        display: none;
    }
}

.sortable-ghost {
    opacity: 0.45;
    background: #f0f8ff !important;
}

.sortable-drag {
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.drag-handle {
    cursor: grab;
    color: #bbb;
    user-select: none;
    text-align: center;
}

.drag-handle:hover {
    color: #666;
}

.drag-handle:active {
    cursor: grabbing;
}

@media (max-width: 900px) {
    .admin-products-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-products-toolbar-actions {
        justify-content: stretch;
        max-width: none;
    }

    .admin-products-search {
        max-width: none;
    }

    .admin-product-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Admin product edit */
.admin-product-edit-form {
    padding: 0;
    overflow: hidden;
}

.admin-product-edit-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
    position: sticky;
    top: 0;
    z-index: 20;
}

.admin-product-edit-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.admin-product-edit-back:hover {
    color: var(--primary-color);
}

.admin-product-edit-toolbar-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.admin-product-edit-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
}

.admin-product-edit-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-product-edit-toolbar-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-product-edit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 0;
    align-items: start;
}

.admin-product-edit-main {
    padding: 24px;
    border-right: 1px solid var(--border-color);
}

.admin-product-edit-sidebar {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-light);
}

.admin-product-edit-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px;
}

.admin-product-edit-card-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.admin-product-edit-hint {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.45;
}

.admin-product-edit-card .form-group {
    margin-bottom: 14px;
}

.admin-product-edit-card .form-group:last-child {
    margin-bottom: 0;
}

.admin-product-edit-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 4px;
}

.admin-product-edit-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.admin-product-edit-lang .language-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.admin-product-edit-lang .lang-tab {
    padding: 10px 18px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    color: var(--text-color);
}

.admin-product-edit-lang .lang-tab:hover {
    background: var(--bg-color);
}

.admin-product-edit-lang .lang-tab.active {
    background: var(--bg-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    position: relative;
    z-index: 1;
    margin-bottom: -2px;
}

.lang-tab-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.admin-product-edit-lang .lang-content {
    border: 2px solid var(--border-color);
    border-radius: 0 10px 10px 10px;
    padding: 20px;
    background: var(--bg-color);
    margin-top: -2px;
}

.admin-product-edit-slug-row {
    grid-template-columns: 1fr 1fr;
}

.admin-product-edit-qty-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.admin-product-edit-form .form-text {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-light);
}

.admin-product-edit-sidebar .product-gallery-manager {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 14px;
    background: var(--bg-light);
}

.admin-product-edit-sidebar .gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
    min-height: 72px;
}

.admin-product-edit-sidebar .gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    background: white;
    cursor: grab;
    transition: all 0.2s;
}

.admin-product-edit-sidebar .gallery-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-product-edit-sidebar .gallery-item.is-primary {
    border-color: var(--primary-color);
    border-width: 3px;
}

.admin-product-edit-sidebar .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, transparent 40%, transparent 60%, rgba(0, 0, 0, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-actions {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
}

.gallery-item-btn {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.gallery-item-btn.primary-btn {
    background: white;
    color: #333;
}

.gallery-item-btn.primary-btn:hover {
    background: var(--primary-color);
    color: white;
}

.gallery-item-btn.delete-btn {
    background: #dc3545;
    color: white;
}

.gallery-item-btn.delete-btn:hover {
    background: #c82333;
}

.gallery-item-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    z-index: 2;
}

.gallery-item-drag {
    color: white;
    font-size: 10px;
    text-align: center;
}

.gallery-add-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery-add-or {
    color: var(--text-light);
    font-size: 12px;
}

.gallery-upload-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gallery-upload-progress {
    margin-top: 10px;
}

.gallery-upload-progress .progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.gallery-upload-progress .progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s;
}

.gallery-upload-progress span {
    font-size: 12px;
    color: var(--text-light);
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px 12px;
    color: var(--text-light);
    font-size: 13px;
}

.gallery-empty svg {
    opacity: 0.5;
    margin-bottom: 8px;
}

.gallery-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: var(--text-light);
    font-size: 13px;
}

.sortable-ghost {
    opacity: 0.4;
}

.sortable-drag {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-sm {
    padding: 7px 12px;
    font-size: 13px;
}

.admin-media-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
    padding: 24px;
}

.admin-media-modal[hidden] {
    display: none !important;
}

.admin-media-modal-dialog {
    background: var(--bg-color);
    margin: 0 auto;
    max-width: 1100px;
    padding: 24px;
    border-radius: 12px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.admin-media-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.admin-media-modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.admin-media-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color);
    line-height: 1;
    padding: 0 4px;
}

.admin-media-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    max-height: 58vh;
    overflow-y: auto;
}

.admin-media-modal-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-light);
    padding: 40px;
}

.admin-media-modal-footer {
    margin-top: 16px;
    text-align: right;
}

.admin-media-upload-bar {
    grid-column: 1 / -1;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 8px;
    border: 2px dashed var(--border-color);
}

.admin-media-upload-bar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-media-upload-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-media-upload-hint {
    color: var(--text-light);
    font-size: 13px;
}

.admin-media-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px 20px;
}

.admin-media-empty p {
    color: var(--text-light);
    margin: 12px 0 0;
}

@media (max-width: 1024px) {
    .admin-product-edit-layout {
        grid-template-columns: 1fr;
    }

    .admin-product-edit-main {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .admin-product-edit-toolbar-meta {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .admin-product-edit-toolbar {
        padding: 12px 16px;
    }

    .admin-product-edit-main,
    .admin-product-edit-sidebar {
        padding: 16px;
    }

    .admin-product-edit-slug-row,
    .admin-product-edit-qty-row {
        grid-template-columns: 1fr;
    }

    .admin-product-edit-toolbar-actions {
        width: 100%;
        justify-content: stretch;
    }

    .admin-product-edit-toolbar-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

.admin-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-color);
}

.admin-table th,
.admin-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: var(--bg-light);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    position: sticky;
    top: 0;
}

.admin-table tbody tr {
    transition: background 0.2s;
}

.admin-table tbody tr:hover {
    background: var(--bg-light);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-danger {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-danger:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.admin-form {
    background: var(--bg-color);
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.admin-form .form-group {
    margin-bottom: 25px;
}

.admin-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-color);
}

.admin-form .form-group input,
.admin-form .form-group select,
.admin-form .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    font-size: 14px;
    font-family: var(--font-main);
    transition: all 0.3s;
    border-radius: 6px;
}

.admin-form .form-group input:focus,
.admin-form .form-group select:focus,
.admin-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 109, 31, 0.1);
}

/* Image Uploader */
.image-upload-wrapper {
    margin-top: 10px;
}

.image-preview-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.image-preview {
    position: relative;
    width: 200px;
    height: 200px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
    flex-shrink: 0;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: var(--shadow-md);
}

.remove-image:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.image-upload-area {
    flex: 1;
}

.upload-placeholder {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-light);
}

.upload-placeholder:hover,
.upload-placeholder.drag-over {
    border-color: var(--primary-color);
    background: rgba(255, 109, 31, 0.05);
}

.upload-placeholder svg {
    color: var(--text-light);
    margin-bottom: 15px;
}

.upload-placeholder p {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 5px;
}

.upload-placeholder span {
    font-size: 12px;
    color: var(--text-light);
}

.upload-progress {
    margin-top: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 6px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s;
    border-radius: 4px;
}

#progress-text {
    font-size: 12px;
    color: var(--text-light);
    display: block;
    text-align: center;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-left: 3px solid;
}

.alert-error {
    background: #fee9ec;
    color: #991b1b;
    border-color: var(--primary-color);
}

.alert-success {
    background: #fff4ed;
    color: #b84400;
    border-color: var(--primary-color);
}

.alert ul {
    margin-left: 20px;
    margin-top: 10px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--footer-bg, var(--text-color));
    color: var(--footer-text-color, white);
    padding: 20px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination-btn {
    padding: 10px 15px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--button-bg);
    color: var(--button-color);
    border-color: var(--button-bg);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.empty-cart,
.empty-orders,
.no-products {
    text-align: center;
    padding: 80px 40px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
}

.empty-cart p,
.empty-orders p,
.no-products p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .header-search {
        order: 3;
        width: 100%;
        margin: 15px 0 0 0;
        max-width: 100%;
    }
    
    .search-form-inline input {
        border-radius: 8px;
        padding: 10px 45px 10px 15px;
    }
    
    .search-form-inline button {
        width: 32px;
        height: 32px;
        right: 6px;
    }
    
    .cart-link {
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .cart-icon-svg {
        width: 22px;
        height: 22px;
    }

    .main-nav {
        order: 4;
        width: 100%;
        max-width: 100%;
        margin-top: 15px;
        justify-content: flex-start;
        gap: 1.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }
    
    .main-nav::-webkit-scrollbar {
        display: none;
    }
    
    .main-nav {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .hero-section {
        padding: 50px 0;
    }

    .hero-section h1 {
        font-size: 32px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    @media (max-width: 480px) {
        .products-grid {
            grid-template-columns: 1fr;
        }
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }
    
    .product-contact-info {
        order: -1;
    }
    
    .contact-page-layout {
        grid-template-columns: 1fr !important;
    }
    
    .contact-info,
    .contact-form-wrapper {
        width: 100%;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .cart-table {
        font-size: 13px;
    }

    .cart-table th,
    .cart-table td {
        padding: 10px;
    }

    .admin-table {
        font-size: 12px;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px;
    }

    .minicart-sidebar {
        width: 100%;
        right: -100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

}

/* ============================================
   STEPS SECTION
   ============================================ */
.steps-section {
    padding: 20px 0;
    background: var(--bg-color);
}

.steps-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.steps-header .steps-main-title {
    margin-bottom: 0;
}

.steps-main-title {
    text-align: center;
    font-size: 30px;
    font-weight: 300;
    color: var(--text-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: grid !important;
    grid-template-columns: 1fr max-content 1fr !important;
    grid-template-rows: 27px 0 !important;
    grid-gap: 20px !important;
    align-items: center;
    margin-bottom: 0;
    font-family: "Playfair Display", serif;
    width: 100%;
    max-width: 100%;
    padding-bottom: 0 !important;
    line-height: 1.5em !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
}

.steps-main-title::after,
.steps-main-title::before {
    content: " " !important;
    display: block !important;
    border-bottom: 1px solid var(--primary-color) !important;
    border-top: 1px solid var(--primary-color) !important;
    height: 5px !important;
    background-color: var(--bg-color) !important;
    position: static !important;
}

/* Ensure mobile styles override base styles - placed after base definition */
@media (max-width: 768px) {
    .steps-main-title {
        display: block !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        grid-gap: 0 !important;
        white-space: normal !important;
        overflow: visible !important;
    }
    
    .steps-main-title::before,
    .steps-main-title::after {
        display: none !important;
        content: "" !important;
        width: 0 !important;
        height: 0 !important;
        border: none !important;
        background: none !important;
    }
}

@media (max-width: 480px) {
    .steps-main-title {
        display: block !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        grid-gap: 0 !important;
        white-space: normal !important;
        overflow: visible !important;
    }
    
    .steps-main-title::before,
    .steps-main-title::after {
        display: none !important;
        content: "" !important;
        width: 0 !important;
        height: 0 !important;
        border: none !important;
        background: none !important;
    }
}

.steps-description {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 50px 0 0 0;
    padding-top: 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: -28px;
}

.step-card {
    background: var(--bg-color);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.step-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    background: #F5E6D3;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--bg-light);
    position: relative;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.step-content {
    background: #3f4d40;
    color: #ffffff;
    padding: 25px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #ffffff;
    line-height: 1.4;
}

.step-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .steps-section {
        padding: 60px 0;
    }
    
    .steps-header {
        margin-bottom: 40px;
    }
    
    .steps-main-title {
        font-size: 24px;
        padding-bottom: 40px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        display: block !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        white-space: normal !important;
        overflow: visible !important;
    }
    
    .steps-main-title::before,
    .steps-main-title::after {
        display: none !important;
        content: "" !important;
        width: 0 !important;
        height: 0 !important;
        border: none !important;
        background: none !important;
    }
    
    .section-title {
        font-size: 22px;
        padding-bottom: 40px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        display: block !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        white-space: normal !important;
        overflow: visible !important;
    }
    
    .section-title::before,
    .section-title::after {
        display: none !important;
        content: "" !important;
        width: 0 !important;
        height: 0 !important;
        border: none !important;
        background: none !important;
    }
    
    .steps-main-title {
        font-size: 24px;
        padding-bottom: 30px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        grid-gap: 10px;
    }
    
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .step-image {
        height: 240px;
    }
}

/* ============================================
   MOBILE MENU TOGGLE
   ============================================ */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1002;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   COMPREHENSIVE RESPONSIVE DESIGN
   ============================================ */

/* Tablet and below (768px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .products-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .text-image-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 40px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .site-header {
        position: fixed !important;
        top: 0 !important;
        z-index: 1000 !important;
    }
    
    /* Add padding to main content for sticky header */
    main.main-content {
        padding-top: 20px !important;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* All Headings - Prevent Overflow on Mobile */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* H1 and H2 spacing on mobile */
    h1, h2 {
        margin-top: 30px !important;
        margin-bottom: 20px !important;
    }
    
    /* First h1/h2 in a container - add spacing from sticky header */
    .container > h1:first-child,
    .container > h2:first-child,
    .main-content > .container > h1:first-child,
    .main-content > .container > h2:first-child {
        margin-top: 30px !important;
    }
    
    /* Section title (used on About Us page) - add spacing from sticky header */
    .section-title:first-child,
    .container > .section-title:first-child,
    .main-content > .container > .section-title:first-child,
    .homepage-section > .section-title:first-child {
        margin-top: 30px !important;
        padding-top: 0 !important;
    }
    
    /* First h1/h2 in sections/content areas */
    section > h1:first-child,
    section > h2:first-child,
    .contact-content > h1:first-child,
    .contact-content > h2:first-child,
    .about-page-content > h1:first-child,
    .about-page-content > h2:first-child {
        margin-top: 0 !important;
    }
    
    /* Header */
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }

    .site-header,
    .site-header .container,
    .header-content {
        overflow: visible !important;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 1;
        min-width: 44px;
        min-height: 44px;
    }
    
    .logo {
        order: 2;
        flex: 1;
    }
    
    .language-switcher {
        order: 3;
    }
    
    .cart-icon {
        order: 4;
    }
    
    .main-nav {
        order: 5;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        max-width: 100vw;
        display: none;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0;
        background: var(--accent-color);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
        transform: translateX(0);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    /* Header should remain fixed on mobile */
    .site-header {
        position: fixed !important;
        top: 0 !important;
        z-index: 1000 !important;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav a {
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        min-height: 48px;
        font-size: 16px;
        display: flex;
        align-items: center;
        background: var(--accent-color);
        transition: background 0.2s ease;
        box-sizing: border-box;
        margin: 0;
    }
    
    .main-nav a:hover,
    .main-nav a.active {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .main-nav a svg {
        width: 20px;
        height: 20px;
        margin-right: 10px;
        flex-shrink: 0;
    }
    
    .main-nav a:last-child {
        border-bottom: none;
    }
    
    /* Header should remain fixed on mobile */
    .site-header {
        position: fixed !important;
        top: 0 !important;
        z-index: 1000 !important;
    }
    
    .header-content {
        position: relative;
    }
    
    /* All Headings - Prevent Overflow */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .product-card h3,
    .product-title,
    .step-title,
    .category-card h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 28px;
        line-height: 1.2;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-section p {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .hero-content {
        padding: 20px 15px;
        margin-top: -30px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-content h1 {
        font-size: 28px;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .hero-content p {
        font-size: 14px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    /* Hero Slider - Mobile Optimization */
    .hero-slider {
        min-height: 500px;
        max-height: 60vh;
        overflow: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .hero-slides {
        min-height: 500px;
        max-height: 60vh;
        width: 100%;
        max-width: 100vw;
    }
    
    .hero-slide {
        min-height: 500px;
        max-height: 60vh;
        width: 100%;
        max-width: 100vw;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }
    
    .homepage-hero {
        min-height: 500px;
        max-height: 60vh;
        width: 100%;
        max-width: 100vw;
    }
    
    .homepage-hero .container {
        padding: 80px 20px 30px 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-content {
        padding: 15px 15px;
        margin-top: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Remove gap after hero slider on mobile */
    .hero-slider {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .homepage-hero {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Remove gap before next section after hero slider */
    .hero-slider + .homepage-section,
    .homepage-hero + .homepage-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Reduce margin for section-title immediately after hero slider */
    .hero-slider + .homepage-section .section-title:first-child,
    .homepage-hero + .homepage-section .section-title:first-child,
    .hero-slider + .homepage-section > .section-title:first-child,
    .homepage-hero + .homepage-section > .section-title:first-child {
        margin-top: 0px !important;
        padding-top: 0px !important;
    }

    .section-title {
        padding: 0px !important;
        margin-top: 0px !important;
        font-weight: bold;
        margin-bottom: 20px;
    }

    .text-image-content {
        font-size: 16px;
        line-height: 1.7;
        padding: 0px;
    }

    /* H1 and H2 spacing on mobile */
    h1, h2 {
        margin-top: 30px !important;
        margin-bottom: 20px !important;
    }
    
    .hero-slider-controls {
        padding: 0 10px;
        width: 100%;
        max-width: 100vw;
    }
    
    .hero-slider-prev,
    .hero-slider-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    /* Products page filters - compact on mobile */
    .container:has(.products-header) > .section-title {
        margin-bottom: 16px !important;
    }

    .products-header {
        margin-bottom: 16px;
    }

    .products-header .filters {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 0;
    }

    .products-header .search-form {
        max-width: none;
        width: 100%;
    }

    .products-header .search-form input {
        padding: 10px 14px;
        font-size: 16px;
    }

    .products-header .search-form button {
        padding: 10px 18px;
    }

    .category-filter {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        width: auto;
        max-width: none;
        margin-left: -15px;
        margin-right: -15px;
        padding: 2px 15px 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .category-filter::-webkit-scrollbar {
        display: none;
    }

    .category-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 999px;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .products-grid-2,
    .products-grid-3,
    .products-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-card {
        padding: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .product-image {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 1;
        overflow: hidden;
    }
    
    .product-card .product-image img {
        width: 100%;
        max-width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    .product-card h3 {
        font-size: 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Product Detail Page */
    .breadcrumb {
        padding: 15px 0;
        font-size: 12px;
        margin-bottom: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Prevent overflow on product page */
    .product-details > div[style*="display: flex"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        flex-wrap: wrap !important;
    }
    
    .product-details h1 {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    
    .product-details a[href*="product-edit"] {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-bottom: 20px;
        overflow-x: hidden;
    }
    
    .product-contact-info-row {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .contact-info-card {
        padding: 15px;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .contact-icon {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }
    
    .contact-label {
        font-size: 13px;
    }
    
    .contact-value {
        font-size: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .product-details {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    .product-details h1 {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .product-description-full {
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .product-description-content {
        font-size: 15px;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .product-description-content * {
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .product-sku {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .product-gallery {
        order: 1;
    }
    
    .product-info {
        order: 2;
    }
    
    .product-contact-info {
        order: 3;
    }
    
    /* Override inline styles that cause overflow */
    .add-to-cart-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        flex-wrap: wrap !important;
    }
    
    .add-to-cart-row > div[style*="flex-wrap: nowrap"] {
        flex-wrap: wrap !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .add-to-cart-row .quantity-selector {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }
    
    .add-to-cart-row .btn {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }
    
    .quantity-selector {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .unit-selector {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
        flex-wrap: wrap !important;
    }
    
    /* Steps Section */
    .steps-section {
        padding: 40px 0;
    }
    
    .steps-header {
        margin-bottom: 30px;
    }
    
    .steps-main-title {
        font-size: 24px;
        padding-bottom: 30px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        grid-gap: 10px;
    }
    
    .steps-description {
        font-size: 14px;
        margin-top: 30px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 0;
    }
    
    .step-image {
        height: 200px;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .step-title {
        font-size: 18px;
    }
    
    .step-description {
        font-size: 14px;
    }
    
    /* Text Block & Text Image */
    .text-block-content,
    .text-image-content {
        font-size: 16px;
        line-height: 1.7;
        padding: 0px;
    }
    
    .text-image-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-card {
        padding: 20px;
    }
    
    /* Cart */
    .cart-table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
    }
    
    .cart-table thead {
        display: none;
    }
    
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }
    
    .cart-table tr {
        border: 1px solid var(--border-color);
        border-radius: 8px;
        margin-bottom: 15px;
        padding: 15px;
        background: var(--bg-color);
    }
    
    .cart-table td {
        border: none;
        padding: 8px 0;
        text-align: left;
    }
    
    .cart-table td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        display: inline-block;
        width: 100px;
    }
    
    .cart-product {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cart-product img {
        width: 100%;
        height: auto;
        max-height: 200px;
        object-fit: cover;
    }
    
    .cart-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .cart-summary {
        justify-content: flex-start;
    }
    
    /* Checkout */
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .checkout-form,
    .checkout-summary {
        width: 100%;
    }
    
    /* Contact Page */
    .contact-page-layout {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .contact-info,
    .contact-form-wrapper {
        width: 100%;
    }
    
    /* Minicart */
    .minicart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .minicart-sidebar.active {
        right: 0;
    }
    
    /* Forms - Better touch targets */
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group label {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 8px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 13px 15px;
        min-height: 46px;
        border-radius: 6px;
    }
    
    textarea {
        min-height: 110px;
    }
    
    /* Buttons - Larger touch targets */
    .btn {
        padding: 14px 24px;
        font-size: 15px;
        min-height: 46px;
    }
    
    .btn-large {
        padding: 16px 28px;
        font-size: 17px;
        min-height: 50px;
    }
    
    /* Quantity buttons */
    .quantity-btn {
        min-width: 46px;
        min-height: 46px;
    }
    
    .quantity-input-styled {
        min-height: 46px;
    }
    
    .add-to-cart-row .quantity-selector input[type="number"] {
        min-height: 46px;
    }
    
    /* Unit buttons */
    .unit-btn {
        min-height: 46px;
        padding: 12px 18px;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 24px;
        padding-bottom: 30px;
    }
    
    /* About Page */
    .about-page-content {
        padding: 15px 0;
        font-size: 15px;
    }
    
    .about-page-content h1,
    .about-page-content h2,
    .about-page-content h3 {
        font-size: 20px;
        margin-top: 1em;
    }
    
    /* Footer */
    .site-footer {
        padding: 20px 0 30px;
        margin-top: 40px;
    }
    
    .footer-bottom {
        font-size: 12px;
    }
    
    /* Admin */
    .admin-table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px;
        white-space: nowrap;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .admin-card {
        padding: 20px;
    }
}

/* Small Mobile (480px and below) - Optimized for Phone View */
@media (max-width: 480px) {
    .site-header {
        position: fixed !important;
        top: 0 !important;
        z-index: 1000 !important;
    }
    
    /* Add padding to main content for sticky header */
    main.main-content {
        padding-top: 15px !important;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* All Headings - Prevent Overflow on Small Mobile */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
    }
    
    /* H1 and H2 spacing on small mobile */
    h1, h2 {
        margin-top: 30px !important;
        margin-bottom: 20px !important;
    }
    
    /* First h1/h2 in a container - add spacing from sticky header */
    .container > h1:first-child,
    .container > h2:first-child,
    .main-content > .container > h1:first-child,
    .main-content > .container > h2:first-child {
        margin-top: 30px !important;
    }
    
    /* Section title (used on About Us page) - add spacing from sticky header */
    .section-title:first-child,
    .container > .section-title:first-child,
    .main-content > .container > .section-title:first-child,
    .homepage-section > .section-title:first-child {
        margin-top: 30px !important;
        padding-top: 0 !important;
    }
    
    /* First h1/h2 in sections/content areas */
    section > h1:first-child,
    section > h2:first-child,
    .contact-content > h1:first-child,
    .contact-content > h2:first-child,
    .about-page-content > h1:first-child,
    .about-page-content > h2:first-child {
        margin-top: 0 !important;
    }
    
    /* Header - Larger touch targets */
    .header-content {
        padding: 12px 0;
        gap: 10px;
    }
    
    .mobile-menu-toggle {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }
    
    .logo {
        font-size: 20px;
        flex: 1;
        min-width: 0;
    }
    
    .logo a {
        font-size: 20px;
    }
    
    .logo img {
        max-height: 40px;
        max-width: 150px;
    }
    
    .cart-link {
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .cart-icon-svg {
        width: 24px;
        height: 24px;
    }
    
    .language-switcher {
        min-width: 44px;
    }
    
    .lang-current {
        padding: 10px 12px;
        font-size: 13px;
        min-height: 44px;
    }
    
    .lang-flag {
        width: 18px !important;
        height: 14px !important;
    }
    
    .lang-code {
        font-size: 12px;
    }
    
    /* Navigation - Dropdown below header - Full Width */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        padding: 0;
        background: var(--accent-color);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
        transform: translateX(0);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav a {
        padding: 16px 20px;
        font-size: 16px;
        min-height: 48px;
        display: flex;
        align-items: center;
        background: var(--accent-color);
        transition: background 0.2s ease;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav a:hover,
    .main-nav a.active {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .main-nav a svg {
        width: 20px;
        height: 20px;
        margin-right: 10px;
        flex-shrink: 0;
    }
    
    .main-nav a:last-child {
        border-bottom: none;
    }
    
    /* Hero Slider - Mobile Optimization */
    .hero-slider {
        min-height: 500px;
        max-height: 50vh;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }
    
    .hero-slides {
        min-height: 500px;
        max-height: 50vh;
        width: 100%;
        max-width: 100vw;
    }
    
    .hero-slide {
        min-height: 500px;
        max-height: 50vh;
        width: 100%;
        max-width: 100vw;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }
    
    .homepage-hero {
        min-height: 500px;
        max-height: 50vh;
        width: 100%;
        max-width: 100vw;
    }
    
    .homepage-hero .container {
        padding: 70px 15px 25px 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-content {
        padding: 15px 15px;
        margin-top: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Remove gap after hero slider on mobile */
    .hero-slider {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .homepage-hero {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Remove gap before next section after hero slider */
    .hero-slider + .homepage-section,
    .homepage-hero + .homepage-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Reduce margin for section-title immediately after hero slider */
    .hero-slider + .homepage-section .section-title:first-child,
    .homepage-hero + .homepage-section .section-title:first-child,
    .hero-slider + .homepage-section > .section-title:first-child,
    .homepage-hero + .homepage-section > .section-title:first-child {
        margin-top: 0px !important;
        padding-top: 0px !important;
    }

    .section-title {
        padding: 0px !important;
        margin-top: 0px !important;
        font-weight: bold;
        margin-bottom: 20px;
    }

    .text-image-content {
        font-size: 16px;
        line-height: 1.7;
        padding: 0px;
    }

    /* H1 and H2 spacing on mobile */
    h1, h2 {
        margin-top: 30px !important;
        margin-bottom: 20px !important;
    }
    
    .hero-slider-controls {
        padding: 0 10px;
        width: 100%;
        max-width: 100vw;
    }
    
    .hero-slider-prev,
    .hero-slider-next {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .hero-slider-dots {
        bottom: 10px;
    }
    
    /* Hero Section - Better spacing */
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-section p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    .hero-content {
        padding: 15px 15px;
        margin-top: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-content h1 {
        font-size: 28px;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .hero-content p {
        font-size: 15px;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .category-btn {
        padding: 7px 12px;
        font-size: 12px;
    }

    /* Products - Single column, better spacing */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .products-grid-2,
    .products-grid-3,
    .products-grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .product-card {
        padding: 15px;
        border-radius: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .product-image {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 1;
        overflow: hidden;
    }
    
    .product-card .product-image img {
        width: 100%;
        max-width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    .product-card h3 {
        font-size: 18px;
        line-height: 1.4;
        margin-bottom: 10px;
        min-height: 50px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .product-description {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .product-info .btn {
        min-height: 48px;
        font-size: 16px;
        padding: 14px 20px;
        font-weight: 600;
    }
    
    /* Product Detail Page */
    .breadcrumb {
        padding: 12px 0;
        font-size: 11px;
        margin-bottom: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.5;
    }
    
    /* Prevent overflow on product page - Small Mobile */
    .product-details > div[style*="display: flex"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        flex-wrap: wrap !important;
    }
    
    .product-details h1 {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        box-sizing: border-box !important;
        font-size: 20px !important;
    }
    
    .product-details a[href*="product-edit"] {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
    
    .product-detail {
        padding: 15px;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-bottom: 20px;
        overflow-x: hidden;
    }
    
    .product-contact-info-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .contact-info-card {
        padding: 12px;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        flex-wrap: wrap;
    }
    
    .contact-icon {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
    
    .contact-label {
        font-size: 12px;
    }
    
    .contact-value {
        font-size: 14px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .product-images {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
        overflow: visible;
    }
    
    .product-main-image {
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 1 !important;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .product-main-image img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 100vw !important;
        object-fit: contain !important;
        display: block;
    }
    
    .product-thumbnails {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }
    
    .product-thumbnail {
        width: 70px !important;
        height: 70px !important;
        flex-shrink: 0;
        box-sizing: border-box;
    }
    
    .product-gallery {
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .product-gallery img {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 70vh;
        object-fit: contain;
        display: block;
    }
    
    .product-details {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    .product-details h1 {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
    }
    
    .product-title {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .product-description-full {
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .product-description-content {
        font-size: 15px;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .product-description-content * {
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .product-description-content p {
        margin-bottom: 12px;
    }
    
    .product-description-content img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .product-sku {
        font-size: 13px;
        margin-bottom: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .product-sku * {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }
    
    /* Quantity Selector - Larger touch targets */
    .quantity-selector {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .quantity-btn {
        min-width: 48px;
        min-height: 48px;
        font-size: 20px;
        font-weight: 600;
    }
    
    .quantity-input-styled {
        min-height: 48px;
        font-size: 18px;
        padding: 12px;
        text-align: center;
    }
    
    .add-to-cart-row .quantity-selector input[type="number"] {
        min-height: 48px;
        font-size: 18px;
        padding: 12px;
    }
    
    /* Add to Cart Form */
    .add-to-cart-form {
        margin-top: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* Override inline styles that cause overflow */
    .add-to-cart-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        flex-wrap: wrap !important;
    }
    
    .add-to-cart-row > div[style*="flex-wrap: nowrap"] {
        flex-wrap: wrap !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        flex-direction: column !important;
        gap: 15px !important;
        align-items: stretch !important;
    }
    
    .add-to-cart-row .quantity-selector {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }
    
    .add-to-cart-row .btn[style*="white-space: nowrap"] {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }
    
    /* Unit Selector - Better spacing */
    .unit-selector {
        width: 100% !important;
        max-width: 100% !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
    }
    
    .unit-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: calc(50% - 4px);
        max-width: calc(50% - 4px);
        min-height: 48px;
        padding: 12px 16px;
        font-size: 14px;
        box-sizing: border-box;
    }
    
    /* Add to Cart Button - Override inline styles */
    .add-to-cart-row {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        flex-direction: column !important;
        gap: 15px !important;
        flex-wrap: wrap !important;
    }
    
    .add-to-cart-row > div[style*="flex-wrap: nowrap"] {
        flex-wrap: wrap !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        flex-direction: column !important;
        gap: 15px !important;
        align-items: stretch !important;
    }
    
    .add-to-cart-row .btn,
    .add-to-cart-form .btn {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 52px;
        font-size: 16px;
        font-weight: 600;
        padding: 16px 24px;
        box-sizing: border-box !important;
        margin-top: 0;
        white-space: normal !important;
        word-wrap: break-word !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }
    
    #total-pieces-display {
        width: 100% !important;
        max-width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        font-size: 13px;
        margin-top: 10px;
        box-sizing: border-box !important;
    }
    
    #total-pieces-text {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
        display: block !important;
    }
    
    /* Steps Section */
    .steps-section {
        padding: 40px 0;
    }
    
    .steps-header {
        margin-bottom: 30px;
    }
    
    .steps-main-title {
        font-size: 20px;
        padding-bottom: 25px;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        display: block !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        white-space: normal !important;
        overflow: visible !important;
    }
    
    .steps-main-title::before,
    .steps-main-title::after {
        display: none !important;
        content: "" !important;
        width: 0 !important;
        height: 0 !important;
        border: none !important;
        background: none !important;
    }
    
    .section-title {
        font-size: 20px;
        padding-bottom: 25px;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        display: block !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        white-space: normal !important;
        overflow: visible !important;
    }
    
    .section-title::before,
    .section-title::after {
        display: none !important;
        content: "" !important;
        width: 0 !important;
        height: 0 !important;
        border: none !important;
        background: none !important;
    }
    
    .steps-description {
        font-size: 15px;
        line-height: 1.6;
        margin-top: 25px;
    }
    
    .steps-grid {
        gap: 25px;
    }
    
    .step-card {
        border-radius: 8px;
    }
    
    .step-image {
        height: 200px;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .step-title {
        font-size: 18px;
        line-height: 1.4;
        margin-bottom: 10px;
    }
    
    .step-description {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 22px;
        padding-bottom: 25px;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-card {
        padding: 25px;
        min-height: 120px;
    }
    
    .category-card h3 {
        font-size: 20px;
    }
    
    /* Buttons - Full width, larger touch targets */
    .btn {
        padding: 14px 24px;
        font-size: 16px;
        width: 100%;
        max-width: 100%;
        min-height: 48px;
        font-weight: 600;
        border-radius: 8px;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .btn-large {
        padding: 16px 28px;
        font-size: 18px;
        min-height: 52px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Forms - Better inputs */
    .form-group {
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-group label {
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 8px;
        display: block;
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    textarea,
    select {
        padding: 14px 16px;
        font-size: 16px;
        min-height: 48px;
        border-radius: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    textarea {
        min-height: 120px;
        resize: vertical;
        width: 100%;
        max-width: 100%;
    }
    
    /* Cart Table - Convert to cards */
    .cart-table {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .cart-table thead {
        display: none;
    }
    
    .cart-table tbody,
    .cart-table tr {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .cart-table tr {
        border: 1px solid var(--border-color);
        border-radius: 8px;
        margin-bottom: 20px;
        padding: 15px;
        background: var(--bg-color);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .cart-table td {
        display: block;
        border: none;
        padding: 10px 0;
        text-align: left;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .cart-table td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        display: inline-block;
        width: 120px;
        font-size: 14px;
    }
    
    .cart-product {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .cart-product img {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 250px;
        object-fit: cover;
        border-radius: 8px;
        display: block;
    }
    
    .cart-product h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .cart-actions {
        flex-direction: row;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .cart-actions .btn {
        flex: 1 1 auto;
        min-width: 120px;
    }
    
    /* Checkout */
    .checkout-layout {
        gap: 25px;
    }
    
    .checkout-form,
    .checkout-summary {
        padding: 20px;
        border-radius: 8px;
    }
    
    /* Contact Page */
    .contact-page-layout {
        gap: 25px;
    }
    
    .contact-info {
        padding: 20px;
    }
    
    .contact-form-wrapper {
        padding: 20px;
    }
    
    /* Minicart - Full width optimization */
    .minicart-sidebar {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .minicart-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .minicart-body {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .minicart-item {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .minicart-item img {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .minicart-header {
        padding: 20px;
    }
    
    .minicart-header h3 {
        font-size: 20px;
    }
    
    .minicart-close {
        min-width: 44px;
        min-height: 44px;
        font-size: 28px;
    }
    
    .minicart-body {
        padding: 15px;
    }
    
    .minicart-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        gap: 15px;
    }
    
    .minicart-item img {
        width: 100%;
        height: auto;
        max-height: 250px;
        object-fit: cover;
        border-radius: 8px;
    }
    
    .minicart-item-info {
        width: 100%;
    }
    
    .minicart-item-info h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .minicart-item-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .minicart-quantity-input {
        min-height: 44px;
        font-size: 16px;
    }
    
    .minicart-remove {
        min-height: 44px;
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .minicart-footer {
        padding: 20px;
    }
    
    .minicart-total {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .minicart-actions .btn {
        min-height: 52px;
        font-size: 16px;
    }
    
    /* About Page */
    .about-page-content {
        padding: 20px 0;
        font-size: 16px;
        line-height: 1.7;
    }
    
    .about-page-content h1 {
        font-size: 28px;
        margin-top: 1.5em;
        margin-bottom: 0.5em;
    }
    
    .about-page-content h2 {
        font-size: 24px;
        margin-top: 1.5em;
        margin-bottom: 0.5em;
    }
    
    .about-page-content h3 {
        font-size: 20px;
        margin-top: 1.5em;
        margin-bottom: 0.5em;
    }
    
    .about-page-content p {
        margin-bottom: 15px;
    }
    
    .about-page-content img {
        width: 100%;
        height: auto;
        margin: 20px 0;
    }
    
    /* Footer */
    .site-footer {
        padding: 25px 0 30px;
        margin-top: 50px;
    }
    
    .footer-bottom {
        font-size: 13px;
        padding: 0 15px;
    }
    
    /* Admin Tables - Better mobile view */
    .admin-table {
        font-size: 13px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 12px 8px;
    }
    
    .admin-card {
        padding: 20px 15px;
    }
    
    /* Text Block & Text Image */
    .text-block-content,
    .text-image-content {
        font-size: 16px;
        line-height: 1.7;
        padding: 0px;
    }
    
    .text-block-content p,
    .text-image-content p {
        margin-bottom: 15px;
    }
    
    /* Search */
    .search-form-inline {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .search-form-inline input {
        font-size: 16px;
        padding: 12px 50px 12px 16px;
        min-height: 48px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .search-form-inline button {
        width: 44px;
        height: 44px;
        right: 4px;
        box-sizing: border-box;
    }
    
    /* Homepage Sections */
    .homepage-section {
        padding: 40px 0;
    }
    
    /* CTA Section */
    .cta-content h2 {
        font-size: 24px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-text {
        font-size: 15px;
        line-height: 1.6;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 30px 0;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Print Styles */
@media print {
    .site-header,
    .main-nav,
    .cart-icon,
    .language-switcher,
    .minicart-sidebar,
    .minicart-overlay,
    .site-footer {
        display: none !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    body {
        background: white;
        color: black;
    }
}
