/* Modern Theme Variables */
:root {
    --bg-primary: #fafafa;
    --bg-secondary: #f5f5f5;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: #e2e8f0;
    --accent-color: #f97316;
    --accent-hover: #ea580c;
    --accent-light: #fed7aa;
    --success-color: #10b981;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05), 0 1px 2px 0 rgb(0 0 0 / 0.06);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
    --gradient-primary: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%);
    --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --accent-light: #7c2d12;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.4);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.6);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.7);
}

[data-theme="dark"] .prose .bg-white,
[data-theme="dark"] .prose .bg-gray-50,
[data-theme="dark"] .prose .bg-gray-100,
[data-theme="dark"] .prose .bg-blue-50,
[data-theme="dark"] .prose .bg-green-50,
[data-theme="dark"] .prose .bg-yellow-50,
[data-theme="dark"] .prose .bg-orange-50,
[data-theme="dark"] .prose .bg-red-50,
[data-theme="dark"] .prose .bg-purple-50,
[data-theme="dark"] .prose .bg-cyan-50,
[data-theme="dark"] article .bg-white,
[data-theme="dark"] article .bg-gray-50,
[data-theme="dark"] article .bg-gray-100,
[data-theme="dark"] article .bg-blue-50,
[data-theme="dark"] article .bg-green-50,
[data-theme="dark"] article .bg-yellow-50,
[data-theme="dark"] article .bg-orange-50,
[data-theme="dark"] article .bg-red-50,
[data-theme="dark"] article .bg-purple-50,
[data-theme="dark"] article .bg-cyan-50 {
    background: #0b1220 !important;
    color: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}

[data-theme="dark"] .prose .bg-white *,
[data-theme="dark"] .prose .bg-gray-50 *,
[data-theme="dark"] .prose .bg-gray-100 *,
[data-theme="dark"] .prose .bg-blue-50 *,
[data-theme="dark"] .prose .bg-green-50 *,
[data-theme="dark"] .prose .bg-yellow-50 *,
[data-theme="dark"] .prose .bg-orange-50 *,
[data-theme="dark"] .prose .bg-red-50 *,
[data-theme="dark"] .prose .bg-purple-50 *,
[data-theme="dark"] .prose .bg-cyan-50 *,
[data-theme="dark"] article .bg-white *,
[data-theme="dark"] article .bg-gray-50 *,
[data-theme="dark"] article .bg-gray-100 *,
[data-theme="dark"] article .bg-blue-50 *,
[data-theme="dark"] article .bg-green-50 *,
[data-theme="dark"] article .bg-yellow-50 *,
[data-theme="dark"] article .bg-orange-50 *,
[data-theme="dark"] article .bg-red-50 *,
[data-theme="dark"] article .bg-purple-50 *,
[data-theme="dark"] article .bg-cyan-50 * {
    color: inherit !important;
}

 article .prose table {
     width: 100%;
     border-collapse: separate !important;
     border-spacing: 0 !important;
     border: 1px solid var(--border-color) !important;
     border-radius: 16px;
     overflow: hidden;
     box-shadow: var(--shadow);
     background: var(--bg-card);
 }

 article .prose {
     overflow-wrap: anywhere;
     word-break: break-word;
 }

 article .prose table {
     display: block;
     max-width: 100%;
     overflow-x: auto;
     -webkit-overflow-scrolling: touch;
 }

 article .prose pre,
 article .prose code {
     max-width: 100%;
     overflow-x: auto;
     -webkit-overflow-scrolling: touch;
 }

 article .prose img,
 article .prose video,
 article .prose iframe {
     max-width: 100%;
     height: auto;
 }

 article .prose iframe {
     aspect-ratio: 16 / 9;
     width: 100%;
 }

 article .prose table thead th {
     background: var(--bg-secondary) !important;
     color: var(--text-primary) !important;
     font-weight: 700;
 }

 article .prose table th,
 article .prose table td {
     padding: 12px 14px;
     vertical-align: top;
     border: 0 !important;
     color: var(--text-primary);
 }

 article .prose table tbody td {
     border-top: 1px solid var(--border-color) !important;
 }

 article .prose table tbody tr:hover {
     background: rgba(249, 115, 22, 0.06);
 }

 article .prose details {
     background: var(--bg-card) !important;
     border: 1px solid var(--border-color) !important;
     border-radius: 16px;
     padding: 16px 18px;
     box-shadow: var(--shadow);
 }

 [data-theme="dark"] article .prose details {
     background: var(--bg-card) !important;
     color: rgba(255, 255, 255, 0.92) !important;
     border-color: rgba(255, 255, 255, 0.10) !important;
 }

 article .prose details + details {
     margin-top: 14px;
 }

 article .prose details:hover {
     border-color: rgba(249, 115, 22, 0.45) !important;
 }

 article .prose summary {
     list-style: none;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 12px;
     font-weight: 700;
     color: var(--text-primary);
 }

 article .prose summary::-webkit-details-marker {
     display: none;
 }

 article .prose summary::after {
     content: '\f078';
     font-family: 'Font Awesome 6 Free';
     font-weight: 900;
     opacity: 0.6;
     transition: transform 0.2s ease, opacity 0.2s ease;
 }

 article .prose details[open] summary::after {
     transform: rotate(180deg);
     opacity: 0.9;
 }

 article .prose details > div {
     margin-top: 12px;
     color: var(--text-secondary) !important;
 }

 [data-theme="dark"] article .prose details > div {
     color: rgba(255, 255, 255, 0.74) !important;
 }

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

 html {
     overflow-x: hidden;
 }

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
}

 main,
 header,
 footer,
 section,
 article {
     max-width: 100%;
 }

 a {
     color: inherit;
     text-decoration: none;
 }

 #warehouse-select option {
     color: #0b1220;
     background: #ffffff;
 }

 [data-theme="dark"] #warehouse-select option {
     color: rgba(255, 255, 255, 0.92);
     background: #0b1220;
 }

 .site-footer {
     background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
     color: rgba(255, 255, 255, 0.88);
     border-top: 1px solid rgba(255, 255, 255, 0.06);
 }

 [data-theme="light"] .site-footer {
     background: linear-gradient(135deg, #0b1220 0%, #111827 100%);
     color: rgba(255, 255, 255, 0.92);
 }

 .site-footer a {
     color: rgba(255, 255, 255, 0.82);
     transition: color 0.2s ease, transform 0.2s ease;
 }

 .site-footer a:hover {
     color: #fb923c;
 }

 .site-footer h3,
 .site-footer h4 {
     letter-spacing: 0.01em;
 }

 .site-footer p,
 .site-footer li {
     color: rgba(255, 255, 255, 0.72);
 }

 .site-footer ul {
     margin: 0;
     padding: 0;
     list-style: none;
 }

 .site-footer .container {
     position: relative;
 }

 .site-footer .container::before {
     content: '';
     position: absolute;
     left: 50%;
     top: -32px;
     width: min(860px, 95vw);
     height: 120px;
     transform: translateX(-50%);
     background: radial-gradient(circle at 50% 30%, rgba(249, 115, 22, 0.16), transparent 62%);
     filter: blur(2px);
     pointer-events: none;
 }

 .site-footer a:hover {
     transform: translateY(-1px);
 }

 .site-footer a.w-10.h-10 {
     border: 1px solid rgba(255, 255, 255, 0.12);
     box-shadow: 0 14px 34px rgb(0 0 0 / 0.28);
     backdrop-filter: blur(10px);
     -webkit-backdrop-filter: blur(10px);
 }

 .site-footer a.w-10.h-10:hover {
     box-shadow: 0 18px 48px rgb(0 0 0 / 0.34);
 }

 @media (min-width: 1024px) {
     .site-footer {
         padding-top: 2.75rem;
         padding-bottom: 2.75rem;
     }

     .site-footer .container {
         max-width: 1240px;
     }

     .site-footer .container > .grid {
         grid-template-columns: 2fr 1fr 1fr;
         grid-template-areas:
             "footer-brand footer-nav footer-social"
             "footer-contacts footer-nav footer-social";
         align-items: start;
         justify-items: start;
         column-gap: 3rem;
         row-gap: 1.75rem;
     }

     .site-footer .container > .grid > :nth-child(1) { grid-area: footer-brand; }
     .site-footer .container > .grid > :nth-child(2) { grid-area: footer-nav; }
     .site-footer .container > .grid > :nth-child(3) { grid-area: footer-contacts; }
     .site-footer .container > .grid > :nth-child(4) { grid-area: footer-social; }

     .site-footer h3,
     .site-footer h4,
     .site-footer ul,
     .site-footer p {
         text-align: left;
     }
 }

 @media (max-width: 768px) {
     .site-footer {
         padding-top: 2.25rem;
         padding-bottom: 2.25rem;
     }

     .site-footer .container::before {
         top: -26px;
         height: 96px;
     }
 }

 .support-dock {
     position: fixed;
     right: 18px;
     bottom: 110px;
     z-index: 1100;
     display: flex;
     flex-direction: column;
     gap: 10px;
 }

 .support-dock a,
 .support-dock button {
     width: 52px;
     height: 52px;
     border-radius: 9999px;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     color: #ffffff;
     border: 1px solid rgba(255,255,255,0.15);
     box-shadow: 0 18px 50px rgb(0 0 0 / 0.25);
     backdrop-filter: blur(14px);
     -webkit-backdrop-filter: blur(14px);
     transition: transform 0.25s ease, box-shadow 0.25s ease;
 }

 .support-dock a:hover,
 .support-dock button:hover {
     transform: translateY(-2px);
     box-shadow: 0 22px 60px rgb(0 0 0 / 0.32);
 }

 .support-dock .dock-chat {
     background: var(--gradient-primary);
 }

 .support-dock .dock-telegram { background: rgba(37, 99, 235, 0.85); }
 .support-dock .dock-whatsapp { background: rgba(22, 163, 74, 0.85); }
 .support-dock .dock-viber { background: rgba(124, 58, 237, 0.85); }
 .support-dock .dock-email { background: rgba(15, 23, 42, 0.65); }

 .support-dock a {
     display: none;
 }

 .support-dock.is-expanded a {
     display: inline-flex;
 }

 .support-dock .dock-chat,
 .support-dock .dock-toggle {
     display: inline-flex;
 }

 .support-dock .dock-toggle {
     background: rgba(15, 23, 42, 0.65);
 }

 @media (max-width: 768px) {
     .support-dock {
         right: 12px;
         bottom: 92px;
     }
 }

 .admin-theme-toggle {
     position: fixed;
     right: 18px;
     bottom: 18px;
     z-index: 1200;
     display: inline-flex;
     align-items: center;
     gap: 10px;
     padding: 10px 14px;
     border-radius: 9999px;
     color: #ffffff;
     background: rgba(15, 23, 42, 0.7);
     border: 1px solid rgba(255,255,255,0.12);
     backdrop-filter: blur(14px);
     -webkit-backdrop-filter: blur(14px);
     box-shadow: 0 18px 55px rgb(0 0 0 / 0.35);
     font-weight: 800;
 }

 .admin-theme-toggle:hover {
     box-shadow: 0 22px 60px rgb(0 0 0 / 0.45);
 }

 .admin[data-theme="dark"] body.bg-gray-100,
 .admin[data-theme="dark"] body {
     background: #0b1220 !important;
     color: rgba(255,255,255,0.92) !important;
 }

 .admin[data-theme="dark"] .bg-white {
     background-color: rgba(17, 24, 39, 0.85) !important;
 }

 .admin[data-theme="dark"] .text-gray-800,
 .admin[data-theme="dark"] .text-gray-700,
 .admin[data-theme="dark"] .text-gray-600,
 .admin[data-theme="dark"] .text-gray-500 {
     color: rgba(255,255,255,0.86) !important;
 }

 .admin[data-theme="dark"] .bg-gray-50,
 .admin[data-theme="dark"] .hover\:bg-gray-50:hover,
 .admin[data-theme="dark"] .hover\:bg-gray-50:focus {
     background-color: rgba(255,255,255,0.04) !important;
 }

 .admin[data-theme="dark"] .border,
 .admin[data-theme="dark"] .border-gray-200,
 .admin[data-theme="dark"] .border-gray-300,
 .admin[data-theme="dark"] .divide-y > :not([hidden]) ~ :not([hidden]),
 .admin[data-theme="dark"] .divide-gray-200 > :not([hidden]) ~ :not([hidden]) {
     border-color: rgba(255,255,255,0.12) !important;
 }

 .admin[data-theme="dark"] input,
 .admin[data-theme="dark"] textarea,
 .admin[data-theme="dark"] select {
     background-color: rgba(15, 23, 42, 0.55) !important;
     color: rgba(255,255,255,0.92) !important;
     border-color: rgba(255,255,255,0.14) !important;
 }

 .admin[data-theme="dark"] input::placeholder,
 .admin[data-theme="dark"] textarea::placeholder {
     color: rgba(255,255,255,0.5) !important;
 }

 a:hover {
     text-decoration: none;
 }

 ul, ol {
     list-style: none;
     padding: 0;
     margin: 0;
 }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

 .site-header {
     backdrop-filter: blur(18px);
     -webkit-backdrop-filter: blur(18px);
     background: color-mix(in srgb, var(--bg-card) 78%, transparent);
     border-bottom: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
     box-shadow: 0 10px 30px rgb(0 0 0 / 0.06);
 }

 .site-brand-text {
     font-size: 1.65rem;
     font-weight: 900;
     letter-spacing: 0.04em;
     background: var(--gradient-primary);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     text-shadow: 0 0 18px rgba(249, 115, 22, 0.35);
 }

 @media (max-width: 768px) {
     .site-brand-text {
         font-size: 1.75rem;
     }
 }

 @media (max-width: 420px) {
     .site-header .header-main {
         flex-wrap: wrap;
         row-gap: 10px;
     }

     .theme-toggle-inline,
     .header-icon-btn {
         width: 40px;
         height: 40px;
     }
 }

 [data-theme="dark"] .site-header {
     box-shadow: 0 18px 50px rgb(0 0 0 / 0.45);
 }

 .site-footer {
     color: rgb(255 255 255 / 0.88);
 }

 .nav-link {
     position: relative;
     transition: color 0.25s ease;
 }

 .nav-link::after {
     content: '';
     position: absolute;
     left: 0;
     bottom: -6px;
     height: 2px;
     width: 100%;
     background: var(--gradient-primary);
     transform: scaleX(0);
     transform-origin: left;
     transition: transform 0.25s ease;
     border-radius: 9999px;
     opacity: 0.9;
 }

 .nav-link:hover::after,
 .nav-link.is-active::after {
     transform: scaleX(1);
 }

 .ui-input {
     border: 1px solid var(--border-color);
     background: var(--bg-card);
     color: var(--text-primary);
     border-radius: 0.9rem;
     outline: none;
     transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
 }

 .ui-input:focus {
    border-color: color-mix(in srgb, var(--accent-color) 70%, var(--border-color));
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-color) 18%, transparent);
}

 .checkout-sticky {
     position: fixed;
     left: 0;
     right: 0;
     bottom: 0;
     z-index: 1700;
     padding: 10px 12px;
     background: color-mix(in srgb, var(--bg-card) 80%, transparent);
     border-top: 1px solid color-mix(in srgb, var(--border-color) 75%, transparent);
     backdrop-filter: blur(18px);
     -webkit-backdrop-filter: blur(18px);
     box-shadow: 0 -20px 50px rgb(0 0 0 / 0.10);
 }

 [data-theme="dark"] .checkout-sticky {
     box-shadow: 0 -20px 60px rgb(0 0 0 / 0.45);
 }

 .checkout-sticky__inner {
     max-width: 1100px;
     margin: 0 auto;
     display: grid;
     grid-template-columns: 1fr auto;
     gap: 12px;
     align-items: center;
 }

 .checkout-sticky__total {
     display: grid;
     gap: 2px;
 }

 @media (min-width: 1024px) {
     .checkout-sticky {
         display: none !important;
     }
 }

 @media (max-width: 768px) {
     body.page-checkout {
         padding-bottom: 84px;
     }
 }

 .status-message {
     position: fixed;
     top: 12px;
     right: 12px;
     z-index: 1500;
     padding: 8px 12px;
     background: color-mix(in srgb, var(--bg-card) 80%, transparent);
     border-radius: 9999px;
     backdrop-filter: blur(12px);
     -webkit-backdrop-filter: blur(12px);
     box-shadow: 0 10px 30px rgb(0 0 0 / 0.10);
     font-size: 0.85rem;
     font-weight: 600;
     color: var(--text-primary);
     animation: fadeIn 0.4s ease;
 }

 .status-message::before {
     content: '';
     position: absolute;
     inset: 0;
     background: var(--gradient-primary);
     opacity: 0.1;
     border-radius: 9999px;
 }

 .status-message.success {
     background: color-mix(in srgb, var(--bg-card) 80%, #34c759);
 }

 .status-message.error {
     background: color-mix(in srgb, var(--bg-card) 80%, #ff3b3f);
 }

 .btn {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     gap: 0.5rem;
     border-radius: 0.95rem;
     font-weight: 800;
     letter-spacing: 0.01em;
     transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
     user-select: none;
 }

 .btn {
     white-space: normal;
     text-wrap: balance;
 }

 .btn > i {
     flex: 0 0 auto;
 }

 .btn > span {
     min-width: 0;
 }

 .btn:active {
     transform: translateY(1px) scale(0.99);
 }

 .btn-primary {
     color: #ffffff;
     background: var(--gradient-primary);
     box-shadow: 0 14px 40px rgb(249 115 22 / 0.22);
 }

 .btn-primary:hover {
     transform: translateY(-1px);
     box-shadow: 0 18px 55px rgb(249 115 22 / 0.28);
 }

 .btn-glass {
     color: var(--text-primary);
     background: color-mix(in srgb, var(--bg-card) 68%, transparent);
     border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
     backdrop-filter: blur(14px);
     -webkit-backdrop-filter: blur(14px);
 }

 .btn-glass:hover {
     transform: translateY(-1px);
     box-shadow: 0 18px 55px rgb(0 0 0 / 0.08);
 }

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
    border-color: var(--accent-light);
}

@media (hover: none) {
    .card:hover {
        transform: none;
    }
}

 @media (max-width: 768px) {
     .card:hover {
         box-shadow: var(--shadow-md);
     }
 }

 .site-header.card:hover {
     transform: none;
 }

 .site-header.card::before {
     display: none;
 }

.card:hover::before {
    transform: scaleX(1);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle-inline {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
    background: color-mix(in srgb, var(--bg-card) 85%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle-inline:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 55px rgb(0 0 0 / 0.10);
}

.header-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
    background: color-mix(in srgb, var(--bg-card) 85%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 55px rgb(0 0 0 / 0.10);
}

.header-icon-btn > i {
    font-size: 1.25rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .theme-toggle-inline,
    .header-icon-btn {
        width: 42px;
        height: 42px;
    }

    .header-icon-btn > i {
        font-size: 1.15rem;
    }
}

.theme-toggle::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s;
    filter: blur(12px);
}

.theme-toggle:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 25px 50px -12px rgb(249 115 22 / 0.5);
}

.theme-toggle:hover::before {
    opacity: 0.6;
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Product Card Enhancements */
.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.product-card:hover::after {
    opacity: 0.1;
}

.product-card img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover img {
    transform: scale(1.1) rotate(2deg);
}

.product-card .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 9999px;
    font-weight: 900;
    font-size: 0.78rem;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.96);
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 14px 34px rgb(0 0 0 / 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 0 2px 8px rgb(0 0 0 / 0.45);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.product-card .badge-new {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%);
    border-color: rgba(16, 185, 129, 0.45);
}

.product-card .badge-hot {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
    border-color: rgba(239, 68, 68, 0.45);
}

.product-card .badge-sale {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.96) 0%, rgba(234, 88, 12, 0.96) 50%, rgba(220, 38, 38, 0.96) 100%);
    border-color: rgba(249, 115, 22, 0.5);
}

.product-card .card-body {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    flex: 1;
}

.product-card .card-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    align-items: stretch;
    justify-items: center;
}

.product-card .card-actions .btn {
    min-height: 48px;
    white-space: nowrap;
}

.product-card .card-actions > a,
.product-card .card-actions > button {
    width: 100%;
    max-width: 220px;
}

 .product-grid.is-single .product-card .card-actions {
     grid-template-columns: 1fr 1fr;
 }

 .product-grid.is-single .product-card .card-actions > a,
 .product-grid.is-single .product-card .card-actions > button {
     max-width: 320px;
 }

@media (min-width: 480px) {
    .product-card .card-actions {
        grid-template-columns: 1fr;
    }
}

 .btn-secondary {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     gap: 0.5rem;
     border-radius: 0.95rem;
     font-weight: 800;
     font-size: 0.95rem;
     line-height: 1.1;
     padding: 0.85rem 1rem;
     color: var(--text-primary);
     background: color-mix(in srgb, var(--bg-card) 92%, transparent);
     border: 1px solid color-mix(in srgb, var(--border-color) 88%, transparent);
     backdrop-filter: blur(12px);
     -webkit-backdrop-filter: blur(12px);
     transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
 }

 [data-theme="light"] .btn-secondary {
     background: #ffffff;
     border-color: rgba(15, 23, 42, 0.14);
     box-shadow: 0 10px 30px rgb(2 6 23 / 0.06);
 }

 .btn-secondary:hover {
     transform: translateY(-1px);
     background: linear-gradient(135deg, rgba(249, 115, 22, 0.14) 0%, rgba(220, 38, 38, 0.10) 100%);
     border-color: color-mix(in srgb, var(--accent-color) 45%, var(--border-color));
     box-shadow: 0 18px 55px rgb(0 0 0 / 0.14);
 }

 [data-theme="light"] .btn-secondary:hover {
     background: #ffffff;
     box-shadow: 0 18px 55px rgb(2 6 23 / 0.10);
 }

 .btn-secondary:active {
     transform: translateY(0);
     background: linear-gradient(135deg, rgba(249, 115, 22, 0.18) 0%, rgba(220, 38, 38, 0.14) 100%);
 }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

 .catalog-layout {
     display: grid;
     grid-template-columns: 320px 1fr;
     gap: 1.25rem;
     align-items: start;
 }

 .catalog-sidebar {
     position: sticky;
     top: 92px;
 }

 .catalog-sidebar__cats {
     display: flex;
     flex-direction: column;
     gap: 0.35rem;
 }

 .catalog-sidebar__cat {
     display: flex;
     align-items: center;
     gap: 0.65rem;
     padding: 0.6rem 0.75rem;
     border-radius: 0.9rem;
     border: 1px solid rgba(148, 163, 184, 0.18);
     transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
 }

 .catalog-sidebar__cat:hover {
     transform: translateY(-1px);
     background: rgba(249, 115, 22, 0.08);
     border-color: rgba(249, 115, 22, 0.25);
 }

 .catalog-sidebar__cat.is-active {
     background: linear-gradient(135deg, rgba(249, 115, 22, 0.14) 0%, rgba(220, 38, 38, 0.10) 100%);
     border-color: rgba(249, 115, 22, 0.32);
 }

 .catalog-sidebar__cat-icon {
     width: 28px;
     height: 28px;
     display: flex;
     align-items: center;
     justify-content: center;
     border-radius: 0.75rem;
     background: rgba(148, 163, 184, 0.12);
 }

 .catalog-sidebar__cat-label {
     font-weight: 800;
     font-size: 0.95rem;
 }

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

.related-carousel__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 240px;
    gap: 0.9rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.related-carousel__track::-webkit-scrollbar {
    height: 10px;
}

.related-carousel__track::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 999px;
}

.related-mini-card {
    scroll-snap-align: start;
    border-radius: 1rem;
    overflow: hidden;
}

.related-mini-card .badge {
    top: 10px;
    left: 10px;
}

.related-mini-card__img {
    width: 100%;
    height: 156px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 0.85rem;
    margin: 0.85rem;
}

.related-mini-card__body {
    padding: 0 0.95rem 0.95rem;
}

.related-mini-card__title {
    font-weight: 800;
    line-height: 1.25;
    font-size: 0.98rem;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.35rem;
}

.related-mini-card__meta {
    opacity: 0.65;
    font-size: 0.82rem;
    margin-bottom: 0.55rem;
}

.related-mini-card__price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.related-mini-card__old {
    opacity: 0.55;
    font-size: 0.85rem;
    text-decoration: line-through;
}

.related-mini-card__new {
    font-weight: 900;
    color: #16a34a;
    font-size: 1.05rem;
}

.floating-checkout-cta {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.98) 0%, rgba(220, 38, 38, 0.98) 100%);
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-checkout-cta.is-visible {
    display: flex;
}

.floating-checkout-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.42);
}

.floating-checkout-cta__icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.floating-checkout-cta__title {
    font-weight: 900;
    line-height: 1;
}

.floating-checkout-cta__meta {
    display: block;
    opacity: 0.9;
    font-size: 0.82rem;
    line-height: 1.1;
}

 [data-cart-icon].has-items {
     color: #16a34a;
     text-shadow: 0 0 14px rgba(22, 163, 74, 0.35);
 }

 .header-support {
     position: relative;
     display: none;
 }

 .header-support.is-open {
     display: block;
 }

 .header-support__panel {
     position: absolute;
     right: 0;
     top: 12px;
     width: min(320px, 92vw);
     padding: 14px;
     display: grid;
     gap: 10px;
     z-index: 60;
 }

 .header-support__title {
     font-size: 1.05rem;
 }

 .catalog-drawer {
     position: fixed;
     inset: 0;
     z-index: 1900;
     display: none;
 }

 .catalog-drawer.is-open {
     display: block;
 }

 .catalog-drawer__overlay {
     position: absolute;
     inset: 0;
     background: rgba(2, 6, 23, 0.62);
 }

 .catalog-drawer__panel {
     position: absolute;
     top: 0;
     left: 0;
     height: 100%;
     width: min(360px, 92vw);
     border-radius: 0;
     padding: 14px;
     display: grid;
     grid-template-rows: auto 1fr;
     gap: 14px;
     overflow: auto;
 }

 .catalog-drawer__header {
     display: flex;
     align-items: center;
     justify-content: space-between;
 }

 .catalog-drawer__view {
    display: grid;
    gap: 10px;
}

 .catalog-drawer__item {
     display: flex;
     align-items: center;
     gap: 10px;
     padding: 14px 14px;
     border-radius: 1rem;
     border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
     background: color-mix(in srgb, var(--bg-card) 86%, transparent);
     backdrop-filter: blur(14px);
     -webkit-backdrop-filter: blur(14px);
     transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
 }

 .catalog-drawer__item:hover {
     transform: translateY(-1px);
     box-shadow: 0 18px 55px rgb(0 0 0 / 0.12);
     border-color: color-mix(in srgb, var(--accent-color) 35%, var(--border-color));
 }

 .catalog-drawer__item-icon {
     width: 34px;
     height: 34px;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     border-radius: 0.85rem;
     background: color-mix(in srgb, var(--bg-card) 70%, transparent);
     border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
 }

 .catalog-drawer__item-label {
     font-weight: 800;
 }

 .catalog-drawer__item-arrow {
     margin-left: auto;
     opacity: 0.6;
 }

 .catalog-drawer__subtitle {
     font-weight: 900;
     font-size: 1.05rem;
     opacity: 0.9;
 }

 .catalog-drawer__subgrid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 10px;
 }

.catalog-sort-btn {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
    background: color-mix(in srgb, var(--bg-card) 85%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-sort-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 55px rgb(0 0 0 / 0.10);
}

.sort-drawer {
    position: fixed;
    inset: 0;
    z-index: 1850;
    display: none;
}

.sort-drawer.is-open {
    display: block;
}

.sort-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.62);
}

.sort-drawer__panel {
    position: absolute;
    right: 12px;
    top: 82px;
    width: min(420px, calc(100vw - 24px));
    padding: 16px;
    display: grid;
    gap: 12px;
}

.sort-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sort-drawer__list {
    display: grid;
    gap: 10px;
}

.sort-drawer__item {
    padding: 12px 14px;
    border-radius: 1rem;
    border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
    background: color-mix(in srgb, var(--bg-card) 86%, transparent);
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sort-drawer__item:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 55px rgb(0 0 0 / 0.10);
    border-color: color-mix(in srgb, var(--accent-color) 35%, var(--border-color));
}

.sort-drawer__item.is-active {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 14px 40px rgb(249 115 22 / 0.22);
}

.catalog-filter-btn {
    width: 46px;
    height: 46px;
    border-radius: 1rem;
    border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
    background: color-mix(in srgb, var(--bg-card) 92%, transparent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 55px rgb(0 0 0 / 0.10);
}

.catalog-filter-badge {
    position: absolute;
    right: -8px;
    top: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9999px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgb(0 0 0 / 0.22);
}

.filter-drawer {
    position: fixed;
    inset: 0;
    z-index: 1850;
    display: none;
}

.filter-drawer.is-open {
    display: block;
}

.filter-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.62);
}

.filter-drawer__panel {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 82px;
    width: min(520px, calc(100vw - 24px));
    padding: 16px;
    display: grid;
    gap: 12px;
}

.filter-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item {
    border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
    border-radius: 1.1rem;
    background: color-mix(in srgb, var(--bg-card) 92%, transparent);
    padding: 14px;
    display: grid;
    gap: 14px;
}

.cart-item:hover {
    transform: none;
    box-shadow: none;
    border-color: color-mix(in srgb, var(--border-color) 70%, transparent);
}

.cart-item__media {
    display: block;
    border-radius: 0.95rem;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--border-color) 60%, transparent);
    background: color-mix(in srgb, var(--bg-secondary) 70%, transparent);
}

.cart-item__media img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    display: block;
}

.cart-item__title {
    font-weight: 900;
    font-size: 1.05rem;
    line-height: 1.25;
    word-break: break-word;
}

.cart-item__code {
    margin-top: 6px;
    font-size: 0.9rem;
    opacity: 0.7;
    word-break: break-word;
}

.cart-item__code span {
    opacity: 0.95;
}

.cart-item__meta {
    display: grid;
    gap: 10px;
}

.cart-item__price-label {
    font-size: 0.75rem;
    opacity: 0.6;
}

.cart-item__price-value {
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 1.15;
    color: #22c55e;
}

.cart-item__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cart-item__qty {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cart-item__qty-btn,
.cart-item__remove {
    width: 42px;
    height: 42px;
    border-radius: 0.9rem;
    border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
    background: color-mix(in srgb, var(--bg-card) 90%, transparent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-item__qty-btn:hover,
.cart-item__remove:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 55px rgb(0 0 0 / 0.10);
}

.cart-item__qty-value {
    width: 44px;
    text-align: center;
    font-weight: 900;
}

.cart-item__remove {
    color: #ef4444;
}

.cart-item__remove:hover {
    color: #dc2626;
}

@media (min-width: 1024px) {
    .cart-item {
        grid-template-columns: 132px 1fr 240px;
        align-items: center;
        padding: 16px;
        gap: 16px;
    }

    .cart-item__media img {
        height: 96px;
    }

    .cart-item__meta {
        justify-items: end;
        text-align: right;
    }

    .cart-item__controls {
        justify-content: flex-end;
        width: 100%;
    }
}

.catalog-pill {
    padding: 0.7rem 1rem;
    border-radius: 9999px;
    border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
    background: color-mix(in srgb, var(--bg-card) 78%, transparent);
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.catalog-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 55px rgb(0 0 0 / 0.10);
    border-color: color-mix(in srgb, var(--accent-color) 25%, var(--border-color));
}

.catalog-pill.is-active {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 14px 40px rgb(249 115 22 / 0.22);
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

     .support-dock {
         right: 12px;
         bottom: 18px;
     }

     .product-card .card-actions {
         grid-template-columns: 1fr;
         gap: 0.65rem;
     }

     .product-card .card-actions .btn-secondary,
     .product-card .card-actions .btn-gradient {
         min-height: 48px;
         border-radius: 1.05rem;
         font-size: 1rem;
         padding: 0.95rem 1rem;
     }
}

.fake-review {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.fake-review input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 0.95rem;
    border: 1px solid color-mix(in srgb, var(--border-color) 85%, transparent);
    background: color-mix(in srgb, var(--bg-card) 90%, transparent);
    color: var(--text-primary);
    outline: none;
}

.fake-review input:focus {
    border-color: color-mix(in srgb, var(--accent-color) 60%, var(--border-color));
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-color) 16%, transparent);
}

.fake-review button {
    min-height: 44px;
    border-radius: 0.95rem;
    font-weight: 800;
    border: 1px solid color-mix(in srgb, var(--border-color) 85%, transparent);
    background: color-mix(in srgb, var(--bg-card) 92%, transparent);
    color: var(--text-primary);
}

.fake-review button:hover {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, rgba(220, 38, 38, 0.10) 100%);
    border-color: color-mix(in srgb, var(--accent-color) 40%, var(--border-color));
}

.site-chat-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(2, 6, 23, 0.64);
}

.site-chat-modal.is-open {
    display: flex;
}

.site-chat-modal__panel {
    width: 100%;
    max-width: 420px;
    border-radius: 1.25rem;
    border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
    background: color-mix(in srgb, var(--bg-card) 92%, transparent);
    box-shadow: 0 30px 90px rgb(0 0 0 / 0.40);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
}

.site-chat-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
}

.site-chat-modal__body {
    padding: 16px;
    display: grid;
    gap: 10px;
}

.site-chat-modal__body input,
.site-chat-modal__body textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 0.95rem;
    border: 1px solid color-mix(in srgb, var(--border-color) 85%, transparent);
    background: color-mix(in srgb, var(--bg-card) 90%, transparent);
    color: var(--text-primary);
    outline: none;
}

.site-chat-modal__body textarea {
    min-height: 110px;
    resize: vertical;
}

.site-chat-modal__actions {
    padding: 16px;
    border-top: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
    display: grid;
    gap: 10px;
}

.site-chat-modal__actions button {
    min-height: 48px;
    border-radius: 1.05rem;
    font-weight: 900;
}

 .hero-title {
     overflow-wrap: anywhere;
     word-break: break-word;
 }

 @media (max-width: 420px) {
     .hero-title {
         font-size: 2.35rem !important;
         line-height: 1.05 !important;
     }
 }

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

[data-theme="dark"] .skeleton {
    background: linear-gradient(90deg, #2a2a2a 25%, #1a1a1a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 0.5rem 1rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

.tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Progress Bar */
.progress-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ea580c, #dc2626);
    transition: width 0.3s ease;
}

/* Star Rating */
.stars {
    display: inline-flex;
    gap: 0.25rem;
}

.star {
    color: #fbbf24;
    font-size: 1.25rem;
}

.star.empty {
    color: var(--border-color);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    transition: left 0.3s ease;
    z-index: 1000;
}

.mobile-menu.active {
    left: 0;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 999;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Beautiful Buttons */
.btn-gradient {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

 .product-card .btn-gradient {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     gap: 0.5rem;
     border-radius: 0.95rem;
     font-weight: 800;
     font-size: 0.95rem;
     line-height: 1.1;
     padding: 0.85rem 1rem;
 }

.btn-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(249, 115, 22, 0.4);
}

.btn-gradient:hover::before {
    opacity: 1;
}

.btn-gradient:active {
    transform: translateY(0);
}

/* Hero Section Styles */
.hero-gradient {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 25%, #dc2626 50%, #c026d3 75%, #7c3aed 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

[data-theme="dark"] .glass-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Glow Effect */
.glow {
    position: relative;
}

.glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: inherit;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.4s;
    z-index: -1;
}

.glow:hover::after {
    opacity: 0.7;
}

/* Neon Text */
.neon-text {
    color: #f97316;
    text-shadow: 
        0 0 10px rgba(249, 115, 22, 0.8),
        0 0 20px rgba(249, 115, 22, 0.6),
        0 0 30px rgba(249, 115, 22, 0.4),
        0 0 40px rgba(249, 115, 22, 0.2);
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Animated Border */
.animated-border {
    position: relative;
    border: 2px solid transparent;
    background: var(--bg-card);
    background-clip: padding-box;
}

.animated-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: inherit;
    z-index: -1;
    animation: rotateBorder 3s linear infinite;
}

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

/* Category hover effect */
.card.group:hover > div:first-of-type {
    transform: scale(1.25) rotate(12deg);
}

/* Utility Classes */
.line-clamp-2 {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--accent-color);
    color: white;
}

::-moz-selection {
    background: var(--accent-color);
    color: white;
}

/* Focus Styles */
*:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* Image Loading */
img {
    max-width: 100%;
    height: auto;
}

img[loading="lazy"] {
    opacity: 1;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .theme-toggle {
        left: 16px;
        right: auto;
        bottom: 16px;
        width: 56px;
        height: 56px;
    }
    
    .hero-gradient h1 {
        font-size: 2.5rem !important;
    }
    
    .gradient-text {
        font-size: 2rem !important;
    }
}

/* Print Styles */
@media print {
    .no-print, header, footer, button, .theme-toggle {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
