 /* FILE: assets/css/main.css */

 /*
 * EcomWeb - Premium Main CSS
 * Material-inspired, responsive, mobile-first design with dynamic aesthetics.
 */

 /* ============================================================
   CSS VARIABLES - Premium Color Palette
   ============================================================ */
 :root {
     /* Primary Colors — Ghorerbazar Orange */
     --primary: #F05A22;
     --primary-hover: #C44A1A;
     --primary-light: #FEE9E0;

     /* Secondary — Dark Forest Green */
     --secondary: #0F3F2E;
     --secondary-hover: #0a2d20;
     --accent: #10B981;

     /* Semantic Colors */
     --success: #10B981;
     --danger: #EF4444;
     --warning: #F59E0B;
     --info: #3B82F6;

     /* Backgrounds */
     --bg-main: #F1F1F1;
     --bg-white: #FFFFFF;
     --bg-glass: rgba(255, 255, 255, 0.95);

     /* Typography Colors */
     --text-main: #1A1A1A;
     --text-muted: #6B7280;
     --text-light: #9CA3AF;

     /* Borders */
     --border-color: #E5E7EB;
     --border-light: #F3F4F6;

     /* Typography */
     --font-family: 'Hind Siliguri', 'Inter', system-ui, -apple-system, sans-serif;

     /* Shadows */
     --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
     --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
     --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.10);
     --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.12);
     --shadow-glass: 0 2px 8px rgba(0, 0, 0, 0.06);

     /* Radii */
     --radius-sm: 4px;
     --radius-md: 6px;
     --radius-lg: 8px;
     --radius-xl: 12px;
     --radius-pill: 9999px;

     /* Transitions */
     --transition-fast: all 0.15s ease;
     --transition: all 0.2s ease;
     --transition-slow: all 0.3s ease;
 }

 /* ============================================================
   RESET & TYPOGRAPHY
   ============================================================ */
 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 html {
     scroll-behavior: smooth;
     max-width: 100vw;
     overflow-x: hidden;
 }

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

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

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

 ul {
     list-style: none;
 }

 img {
     max-width: 100%;
     height: auto;
     display: block;
 }

 h1,
 h2,
 h3,
 h4,
 h5,
 h6 {
     font-weight: 700;
     line-height: 1.2;
     color: var(--secondary);
     margin-bottom: 0.75rem;
     letter-spacing: -0.025em;
 }

 /* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
 .container {
     width: 100%;
     padding-right: 1rem;
     padding-left: 1rem;
     margin-right: auto;
     margin-left: auto;
 }

 @media (min-width: 640px) {
     .container {
         max-width: 640px;
         padding-right: 1.5rem;
         padding-left: 1.5rem;
     }
 }

 @media (min-width: 768px) {
     .container {
         max-width: 768px;
     }
 }

 @media (min-width: 1024px) {
     .container {
         max-width: 1024px;
         padding-right: 2rem;
         padding-left: 2rem;
     }
 }

 @media (min-width: 1280px) {
     .container {
         max-width: 1280px;
     }
 }

 @media (min-width: 1480px) {
     .container {
         max-width: 1480px;
         padding-right: 0;
         padding-left: 0;
     }
 }

 .grid {
     display: grid;
 }

 .flex {
     display: flex;
 }

 .flex-col {
     flex-direction: column;
 }

 .items-center {
     align-items: center;
 }

 .justify-between {
     justify-content: space-between;
 }

 .justify-center {
     justify-content: center;
 }

 .gap-1 {
     gap: 0.25rem;
 }

 .gap-2 {
     gap: 0.5rem;
 }

 .gap-3 {
     gap: 0.75rem;
 }

 .gap-4 {
     gap: 1rem;
 }

 .gap-6 {
     gap: 1.5rem;
 }

 .gap-8 {
     gap: 2rem;
 }

 .mt-2 {
     margin-top: 0.5rem;
 }

 .mt-4 {
     margin-top: 1rem;
 }

 .mt-6 {
     margin-top: 1.5rem;
 }

 .mt-8 {
     margin-top: 2rem;
 }

 .mb-2 {
     margin-bottom: 0.5rem;
 }

 .mb-4 {
     margin-bottom: 1rem;
 }

 .mb-6 {
     margin-bottom: 1.5rem;
 }

 .mb-8 {
     margin-bottom: 2rem;
 }

 .p-2 {
     padding: 0.5rem;
 }

 .p-4 {
     padding: 1rem;
 }

 .p-6 {
     padding: 1.5rem;
 }

 .py-2 {
     padding-top: 0.5rem;
     padding-bottom: 0.5rem;
 }

 .py-4 {
     padding-top: 1rem;
     padding-bottom: 1rem;
 }

 .py-8 {
     padding-top: 2rem;
     padding-bottom: 2rem;
 }

 .px-4 {
     padding-left: 1rem;
     padding-right: 1rem;
 }

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

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

 .text-sm {
     font-size: 0.875rem;
 }

 .text-lg {
     font-size: 1.125rem;
 }

 .text-xl {
     font-size: 1.25rem;
 }

 .font-bold {
     font-weight: 700;
 }

 .text-muted {
     color: var(--text-muted);
 }

 .text-danger {
     color: var(--danger);
 }

 .text-success {
     color: var(--success);
 }

 .w-full {
     width: 100%;
 }

 .h-full {
     height: 100%;
 }

 .hidden {
     display: none !important;
 }

 .cursor-move {
     cursor: move;
 }

 /* ============================================================
   COMPONENTS
   ============================================================ */

 /* Buttons */
 .btn {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     padding: 0.625rem 1.25rem;
     font-size: 0.875rem;
     font-weight: 600;
     border-radius: var(--radius-md);
     border: 1px solid transparent;
     cursor: pointer;
     transition: var(--transition-fast);
     text-align: center;
     font-family: inherit;
     gap: 0.5rem;
     position: relative;
     overflow: hidden;
     white-space: nowrap;
 }

 .btn::after {
     content: '';
     position: absolute;
     top: 50%;
     left: 50%;
     width: 100%;
     height: 100%;
     background: rgba(255, 255, 255, 0.2);
     transform: translate(-50%, -50%) scale(0);
     border-radius: 50%;
     transition: transform 0.4s ease-out;
 }

 .btn:active::after {
     transform: translate(-50%, -50%) scale(2);
     transition: 0s;
 }

 .btn:disabled {
     opacity: 0.6;
     cursor: not-allowed;
 }

 .btn-primary {
     background-color: var(--primary);
     color: #fff;
     box-shadow: var(--shadow-sm);
 }

 .btn-primary:hover:not(:disabled) {
     background-color: var(--primary-hover);
     box-shadow: var(--shadow-md);
 }

 .btn-secondary {
     background-color: var(--secondary);
     color: #fff;
     box-shadow: var(--shadow-sm);
 }

 .btn-secondary:hover:not(:disabled) {
     background-color: #1e293b;
 }

 .btn-outline {
     background-color: transparent;
     border-color: var(--border-color);
     color: var(--secondary);
     background: var(--bg-white);
     box-shadow: var(--shadow-sm);
 }

 .btn-outline:hover:not(:disabled) {
     background-color: var(--bg-main);
     border-color: var(--border-color);
     color: var(--primary);
 }

 .btn-danger {
     background-color: var(--danger);
     color: #fff;
     box-shadow: var(--shadow-sm);
 }

 .btn-sm {
     padding: 0.375rem 0.75rem;
     font-size: 0.75rem;
 }

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

 /* Forms */
 .form-group {
     margin-bottom: 1.25rem;
 }

 .form-label {
     display: block;
     margin-bottom: 0.5rem;
     font-size: 0.875rem;
     font-weight: 500;
     color: var(--text-main);
 }

 .form-control {
     display: block;
     width: 100%;
     padding: 0.5rem 0.75rem;
     font-size: 0.875rem;
     line-height: 1.25rem;
     color: var(--text-main);
     background-color: var(--bg-white);
     background-clip: padding-box;
     border: 1px solid var(--border-color);
     border-radius: var(--radius-md);
     transition: var(--transition-fast);
     font-family: inherit;
     box-shadow: var(--shadow-sm);
 }

 .form-control:focus {
     border-color: var(--primary);
     outline: 0;
     box-shadow: 0 0 0 2px var(--primary-light);
 }

 textarea.form-control {
     min-height: 80px;
     resize: vertical;
 }

 /* Cards */
 .card {
     background-color: var(--bg-white);
     border-radius: var(--radius-lg);
     box-shadow: var(--shadow-sm);
     border: 1px solid var(--border-color);
     overflow: hidden;
     transition: var(--transition-fast);
 }

 .card:hover {
     box-shadow: var(--shadow-md);
 }

 .card-body {
     padding: 1.5rem;
 }

 .card-header {
     padding: 1.25rem 1.5rem;
     border-bottom: 1px solid var(--border-light);
     background-color: var(--bg-white);
     font-weight: 700;
     color: var(--secondary);
 }

 .card-footer {
     padding: 1.25rem 1.5rem;
     border-top: 1px solid var(--border-light);
     background-color: var(--bg-main);
 }

 /* Alerts / Toast Notifications */
 .alert {
     padding: 1rem 1.25rem;
     margin-bottom: 1.25rem;
     border: 1px solid transparent;
     border-radius: var(--radius-md);
     font-weight: 500;
 }

 #flash-alert {
     display: flex;
     justify-content: space-between;
     align-items: center;
     position: fixed;
     bottom: 20px;
     right: 20px;
     z-index: 1060;
     min-width: 300px;
     box-shadow: var(--shadow-xl);
     animation: slideInUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, fadeOut 0.5s ease-out 4.5s forwards;
     opacity: 0;
 }

 @keyframes slideInUp {
     from {
         transform: translateY(100%);
         opacity: 0;
     }

     to {
         transform: translateY(0);
         opacity: 1;
     }
 }

 @keyframes fadeOut {
     from {
         opacity: 1;
     }

     to {
         opacity: 0;
         visibility: hidden;
     }
 }

 .alert-success {
     color: #065f46;
     background-color: #d1fae5;
     border-left: 4px solid #10B981;
 }

 .alert-danger,
 .alert-error {
     color: #991b1b;
     background-color: #fee2e2;
     border-left: 4px solid #EF4444;
 }

 /* Badges */
 .badge {
     display: inline-flex;
     align-items: center;
     padding: 0.25rem 0.625rem;
     font-size: 0.75rem;
     font-weight: 600;
     line-height: 1;
     text-align: center;
     white-space: nowrap;
     border-radius: var(--radius-pill);
 }

 .badge-primary {
     background-color: var(--primary-light);
     color: var(--primary);
 }

 .badge-success {
     background-color: #d1fae5;
     color: #065f46;
 }

 .badge-danger {
     background-color: #fee2e2;
     color: #991b1b;
 }

 .badge-warning {
     background-color: #fef3c7;
     color: #b45309;
 }

 .badge-secondary {
     background-color: var(--border-light);
     color: var(--secondary);
 }

 /* ============================================================
   HEADER — Ghorerbazar Style (2-row)
   ============================================================ */

 /* ── Row 1: Top Bar (White) ── */
 .site-header {
     position: sticky;
     top: 0;
     z-index: 1000;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
 }

 .header-top {
     background-color: #fff;
     padding: 1rem 0;
 }

 .header-top .container {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 2rem;
 }

 /* Logo in top bar */
 .site-logo {
     display: flex;
     align-items: center;
     flex-shrink: 0;
     z-index: 1;
 }

 .site-logo img {
     height: 42px;
     width: auto;
     object-fit: contain;
 }

 .logo-text {
     font-size: 1.5rem;
     font-weight: 800;
     color: var(--primary);
     letter-spacing: -0.03em;
 }

 /* Search bar — center of top bar */
 .search-bar {
     flex: 1;
     max-width: 600px;
     display: flex;
     align-items: stretch;
     background: #f8f9fa;
     border-radius: var(--radius-pill);
     border: 1px solid #e5e7eb;
     overflow: hidden;
     height: 44px;
 }

 .search-bar:focus-within {
     border-color: var(--primary);
     background: #fff;
 }

 .search-input-wrapper {
     flex: 1;
     display: flex;
     align-items: center;
     padding: 0 1rem;
     gap: 0.5rem;
 }

 .search-icon {
     font-size: 1.1rem;
     color: #9CA3AF;
     flex-shrink: 0;
 }

 .search-input {
     flex: 1;
     border: none;
     outline: none;
     font-size: 0.875rem;
     color: var(--text-main);
     background: transparent;
     font-family: inherit;
 }

 .search-input::placeholder {
     color: #9CA3AF;
 }

 .search-btn {
     background: var(--primary);
     color: #fff;
     border: none;
     padding: 0 1.5rem;
     font-size: 0.875rem;
     font-weight: 600;
     cursor: pointer;
     transition: background 0.15s ease;
     display: flex;
     align-items: center;
     gap: 0.375rem;
     white-space: nowrap;
     font-family: inherit;
 }

 .search-btn:hover {
     background: var(--primary-hover);
 }

 /* Right action icons in top bar */
 .header-actions {
     display: flex;
     align-items: center;
     gap: 0.25rem;
     flex-shrink: 0;
 }

 .header-action-icon {
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 0.1rem;
     padding: 0.375rem 0.75rem;
     color: #4B5563;
     border-radius: var(--radius-md);
     cursor: pointer;
     transition: color 0.15s ease, background 0.15s ease;
     text-decoration: none;
     font-size: 0.7rem;
     font-weight: 500;
     position: relative;
 }

 .header-action-icon i {
     font-size: 1.75rem;
     color: #1f2937;
     margin-bottom: 2px;
 }

 .header-action-icon:hover {
     color: var(--primary);
     background: transparent;
 }

 .header-action-icon:hover i {
     color: var(--primary);
 }

 .action-label {
     font-size: 0.8rem;
     line-height: 1;
     font-weight: 500;
 }

 /* Cart badge */
 .cart-icon-wrapper {
     position: relative;
 }

 .cart-badge {
     position: absolute;
     top: -2px;
     right: 4px;
     background: var(--primary);
     color: #fff;
     font-size: 0.7rem;
     font-weight: 700;
     min-width: 20px;
     height: 20px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     border: 2px solid #fff;
     padding: 0 4px;
 }

 /* ── Row 2: Category Nav (Dark Green) ── */
 .header-main {
     background: #041F1E;
     border-bottom: none;
     padding: 0;
 }

 .nav-wrapper {
     display: flex;
     align-items: center;
     justify-content: flex-start;
     gap: 0;
     min-height: 44px;
     overflow: hidden;
 }

 /* Category strip inside nav row */
 .category-strip {
     background: transparent;
     padding: 0;
     border: none;
 }

 .category-scroll {
     display: flex;
     align-items: center;
     gap: 0;
     overflow-x: auto;
     scrollbar-width: none;
     -ms-overflow-style: none;
 }

 .category-scroll::-webkit-scrollbar {
     display: none;
 }

 .category-link {
     display: flex;
     align-items: center;
     gap: 0.25rem;
     padding: 0.75rem 1rem;
     font-size: 0.8125rem;
     font-weight: 600;
     color: #fff;
     white-space: nowrap;
     text-decoration: none;
     border-bottom: 2px solid transparent;
     transition: color 0.15s ease;
     position: relative;
 }

 .category-link:hover,
 .category-link.active {
     color: var(--primary);
 }

 /* Category dropdown */
 .category-dropdown-wrapper {
     position: relative;
 }

 .category-dropdown-menu {
     position: absolute;
     top: 100%;
     left: 0;
     background: #fff;
     border: 1px solid var(--border-color);
     border-radius: var(--radius-md);
     box-shadow: var(--shadow-lg);
     min-width: 200px;
     z-index: 200;
     opacity: 0;
     visibility: hidden;
     transform: translateY(8px);
     transition: all 0.2s ease;
     padding: 0.5rem 0;
 }

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

 .category-dropdown-link {
     display: block;
     padding: 0.5rem 1.25rem;
     font-size: 0.8125rem;
     color: var(--text-main);
     transition: var(--transition-fast);
 }

 .category-dropdown-link:hover {
     background: #f3f4f6;
     color: #111;
 }

 /* Hamburger (hidden on desktop) */
 .hamburger {
     display: none;
 }

 .hamburger-line {
     display: none;
 }

 /* ── Mobile Navigation Drawer (legacy, now replaced by bottom nav) ── */
 .mobile-backdrop {
     position: fixed;
     top: 0;
     left: 0;
     width: 100vw;
     height: 100vh;
     background: rgba(0, 0, 0, 0.5);
     z-index: 998;
     opacity: 0;
     visibility: hidden;
     transition: var(--transition);
 }

 .mobile-backdrop.open {
     opacity: 1;
     visibility: visible;
 }

 .mobile-nav {
     position: fixed;
     top: 0;
     left: 0;
     width: 85vw;
     max-width: 320px;
     height: 100vh;
     background: var(--bg-white);
     z-index: 999;
     transform: translateX(-100%);
     transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
     box-shadow: var(--shadow-xl);
     overflow-y: auto;
     display: flex;
     flex-direction: column;
 }

 .mobile-nav.open {
     transform: translateX(0);
 }

 .mobile-nav-header {
     padding: 1.25rem 1rem;
     display: flex;
     justify-content: space-between;
     align-items: center;
     border-bottom: 1px solid var(--border-light);
     background: #0F3F2E;
 }

 .mobile-close-btn {
     background: rgba(255, 255, 255, 0.15);
     border: none;
     width: 34px;
     height: 34px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     color: #fff;
     font-size: 1.1rem;
     transition: var(--transition-fast);
 }

 .mobile-close-btn:hover {
     background: rgba(255, 255, 255, 0.25);
 }

 .mobile-search {
     padding: 0.875rem 1rem;
     border-bottom: 1px solid var(--border-light);
 }

 .mobile-search .search-input-wrapper {
     background: var(--bg-main);
     border-radius: var(--radius-md);
     border: 1px solid var(--border-color);
 }

 .mobile-nav-links {
     padding: 0.75rem 0.75rem;
     display: flex;
     flex-direction: column;
     gap: 0.25rem;
     border-bottom: 1px solid var(--border-light);
 }

 .mobile-link {
     display: flex;
     align-items: center;
     gap: 0.875rem;
     padding: 0.75rem 0.875rem;
     color: var(--text-main);
     font-weight: 600;
     border-radius: var(--radius-md);
     transition: var(--transition-fast);
     font-size: 0.9rem;
 }

 .mobile-link i {
     font-size: 1.2rem;
     color: var(--text-muted);
 }

 .mobile-link:hover {
     background: var(--primary-light);
     color: var(--primary);
 }

 .mobile-link:hover i {
     color: var(--primary);
 }

 .mobile-cart-count {
     background: var(--primary);
     color: #fff;
     font-size: 0.7rem;
     padding: 0.1rem 0.5rem;
     border-radius: var(--radius-pill);
     margin-left: auto;
 }

 .mobile-nav-categories {
     padding: 1rem 0.75rem;
 }

 .mobile-section-title {
     font-size: 0.75rem;
     color: var(--text-muted);
     text-transform: uppercase;
     letter-spacing: 0.08em;
     margin-bottom: 0.5rem;
     font-weight: 700;
 }

 .mobile-cat-link {
     display: block;
     padding: 0.5rem 0.875rem;
     color: var(--text-main);
     font-weight: 500;
     border-radius: var(--radius-sm);
     font-size: 0.875rem;
 }

 .mobile-cat-link:hover {
     background: var(--bg-main);
     color: var(--primary);
 }

 /* ── Bottom Mobile Navigation Bar ── */
 .mob-nav {
     position: fixed;
     bottom: 0;
     left: 0;
     width: 100%;
     height: 70px;
     background: var(--mob-nav-bg-color, #F05A22);
     display: none;
     align-items: stretch;
     z-index: 990;
     box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
 }

 .mob-nav-item {
     flex: 1;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     gap: 3px;
     color: rgba(255, 255, 255, 0.65);
     font-size: 0.6rem;
     font-weight: 600;
     text-decoration: none;
     cursor: pointer;
     border: none;
     background: none;
     transition: color 0.15s ease;
     position: relative;
     padding: 0;
     font-family: inherit;
 }

 .mob-nav-item i {
     font-size: 1.25rem;
 }

 .mob-nav-item.active,
 .mob-nav-item:hover {
     color: #fff;
 }

 .mob-nav-item.active::before {
     content: '';
     position: absolute;
     top: 0;
     left: 20%;
     right: 20%;
     height: 3px;
     background: #fff;
     border-radius: 0 0 4px 4px;
 }

 .mob-nav-cart-badge {
     position: absolute;
     top: 6px;
     right: calc(50% - 20px);
     background: #fff;
     color: var(--primary);
     font-size: 0.55rem;
     font-weight: 800;
     min-width: 14px;
     height: 14px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     border: 2px solid #F05A22;
 }

 /* ── Floating Buttons ── */
 .float-whatsapp {
     position: fixed;
     bottom: 80px;
     left: 16px;
     width: 48px;
     height: 48px;
     background: #25D366;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
     z-index: 980;
     transition: transform 0.2s ease, box-shadow 0.2s ease;
     text-decoration: none;
     color: #fff;
     font-size: 1.5rem;
 }

 .float-whatsapp:hover {
     transform: scale(1.1);
     box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
     color: #fff;
 }

 .float-scroll-top {
     position: fixed;
     bottom: 80px;
     right: 16px;
     width: 42px;
     height: 42px;
     background: var(--floating-btn-color, var(--primary));
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     box-shadow: 0 4px 12px rgba(240, 90, 34, 0.4);
     z-index: 980;
     cursor: pointer;
     border: none;
     color: #fff;
     font-size: 1.1rem;
     opacity: 0;
     visibility: hidden;
     transform: translateY(10px);
     transition: all 0.25s ease;
 }

 .float-scroll-top.visible {
     opacity: 1;
     visibility: visible;
     transform: translateY(0);
 }

 .float-scroll-top:hover {
     background: var(--floating-btn-hover, var(--primary-hover));
     transform: translateY(-2px);
 }

 @media (min-width: 768px) {
     .float-whatsapp {
         bottom: 24px;
     }

     .float-scroll-top {
         bottom: 24px;
     }
 }


 /* ============================================================
   MOBILE NAVIGATION (HAMBURGER)
   ============================================================ */
 .hamburger {
     display: none;
     /* Hidden on desktop */
     flex-direction: column;
     justify-content: space-around;
     width: 2rem;
     height: 2rem;
     background: transparent;
     border: none;
     cursor: pointer;
     padding: 0.25rem;
     z-index: 1001;
 }

 .hamburger:focus {
     outline: none;
 }

 .hamburger-line {
     width: 1.5rem;
     height: 0.15rem;
     background: var(--secondary);
     border-radius: 10px;
     transition: all 0.3s linear;
     position: relative;
     transform-origin: 1px;
 }

 .mobile-backdrop {
     position: fixed;
     top: 0;
     left: 0;
     width: 100vw;
     height: 100vh;
     background: rgba(15, 23, 42, 0.6);
     backdrop-filter: blur(4px);
     z-index: 998;
     opacity: 0;
     visibility: hidden;
     transition: var(--transition);
 }

 .mobile-backdrop.open {
     opacity: 1;
     visibility: visible;
 }

 .mobile-nav {
     position: fixed;
     top: 0;
     left: 0;
     width: 85vw;
     max-width: 320px;
     height: 100vh;
     background: var(--bg-white);
     z-index: 999;
     transform: translateX(-100%);
     transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     box-shadow: var(--shadow-xl);
     overflow-y: auto;
     display: flex;
     flex-direction: column;
 }

 .mobile-nav.open {
     transform: translateX(0);
 }

 .mobile-nav-header {
     padding: 1.5rem;
     display: flex;
     justify-content: space-between;
     align-items: center;
     border-bottom: 1px solid var(--border-light);
 }

 .mobile-close-btn {
     background: var(--bg-main);
     border: none;
     width: 36px;
     height: 36px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     color: var(--secondary);
     font-size: 1.25rem;
     transition: var(--transition-fast);
 }

 .mobile-close-btn:hover {
     background: var(--border-light);
     color: var(--danger);
 }

 .mobile-search {
     padding: 1rem 1.5rem;
     border-bottom: 1px solid var(--border-light);
 }

 .mobile-search .search-input-wrapper {
     background: var(--bg-main);
     border-radius: var(--radius-md);
     border: 1px solid var(--border-color);
 }

 .mobile-nav-links {
     padding: 1rem 1.5rem;
     display: flex;
     flex-direction: column;
     gap: 0.5rem;
     border-bottom: 1px solid var(--border-light);
 }

 .mobile-link {
     display: flex;
     align-items: center;
     gap: 1rem;
     padding: 0.75rem 1rem;
     color: var(--secondary);
     font-weight: 600;
     border-radius: var(--radius-md);
     transition: var(--transition-fast);
 }

 .mobile-link i {
     font-size: 1.25rem;
     color: var(--text-muted);
 }

 .mobile-link:hover {
     background: var(--primary-light);
     color: var(--primary);
 }

 .mobile-link:hover i {
     color: var(--primary);
 }

 .mobile-cart-count {
     background: var(--accent);
     color: white;
     font-size: 0.75rem;
     padding: 0.125rem 0.5rem;
     border-radius: var(--radius-pill);
     margin-left: auto;
 }

 .mobile-nav-categories {
     padding: 1.5rem;
     display: flex;
     flex-direction: column;
     gap: 0.5rem;
 }

 .mobile-section-title {
     font-size: 0.875rem;
     color: var(--text-muted);
     text-transform: uppercase;
     letter-spacing: 0.05em;
     margin-bottom: 0.5rem;
 }

 .mobile-cat-link {
     padding: 0.5rem 1rem;
     color: var(--text-main);
     font-weight: 500;
     border-radius: var(--radius-sm);
 }

 .mobile-cat-link:hover {
     background: var(--bg-main);
     color: var(--primary);
 }


 /* ============================================================
   PRODUCT CARDS — Ghorerbazar Style
   ============================================================ */
 .product-grid {
     display: grid;
     grid-template-columns: repeat(2, 1fr);
     gap: 10px;
 }

 @media (min-width: 576px) {
     .product-grid {
         grid-template-columns: repeat(3, 1fr);
         gap: 12px;
     }
 }

 @media (min-width: 768px) {
     .product-grid {
         grid-template-columns: repeat(4, 1fr);
         gap: 14px;
     }
 }

 @media (min-width: 1200px) {
     .product-grid {
         grid-template-columns: repeat(5, 1fr);
         gap: 16px;
     }
 }

 .product-card {
     background: #fff;
     border: 1px solid var(--border-color);
     border-radius: var(--radius-lg);
     overflow: hidden;
     display: flex;
     flex-direction: column;
     height: 100%;
     position: relative;
     transition: box-shadow 0.2s ease, transform 0.2s ease;
 }

 .product-card:hover {
     box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
     transform: translateY(-2px);
 }

 /* Image wrapper */
 .product-card-img-wrapper {
     position: relative;
     padding-top: 100%;
     /* 1:1 ratio */
     overflow: hidden;
     background: #F5F5F5;
     flex-shrink: 0;
 }

 .product-card-img {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: transform 0.5s ease;
 }

 .product-card:hover .product-card-img {
     transform: scale(1.06);
 }

 /* Quick View button (top-right on hover) */
 .product-quick-view-icon {
     position: absolute;
     top: 8px;
     right: 8px;
     width: 34px;
     height: 34px;
     border-radius: 50%;
     background: rgba(255, 255, 255, 0.95);
     color: #333;
     border: 1px solid #E5E7EB;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1rem;
     cursor: pointer;
     opacity: 0;
     transform: scale(0.8);
     transition: all 0.2s ease;
     z-index: 10;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
 }

 .product-card:hover .product-quick-view-icon {
     opacity: 1;
     transform: scale(1);
 }

 .product-quick-view-icon:hover {
     background: var(--primary);
     color: #fff;
     border-color: var(--primary);
 }

 /* Save badge (green, top-left) */
 .product-discount-badge {
     position: absolute;
     top: 8px;
     left: 8px;
     background: #16a34a;
     color: #fff;
     padding: 3px 8px;
     border-radius: 4px;
     font-size: 0.68rem;
     font-weight: 700;
     z-index: 5;
     line-height: 1.4;
 }

 /* Hover CTA (hidden — replaced by always-visible button below card) */
 .product-hover-cta {
     display: none;
 }

 .product-cta-btn {
     display: none;
 }

 .product-cta-soldout {
     display: none;
 }

 /* Card body */
 .product-card-body {
     padding: 10px 10px 0;
     flex: 1;
     display: flex;
     flex-direction: column;
 }

 .product-category {
     font-size: 0.65rem;
     color: var(--text-muted);
     text-transform: uppercase;
     letter-spacing: 0.07em;
     font-weight: 600;
     margin-bottom: 4px;
 }

 .product-title {
     font-size: 0.8125rem;
     font-weight: 500;
     line-height: 1.4;
     color: #1A1A1A;
     margin-bottom: 6px;
     display: -webkit-box;
     -webkit-line-clamp: 2;
     -webkit-box-orient: vertical;
     overflow: hidden;
 }

 .product-title a {
     color: inherit;
 }

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

 /* Price row */
 .product-price-wrapper {
     display: flex;
     align-items: center;
     gap: 6px;
     flex-wrap: wrap;
     margin-bottom: 8px;
 }

 .product-price {
     font-size: 0.9375rem;
     font-weight: 700;
     color: var(--primary);
     line-height: 1;
 }

 .product-price-old {
     font-size: 0.75rem;
     color: #9CA3AF;
     text-decoration: line-through;
     font-weight: 400;
     line-height: 1;
 }

 /* Button group wrapper for Add to Cart + Buy Now */
 .product-card-btn-group {
     display: flex;
     align-items: stretch;
     width: 100%;
     margin-top: auto;
     border-top: 1px solid rgba(0, 0, 0, 0.06);
 }

 /* Always-visible Add to Cart button at card bottom */
 .product-card-add-btn {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 6px;
     flex: 1 1 50%;
     min-width: 0;
     min-height: 38px;
     padding: 8px 4px;
     background: #fff;
     color: var(--primary);
     border: none;
     border-right: 1px solid rgba(0, 0, 0, 0.06);
     font-size: 0.76rem;
     font-weight: 700;
     line-height: 1.2;
     cursor: pointer;
     transition: background 0.15s ease, color 0.15s ease;
     font-family: inherit;
     text-decoration: none;
     text-align: center;
     box-sizing: border-box;
 }

 .product-card-add-btn:hover {
     background: var(--primary);
     color: #fff;
 }

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

 .product-card-add-btn.sold-out {
     background: #6B7280;
     color: #fff;
     cursor: not-allowed;
     flex: 1 1 100%;
     border-right: none;
 }

 .product-card-add-btn.sold-out:hover {
     background: #6B7280;
 }

 /* Buy Now button */
 .product-card-buy-btn {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 6px;
     flex: 1 1 50%;
     min-width: 0;
     min-height: 38px;
     padding: 8px 4px;
     background: var(--primary);
     color: #fff;
     border: none;
     font-size: 0.76rem;
     font-weight: 700;
     line-height: 1.2;
     cursor: pointer;
     transition: background 0.15s ease;
     font-family: inherit;
     text-decoration: none;
     text-align: center;
     box-sizing: border-box;
 }

 .product-card-buy-btn:hover {
     background: var(--primary-hover);
 }

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

 @media (max-width: 767px) {
     .product-card-btn-group {
         align-items: stretch;
     }

     .product-card-add-btn,
     .product-card-buy-btn {
         font-size: 0.70rem !important;
         padding: 6px 3px !important;
         gap: 3px !important;
         line-height: 1.15 !important;
         min-height: 38px;
     }

     .product-card-add-btn i,
     .product-card-buy-btn i {
         font-size: 0.85rem !important;
         flex-shrink: 0;
     }
 }

 @media (max-width: 380px) {

     .product-card-add-btn,
     .product-card-buy-btn {
         font-size: 0.65rem !important;
         padding: 5px 2px !important;
         gap: 2px !important;
         line-height: 1.1 !important;
         min-height: 36px;
     }

     .product-card-add-btn i,
     .product-card-buy-btn i {
         font-size: 0.78rem !important;
     }
 }

 /* Legacy */
 .btn-icon-circle {
     display: none;
 }

 .out-of-stock-label {
     display: none;
 }


 /* ============================================================
   RESPONSIVE QUERIES
   ============================================================ */

 @media (max-width: 1024px) {
     .header-actions .action-label {
         display: none;
         /* Hide text labels on tablet */
     }

     .header-action-icon {
         padding: 0.5rem;
     }
 }

 @media (max-width: 767px) {

     /* Mobile Header Adjustments */
     .header-top {
         display: none;
         /* Hide top bar on mobile */
     }

     .nav-wrapper {
         gap: 1rem;
     }

     .hamburger {
         display: flex;
     }

     /* Hide desktop nav elements */
     .search-bar,
     .category-strip,
     .header-actions .header-action-icon:not(.cart-icon-wrapper) {
         display: none;
     }

     /* Keep cart visible on mobile header */
     .header-actions {
         gap: 0;
     }

     /* Product Grid */
     .product-grid {
         gap: 1rem;
     }

     .product-card-body {
         padding: 1rem;
     }

     .product-title {
         font-size: 0.9375rem;
         height: 2.8rem;
     }
 }

 /* ============================================================
   PREMIUM ANIMATIONS & EFFECTS
   ============================================================ */
 @keyframes fadeInUp {
     from {
         opacity: 0;
         transform: translateY(15px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 @keyframes fadeInScale {
     from {
         opacity: 0;
         transform: scale(0.98);
     }

     to {
         opacity: 1;
         transform: scale(1);
     }
 }

 @keyframes fadeIn {
     from {
         opacity: 0;
     }

     to {
         opacity: 1;
     }
 }

 @keyframes slideInRight {
     from {
         opacity: 0;
         transform: translateX(20px);
     }

     to {
         opacity: 1;
         transform: translateX(0);
     }
 }

 /* Base Page Animation */
 main,
 .mobile-layout>div {
     animation: fadeIn 0.5s ease-out forwards;
 }

 .hero-banner,
 #m-slider {
     animation: fadeInScale 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
 }

 .product-card {
     /* Initially hide for scroll animation */
     opacity: 0;
     transform: translateY(15px);
 }

 .animate-fade-up {
     animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
     animation-fill-mode: both;
 }

 /* Staggered animation for grid items */
 .product-grid>*:nth-child(1) {
     animation-delay: 0.04s;
 }

 .product-grid>*:nth-child(2) {
     animation-delay: 0.08s;
 }

 .product-grid>*:nth-child(3) {
     animation-delay: 0.12s;
 }

 .product-grid>*:nth-child(4) {
     animation-delay: 0.16s;
 }

 .product-grid>*:nth-child(5) {
     animation-delay: 0.20s;
 }

 .product-grid>*:nth-child(6) {
     animation-delay: 0.24s;
 }

 .product-grid>*:nth-child(7) {
     animation-delay: 0.28s;
 }

 .product-grid>*:nth-child(8) {
     animation-delay: 0.32s;
 }

 /* Mobile category pills animation */
 .hide-scroll a {
     animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
     animation-fill-mode: both;
 }

 .hide-scroll a:nth-child(1) {
     animation-delay: 0.05s;
 }

 .hide-scroll a:nth-child(2) {
     animation-delay: 0.10s;
 }

 .hide-scroll a:nth-child(3) {
     animation-delay: 0.15s;
 }

 .hide-scroll a:nth-child(4) {
     animation-delay: 0.20s;
 }

 .hide-scroll a:nth-child(5) {
     animation-delay: 0.25s;
 }

 .hide-scroll a:nth-child(6) {
     animation-delay: 0.30s;
 }

 .hide-scroll a:nth-child(7) {
     animation-delay: 0.35s;
 }

 .hide-scroll a:nth-child(8) {
     animation-delay: 0.40s;
 }

 /* Enhanced Hover Effects */
 .btn {
     position: relative;
     overflow: hidden;
     transform: translateZ(0);
     transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
 }

 .btn:active {
     transform: scale(0.97);
 }

 .btn::after {
     content: '';
     position: absolute;
     top: 50%;
     left: 50%;
     width: 300%;
     height: 300%;
     background: rgba(255, 255, 255, 0.15);
     transform: translate(-50%, -50%) scale(0);
     border-radius: 50%;
     transition: transform 0.5s ease-out;
 }

 .btn:active::after {
     transform: translate(-50%, -50%) scale(1);
     transition: 0s;
 }

 .glass-panel {
     background: var(--bg-glass);
     backdrop-filter: blur(16px);
     -webkit-backdrop-filter: blur(16px);
     border: 1px solid rgba(255, 255, 255, 0.2);
     box-shadow: var(--shadow-glass);
 }

 /* Product Details, Admin, etc - Preserved minimal styles for structure */
 .product-main-img {
     width: 100%;
     border-radius: 0;
     border: 1px solid #eee;
     background: #f5f5f5;
     aspect-ratio: 3/4;
     object-fit: cover;
 }

 .product-thumbnails {
     display: flex;
     gap: 0.5rem;
     overflow-x: auto;
     padding: 0.75rem 0;
 }

 .product-thumb {
     width: 70px;
     height: 70px;
     object-fit: cover;
     border-radius: 0;
     border: 2px solid transparent;
     cursor: pointer;
     transition: border-color 0.2s ease;
     opacity: 0.7;
 }

 .product-thumb:hover {
     opacity: 1;
 }

 .product-thumb.active {
     border-color: #111;
     opacity: 1;
 }

 .attribute-selector {
     display: flex;
     flex-wrap: wrap;
     gap: 0.6rem;
     margin-top: 0.5rem;
 }

 .size-btn {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     min-width: 3rem;
     height: 2.25rem;
     padding: 0 0.75rem;
     border: 1px solid #777;
     background: #fff;
     border-radius: 2rem;
     cursor: pointer;
     font-weight: 500;
     font-size: 0.85rem;
     color: #111;
     transition: all 0.2s ease;
     user-select: none;
 }

 .size-btn:hover {
     border-color: #111;
 }

 .size-btn.active {
     background: #111;
     color: #fff;
     border-color: #111;
 }

 .color-btn {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     min-width: 3rem;
     height: 2.25rem;
     padding: 0 0.75rem;
     border: 1px solid #777;
     background: #fff;
     border-radius: 2rem;
     cursor: pointer;
     font-weight: 500;
     font-size: 0.85rem;
     color: #111;
     transition: all 0.2s ease;
     user-select: none;
 }

 .color-btn:hover {
     border-color: #111;
 }

 .color-btn.active {
     background: #111;
     color: #fff;
     border-color: #111;
 }

 .qty-wrapper {
     display: inline-flex;
     align-items: center;
     border: 1px solid #ccc;
     height: 2.75rem;
     background: #fff;
 }

 .cart-qty-btn {
     width: 2.75rem;
     height: 100%;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     border: none;
     background: transparent;
     cursor: pointer;
     color: #555;
     font-size: 1.25rem;
     transition: background 0.2s;
 }

 .cart-qty-btn:hover {
     background: #f5f5f5;
     color: #111;
 }

 .cart-qty-input {
     width: 3rem;
     text-align: center;
     border: none;
     background: transparent;
     height: 100%;
     font-weight: 500;
     font-size: 1rem;
     color: #111;
     padding: 0;
 }

 .cart-qty-input:focus {
     outline: none;
 }

 .btn-dark {
     background: #111;
     color: #fff;
     border: 1px solid #111;
 }

 .btn-dark:hover {
     background: #000;
     color: #fff;
 }

 .btn-outline-dark {
     background: #fff;
     color: #111;
     border: 1px solid #111;
 }

 .btn-outline-dark:hover {
     background: #f9f9f9;
     color: #111;
 }

 .badge-discount {
     background: #2e7d32;
     color: #fff;
     padding: 0.25rem 0.6rem;
     border-radius: 1rem;
     font-size: 0.75rem;
     font-weight: 600;
     display: inline-block;
     vertical-align: middle;
 }

 .feature-list {
     list-style: none;
     padding: 0;
     margin: 1.5rem 0 0 0;
 }

 .feature-list li {
     display: flex;
     align-items: center;
     gap: 0.75rem;
     margin-bottom: 0.75rem;
     font-size: 0.9rem;
     color: #333;
 }

 .feature-list i {
     font-size: 1.1rem;
     color: #555;
 }

 /* Product Accordions */
 .product-accordions {
     border-top: 1px solid #ddd;
 }

 .product-accordion {
     border-bottom: 1px solid #ddd;
 }

 .product-accordion summary {
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 1rem 0;
     cursor: pointer;
     font-size: 0.8rem;
     font-weight: 600;
     letter-spacing: 0.08em;
     color: #333;
     list-style: none;
     user-select: none;
     transition: color 0.2s;
 }

 .product-accordion summary::-webkit-details-marker {
     display: none;
 }

 .product-accordion summary::marker {
     display: none;
     content: '';
 }

 .product-accordion summary:hover {
     color: #111;
 }

 .product-accordion .accordion-chevron {
     transition: transform 0.3s ease;
     font-size: 1rem;
     color: #888;
 }

 .product-accordion[open] .accordion-chevron {
     transform: rotate(180deg);
 }

 .accordion-content {
     padding: 0 0 1.25rem 0;
     font-size: 0.875rem;
     line-height: 1.7;
     color: #555;
 }

 .accordion-content p {
     margin-bottom: 0.5rem;
 }

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

 /* Footer */
 .site-footer {
     background-color: var(--bg-white);
     border-top: 1px solid var(--border-light);
     padding: 4rem 0 2rem;
     margin-top: 4rem;
 }

 /* Admin */
 .admin-layout {
     display: flex;
     min-height: 100vh;
 }

 .admin-sidebar {
     width: 260px;
     background-color: var(--secondary);
     color: #fff;
     flex-shrink: 0;
     display: flex;
     flex-direction: column;
 }

 .admin-sidebar-header {
     padding: 1.5rem;
     border-bottom: 1px solid rgba(255, 255, 255, 0.1);
     font-size: 1.25rem;
     font-weight: 800;
 }

 .admin-nav {
     padding: 1rem 0;
     flex: 1;
 }

 .admin-nav-link {
     display: flex;
     align-items: center;
     padding: 0.875rem 1.5rem;
     color: var(--text-light);
     transition: var(--transition-fast);
     gap: 0.75rem;
 }

 .admin-nav-link:hover,
 .admin-nav-link.active {
     background-color: rgba(255, 255, 255, 0.05);
     color: #fff;
     border-left: 4px solid var(--primary);
 }

 .admin-content {
     flex: 1;
     display: flex;
     flex-direction: column;
     min-width: 0;
     background: var(--bg-main);
 }

 .admin-header {
     background-color: var(--bg-white);
     border-bottom: 1px solid var(--border-light);
     padding: 1rem 2rem;
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .admin-main {
     padding: 2rem;
     flex: 1;
     overflow-y: auto;
 }

 /* KPI Cards Premium Design */
 .kpi-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
     gap: 1.5rem;
     margin-bottom: 2rem;
 }

 .kpi-card {
     background: var(--bg-white);
     border: 1px solid var(--border-light);
     border-radius: var(--radius-xl);
     padding: 1.5rem;
     box-shadow: var(--shadow-sm);
     position: relative;
     overflow: hidden;
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     display: flex;
     align-items: center;
     justify-content: space-between;
     z-index: 1;
 }

 .kpi-card:hover {
     transform: translateY(-6px);
     box-shadow: var(--shadow-xl);
     border-color: var(--border-color);
 }

 .kpi-card[data-color="primary"] {
     --card-accent: var(--primary);
     --card-bg: #EEF2FF;
 }

 .kpi-card[data-color="info"] {
     --card-accent: var(--info);
     --card-bg: #dbeafe;
 }

 .kpi-card[data-color="warning"] {
     --card-accent: var(--warning);
     --card-bg: #fef3c7;
 }

 .kpi-card[data-color="success"] {
     --card-accent: var(--success);
     --card-bg: #d1fae5;
 }

 .kpi-card[data-color="danger"] {
     --card-accent: var(--danger);
     --card-bg: #fee2e2;
 }

 .kpi-card[data-color="secondary"] {
     --card-accent: var(--secondary);
     --card-bg: #f1f5f9;
 }

 .kpi-content {
     display: flex;
     flex-direction: column;
     gap: 0.25rem;
 }

 .kpi-label {
     font-size: 0.8125rem;
     font-weight: 700;
     color: var(--text-muted);
     text-transform: uppercase;
     letter-spacing: 0.05em;
 }

 .kpi-value {
     font-size: 1.875rem;
     font-weight: 800;
     color: var(--secondary);
     line-height: 1.2;
 }

 .kpi-icon-wrapper {
     width: 64px;
     height: 64px;
     border-radius: 1rem;
     background-color: var(--card-bg);
     color: var(--card-accent);
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 2rem;
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
 }

 .kpi-card:hover .kpi-icon-wrapper {
     transform: scale(1.1) rotate(5deg);
     background-color: var(--card-accent);
     color: #fff;
     box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
 }


 .kpi-card::after {
     content: '';
     position: absolute;
     bottom: 0;
     left: 0;
     width: 100%;
     height: 4px;
     background-color: var(--card-accent);
     transform: scaleX(0);
     transform-origin: left;
     transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
 }

 .kpi-card:hover::after {
     transform: scaleX(1);
 }

 @media (max-width: 767px) {
     .admin-layout {
         flex-direction: column;
     }

     .admin-sidebar {
         width: 100%;
         height: auto;
         display: block;
         position: sticky;
         top: 0;
         z-index: 99;
     }

     .admin-sidebar-header {
         padding: 1rem;
     }

     .admin-nav {
         display: flex;
         overflow-x: auto;
         padding: 0;
         flex-direction: row;
         align-items: center;
         white-space: nowrap;
     }

     .admin-nav-link {
         padding: 1rem;
         font-size: 0.875rem;
         border-left: none;
         border-bottom: 4px solid transparent;
     }

     .admin-nav-link.active,
     .admin-nav-link:hover {
         border-left: none;
         border-bottom: 4px solid var(--primary);
     }

     .admin-nav>div {
         display: none;
         /* Hide configuration label on mobile */
     }

     .admin-main {
         padding: 1rem;
     }
 }

 /* ============================================================
   TABLES
   ============================================================ */
 .table-responsive {
     overflow-x: auto;
     -webkit-overflow-scrolling: touch;
 }

 .table {
     width: 100%;
     border-collapse: separate;
     border-spacing: 0;
     text-align: left;
 }

 .table th {
     padding: 1.25rem 1rem;
     font-size: 0.75rem;
     font-weight: 700;
     text-transform: uppercase;
     letter-spacing: 0.05em;
     color: var(--text-muted);
     background-color: var(--bg-main);
     border-bottom: 1px solid var(--border-light);
 }

 .table td {
     padding: 1.25rem 1rem;
     vertical-align: middle;
     border-bottom: 1px solid var(--border-light);
     color: var(--text-main);
     font-size: 0.9375rem;
 }

 .table tbody tr {
     transition: var(--transition-fast);
 }

 .table tbody tr:hover {
     background-color: var(--bg-main);
 }

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

 /* Mobile Responsive Utility Grids */
 .page-layout-sidebar {
     display: grid;
     grid-template-columns: 1fr;
     gap: 2rem;
 }

 .cart-layout {
     display: grid;
     grid-template-columns: 1fr;
     gap: 2rem;
 }

 .form-grid-2 {
     display: grid;
     grid-template-columns: 1fr;
     gap: 1rem;
 }

 .form-grid-3 {
     display: grid;
     grid-template-columns: 1fr;
     gap: 1rem;
 }

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

     .form-grid-2 {
         grid-template-columns: 1fr 1fr;
     }
 }

 @media (min-width: 1024px) {
     .cart-layout {
         grid-template-columns: 3fr 2fr;
         gap: 3rem;
     }

     .form-grid-3 {
         grid-template-columns: 1fr 1fr 1fr;
     }
 }

 /* Fix product auto-fit overflow on small phones */
 @media (max-width: 375px) {
     .product-grid-auto {
         grid-template-columns: 1fr !important;
     }
 }

 /* ============================================================
   CHECKOUT PAGE STYLES
   ============================================================ */

 /* Login notice bar */
 .checkout-login-bar {
     background: #fff;
     border: 1px solid #e5e7eb;
     border-radius: 6px;
     padding: 10px 18px;
     margin-bottom: 1.5rem;
     display: flex;
     align-items: center;
     justify-content: space-between;
     font-size: 0.875rem;
     color: #374151;
 }

 .checkout-login-bar .cta-btns {
     display: flex;
     gap: 8px;
 }

 .checkout-login-bar .btn-login {
     padding: 5px 18px;
     border: 1px solid #d1d5db;
     border-radius: 4px;
     background: #fff;
     color: #374151;
     font-size: 0.82rem;
     font-weight: 600;
     cursor: pointer;
     text-decoration: none;
 }

 .checkout-login-bar .btn-register {
     padding: 5px 18px;
     border: 1px solid var(--primary);
     border-radius: 4px;
     background: var(--primary);
     color: #fff;
     font-size: 0.82rem;
     font-weight: 600;
     cursor: pointer;
     text-decoration: none;
 }

 /* Checkout section cards */
 .checkout-card {
     background: #fff;
     border: 1px solid #e5e7eb;
     border-radius: 8px;
     margin-bottom: 1.25rem;
     overflow: hidden;
 }

 .checkout-card-header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 14px 18px;
     border-bottom: 1px solid #f0f0f0;
 }

 .checkout-card-title {
     font-size: 1rem;
     font-weight: 700;
     color: #1f2937;
     border-left: 3px solid var(--primary);
     padding-left: 10px;
     margin: 0;
 }

 .checkout-card-body {
     padding: 18px;
 }

 /* Order review item row */
 .order-review-item {
     display: flex;
     align-items: center;
     gap: 12px;
     padding: 10px 0;
     border-bottom: 1px solid #f3f4f6;
 }

 .order-review-item:last-child {
     border-bottom: none;
 }

 .order-review-img {
     width: 54px;
     height: 54px;
     border: 1px solid #e5e7eb;
     border-radius: 6px;
     object-fit: cover;
     flex-shrink: 0;
 }

 .order-review-info {
     flex: 1;
     min-width: 0;
 }

 .order-review-name {
     font-size: 0.875rem;
     font-weight: 600;
     color: #1f2937;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }

 .order-review-qty {
     display: flex;
     align-items: center;
     gap: 6px;
     margin-top: 4px;
     font-size: 0.8rem;
     color: #6b7280;
 }

 .qty-ctrl {
     width: 24px;
     height: 24px;
     border: 1px solid #d1d5db;
     background: #fff;
     border-radius: 4px;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     font-size: 0.9rem;
     color: #374151;
     text-decoration: none;
 }

 .qty-ctrl:hover {
     background: #f3f4f6;
 }

 .qty-num {
     min-width: 20px;
     text-align: center;
     font-weight: 600;
     font-size: 0.875rem;
     color: #1f2937;
 }

 .order-review-price {
     font-weight: 700;
     font-size: 0.9rem;
     color: #1f2937;
     white-space: nowrap;
 }

 .order-review-remove {
     background: none;
     border: none;
     color: #ef4444;
     cursor: pointer;
     padding: 4px;
     font-size: 1rem;
     border-radius: 4px;
     flex-shrink: 0;
     text-decoration: none;
 }

 .order-review-remove:hover {
     background: #fee2e2;
 }

 /* Shipping form inputs */
 .checkout-input {
     width: 100%;
     padding: 9px 12px;
     border: 1px solid #e5e7eb;
     border-radius: 6px;
     font-size: 0.875rem;
     color: #1f2937;
     background: #fff;
     outline: none;
     transition: border-color 0.2s;
     box-sizing: border-box;
 }

 .checkout-input:focus {
     border-color: var(--primary);
 }

 .checkout-label {
     display: block;
     font-size: 0.78rem;
     font-weight: 600;
     color: #6b7280;
     margin-bottom: 5px;
 }

 .phone-input-wrap {
     display: flex;
     align-items: center;
     border: 1px solid #e5e7eb;
     border-radius: 6px;
     overflow: hidden;
 }

 .phone-prefix {
     padding: 9px 10px;
     background: #f9fafb;
     border-right: 1px solid #e5e7eb;
     font-size: 0.82rem;
     font-weight: 600;
     color: #6b7280;
     white-space: nowrap;
 }

 .phone-input-wrap input {
     flex: 1;
     border: none;
     padding: 9px 12px;
     font-size: 0.875rem;
     outline: none;
     background: #fff;
 }

 /* Billing address toggle */
 .billing-toggle {
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 14px 18px;
     background: #fff;
     border: 1px solid #e5e7eb;
     border-radius: 8px;
     margin-bottom: 1.25rem;
 }

 .billing-toggle-title {
     font-size: 1rem;
     font-weight: 700;
     color: #1f2937;
     border-left: 3px solid var(--primary);
     padding-left: 10px;
     margin: 0;
 }

 .billing-radio {
     width: 18px;
     height: 18px;
     accent-color: var(--primary);
 }

 /* Payment method tiles */
 .payment-method-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 10px;
 }

 @media (max-width: 480px) {
     .payment-method-grid {
         grid-template-columns: 1fr;
     }
 }

 .payment-tile {
     display: flex;
     align-items: center;
     gap: 8px;
     padding: 10px 12px;
     border: 1px solid #e5e7eb;
     border-radius: 8px;
     cursor: pointer;
     transition: all 0.2s;
     background: #fff;
     font-size: 0.875rem;
     font-weight: 600;
     color: #374151;
 }

 .payment-tile:hover {
     border-color: var(--primary);
     background: #fff8f5;
 }

 .payment-tile input[type="radio"] {
     display: none;
 }

 .payment-tile:has(input:checked) {
     border-color: var(--primary);
     background: #fff8f5;
     box-shadow: 0 0 0 1.5px var(--primary);
 }

 .payment-tile .tile-check {
     width: 18px;
     height: 18px;
     border: 2px solid #d1d5db;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
     transition: all 0.2s;
 }

 .payment-tile:has(input:checked) .tile-check {
     border-color: var(--primary);
     background: var(--primary);
 }

 .payment-tile:has(input:checked) .tile-check::after {
     content: '';
     width: 7px;
     height: 7px;
     background: #fff;
     border-radius: 50%;
 }

 .payment-tile-icon {
     font-size: 1.3rem;
     color: #6b7280;
 }

 /* Coupon accordion */
 .coupon-accordion-header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 12px 0;
     cursor: pointer;
     font-size: 0.9rem;
     font-weight: 600;
     color: #374151;
     border-bottom: 1px solid #f0f0f0;
     user-select: none;
 }

 .coupon-accordion-header:hover {
     color: var(--primary);
 }

 .coupon-accordion-body {
     padding-top: 12px;
     display: none;
 }

 .coupon-accordion-body.open {
     display: block;
 }

 /* Totals summary */
 .totals-row {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 7px 0;
     font-size: 0.875rem;
     color: #6b7280;
 }

 .totals-row .lbl {
     font-weight: 500;
 }

 .totals-row .val {
     font-weight: 600;
     color: #1f2937;
 }

 .totals-total {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 12px 0 0;
     border-top: 2px solid #f0f0f0;
     margin-top: 6px;
     font-size: 1.05rem;
     font-weight: 800;
     color: #1f2937;
 }

 /* Special notes */
 .special-notes-label {
     font-size: 0.875rem;
     font-weight: 700;
     color: #374151;
     margin-bottom: 8px;
     display: block;
 }

 .special-notes-label span {
     font-weight: 400;
     color: #9ca3af;
     font-size: 0.8rem;
 }

 .special-notes-textarea {
     width: 100%;
     border: 1px solid #e5e7eb;
     border-radius: 6px;
     padding: 9px 12px;
     font-size: 0.85rem;
     resize: vertical;
     min-height: 80px;
     outline: none;
     color: #374151;
     font-family: inherit;
     box-sizing: border-box;
 }

 .special-notes-textarea:focus {
     border-color: var(--primary);
 }

 .char-counter {
     font-size: 0.75rem;
     color: #9ca3af;
     margin-top: 3px;
 }

 /* Terms checkbox */
 .terms-row {
     display: flex;
     align-items: flex-start;
     gap: 8px;
     font-size: 0.8rem;
     color: #6b7280;
     margin: 12px 0;
     line-height: 1.5;
 }

 .terms-row input[type="checkbox"] {
     margin-top: 2px;
     accent-color: var(--primary);
     width: 14px;
     height: 14px;
     flex-shrink: 0;
 }

 .terms-row a {
     color: var(--primary);
     text-decoration: underline;
 }

 /* Place order button */
 .place-order-btn {
     width: 100%;
     padding: 14px;
     background: var(--primary);
     color: #fff;
     border: none;
     border-radius: 6px;
     font-size: 1rem;
     font-weight: 800;
     letter-spacing: 0.08em;
     cursor: pointer;
     transition: background 0.2s, transform 0.15s;
 }

 .place-order-btn:hover {
     background: #d94e1a;
     transform: translateY(-1px);
 }

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

 /* Legacy payment-method-card (kept for compatibility) */
 .payment-method-card {
     gap: 1rem;
     padding: 1.25rem;
     border: 1px solid var(--border-color);
     border-radius: var(--radius-md);
     cursor: pointer;
     transition: all 0.2s ease;
     margin-bottom: 0.75rem;
     background-color: var(--bg-white);
 }

 .payment-method-card:hover {
     border-color: var(--primary);
     background-color: var(--bg-main);
 }

 .payment-method-card input[type="radio"] {
     width: 1.25rem;
     height: 1.25rem;
     accent-color: var(--primary);
     cursor: pointer;
 }

 .payment-method-card:has(input:checked) {
     border-color: var(--primary);
     background-color: rgba(240, 90, 34, 0.05);
     /* very light primary */
     box-shadow: 0 0 0 1px var(--primary);
 }

 .payment-method-card:last-child {
     margin-bottom: 0;
 }


 /* ============================================================
   MODALS
   ============================================================ */
 .modal-backdrop {
     display: none;
     position: fixed;
     top: 0;
     left: 0;
     width: 100vw;
     height: 100vh;
     background: rgba(15, 23, 42, 0.6);
     backdrop-filter: blur(4px);
     z-index: 1050;
     align-items: center;
     justify-content: center;
     padding: 1rem;
 }

 .modal-backdrop.show {
     display: flex;
     animation: fadeIn 0.2s ease-out;
 }

 .modal-content {
     background: var(--bg-white);
     border-radius: var(--radius-xl);
     width: 100%;
     max-width: 500px;
     box-shadow: var(--shadow-xl);
     max-height: 90vh;
     display: flex;
     flex-direction: column;
     animation: scaleIn 0.3s ease-out;
 }

 .modal-header {
     padding: 1.25rem 1.5rem;
     border-bottom: 1px solid var(--border-light);
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .modal-header h3 {
     margin: 0;
     font-size: 1.25rem;
 }

 .modal-body {
     padding: 1.5rem;
     overflow-y: auto;
 }

 .alert-close {
     background: transparent;
     border: none;
     font-size: 1.5rem;
     line-height: 1;
     cursor: pointer;
     color: var(--text-muted);
     padding: 0;
     transition: var(--transition-fast);
 }

 .alert-close:hover {
     color: var(--danger);
 }

 @keyframes scaleIn {
     from {
         transform: scale(0.95);
         opacity: 0;
     }

     to {
         transform: scale(1);
         opacity: 1;
     }
 }


 /* ============================================================
   TABS (Profile, Details, etc)
   ============================================================ */
 .tab-content {
     display: none;
     animation: fadeIn 0.3s ease-out;
 }

 .tab-content.active {
     display: block;
 }



 /* ============================================================
   ADMIN MOBILE RESPONSIVENESS OVERRIDES
   ============================================================ */
 @media (max-width: 1024px) {

     /* Stack admin grids vertically on tablets and mobile */
     .admin-main .grid[style*="grid-template-columns"] {
         grid-template-columns: 1fr !important;
     }
 }

 @media (max-width: 640px) {

     /* Stack admin headers and flex items */
     .admin-header {
         flex-direction: column;
         align-items: flex-start;
         gap: 1rem;
         padding: 1rem;
     }

     .admin-header .flex {
         flex-wrap: wrap;
         gap: 0.75rem;
     }

     .admin-main {
         padding: 1rem;
     }

     /* Stack card headers */
     .admin-main .flex.justify-between.items-center.mb-6,
     .admin-main .card-header.flex.justify-between.items-center {
         flex-direction: column;
         align-items: flex-start;
         gap: 1rem;
     }

     /* Ensure table overflow */
     .table-responsive {
         width: 100%;
         overflow-x: auto;
     }

     /* Ensure action buttons in tables wrap */
     .table td .flex {
         flex-wrap: wrap;
     }
 }

 /* ============================================================
   ADMIN DASHBOARD LAYOUT FIX
   ============================================================ */
 .admin-layout {
     display: flex;
     min-height: 100vh;
     background-color: var(--bg-main);
 }

 .admin-sidebar {
     width: 280px;
     background-color: #0f172a;
     color: #f8fafc;
     display: flex;
     flex-direction: column;
     flex-shrink: 0;
     transition: transform 0.3s ease;
 }

 .admin-sidebar-header {
     padding: 1.5rem;
     font-size: 1.25rem;
     font-weight: 800;
     border-bottom: 1px solid rgba(255, 255, 255, 0.1);
 }

 .admin-nav {
     padding: 1rem 0;
     flex: 1;
     overflow-y: auto;
 }

 .admin-nav-link {
     display: flex;
     align-items: center;
     padding: 0.75rem 1.5rem;
     color: #cbd5e1;
     text-decoration: none;
     transition: var(--transition-fast);
 }

 .admin-nav-link:hover,
 .admin-nav-link.active {
     background-color: rgba(255, 255, 255, 0.1);
     color: #fff;
 }

 .admin-content {
     flex: 1;
     display: flex;
     flex-direction: column;
     min-width: 0;
 }

 .admin-header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 1rem 2rem;
     background: var(--bg-white);
     border-bottom: 1px solid var(--border-light);
 }

 .admin-main {
     padding: 2rem;
     overflow-y: auto;
     flex: 1;
 }

 @media (max-width: 1024px) {
     .admin-layout {
         flex-direction: column;
     }

     .admin-sidebar {
         width: 100%;
         height: auto;
     }

     .admin-nav {
         display: flex;
         overflow-x: auto;
         padding: 0;
     }

     .admin-nav-link {
         padding: 1rem;
         white-space: nowrap;
     }
 }

 /* ============================================================
   ADMIN KPI DASHBOARD STYLES
   ============================================================ */
 .kpi-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
     gap: 1.5rem;
     margin-bottom: 2rem;
 }

 .kpi-card {
     background: var(--bg-white);
     border-radius: var(--radius-lg);
     padding: 1.5rem;
     display: flex;
     justify-content: space-between;
     align-items: center;
     box-shadow: var(--shadow-sm);
     transition: var(--transition-normal);
     text-decoration: none;
     color: inherit;
     border: 1px solid var(--border-color);
 }

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

 .kpi-content {
     display: flex;
     flex-direction: column;
 }

 .kpi-label {
     font-size: 0.875rem;
     color: var(--text-muted);
     font-weight: 600;
     margin-bottom: 0.5rem;
     text-transform: uppercase;
     letter-spacing: 0.05em;
 }

 .kpi-value {
     font-size: 1.75rem;
     font-weight: 800;
     color: var(--text-main);
     line-height: 1;
 }

 .kpi-icon-wrapper {
     width: 48px;
     height: 48px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1.5rem;
 }

 .kpi-card[data-color="primary"] .kpi-icon-wrapper {
     background: rgba(79, 70, 229, 0.1);
     color: var(--primary);
 }

 .kpi-card[data-color="info"] .kpi-icon-wrapper {
     background: rgba(59, 130, 246, 0.1);
     color: var(--info);
 }

 .kpi-card[data-color="warning"] .kpi-icon-wrapper {
     background: rgba(245, 158, 11, 0.1);
     color: var(--warning);
 }

 .kpi-card[data-color="success"] .kpi-icon-wrapper {
     background: rgba(16, 185, 129, 0.1);
     color: var(--success);
 }

 .kpi-card[data-color="danger"] .kpi-icon-wrapper {
     background: rgba(239, 68, 68, 0.1);
     color: var(--danger);
 }

 .kpi-card[data-color="secondary"] .kpi-icon-wrapper {
     background: rgba(100, 116, 139, 0.1);
     color: var(--text-muted);
 }

 /* Tabs Component */
 .tabs {
     display: flex;
     flex-wrap: wrap;
     gap: 0.5rem;
     margin-bottom: 2rem;
     background: var(--bg-main);
     padding: 0.5rem;
     border-radius: var(--radius-lg);
     box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
 }

 .tab-btn {
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 0.75rem 1.5rem;
     font-weight: 600;
     color: var(--text-muted);
     background: transparent;
     border: none !important;
     border-radius: var(--radius-md);
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     text-decoration: none;
     cursor: pointer;
     font-family: inherit;
     font-size: 0.9375rem;
     position: relative;
     overflow: hidden;
 }

 .tab-btn:hover {
     color: var(--primary);
     background: rgba(255, 255, 255, 0.5);
 }

 .tab-btn.active {
     color: var(--primary);
     background: var(--bg-white);
     box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
     font-weight: 700;
 }

 /* ============================================================
   CHECKOUT PAGE — Modern Mobile-First Responsive Layout
   ============================================================ */

 .checkout-wrapper {
     max-width: 1200px;
     margin: 0 auto;
     padding: 1.5rem 1rem 3rem;
 }

 .checkout-page-header {
     margin-bottom: 1.5rem;
 }

 .checkout-page-title {
     font-size: 1.75rem;
     font-weight: 800;
     color: var(--text-main);
     display: flex;
     align-items: center;
     gap: 0.5rem;
     margin: 0 0 0.25rem 0;
 }

 .checkout-breadcrumb {
     font-size: 0.85rem;
     color: var(--text-muted);
 }

 .checkout-breadcrumb a {
     color: var(--text-muted);
     transition: color 0.2s;
 }

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

 /* Login notice bar */
 .checkout-login-bar {
     display: flex;
     align-items: center;
     justify-content: space-between;
     background: #fff8f0;
     border: 1px solid #fde8cc;
     border-radius: 10px;
     padding: 12px 16px;
     margin-bottom: 1.25rem;
     font-size: 0.875rem;
     color: #4b5563;
     gap: 12px;
 }

 .checkout-login-bar .cta-btns {
     display: flex;
     gap: 8px;
     flex-shrink: 0;
 }

 .checkout-login-bar .btn-login,
 .checkout-login-bar .btn-register {
     padding: 6px 14px;
     border-radius: 6px;
     font-size: 0.8rem;
     font-weight: 600;
     text-decoration: none;
     transition: all 0.2s;
     white-space: nowrap;
 }

 .checkout-login-bar .btn-login {
     background: var(--primary);
     color: #fff;
     border: 1px solid var(--primary);
 }

 .checkout-login-bar .btn-login:hover {
     opacity: 0.9;
 }

 .checkout-login-bar .btn-register {
     background: #fff;
     color: var(--primary);
     border: 1px solid var(--primary);
 }

 .checkout-login-bar .btn-register:hover {
     background: #fff0e8;
 }

 /* 2-Column grid layout */
 .cart-layout {
     display: grid;
     grid-template-columns: 7fr 5fr;
     gap: 24px;
     align-items: start;
 }

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

 /* Checkout card */
 .checkout-card {
     background: #ffffff;
     border: 1px solid #e5e7eb;
     border-radius: 12px;
     margin-bottom: 1rem;
     overflow: hidden;
     box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
 }

 .checkout-card-header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 14px 18px;
     border-bottom: 1px solid #f3f4f6;
     background: #fafbfc;
 }

 .checkout-card-title {
     font-size: 1rem;
     font-weight: 700;
     color: #1f2937;
     margin: 0;
     display: flex;
     align-items: center;
     gap: 8px;
 }

 .checkout-card-title i {
     color: var(--primary);
     font-size: 1.2rem;
 }

 .checkout-card-body {
     padding: 16px 18px;
 }

 /* Order review items */
 .order-review-item {
     display: flex;
     align-items: center;
     gap: 14px;
     padding: 14px 18px;
     border-bottom: 1px solid #f3f4f6;
     background: #ffffff;
     transition: background 0.15s ease;
 }

 .order-review-item:last-child {
     border-bottom: none;
 }

 .order-review-img {
     width: 64px;
     height: 64px;
     border-radius: 8px;
     border: 1px solid #e5e7eb;
     object-fit: cover;
     flex-shrink: 0;
     background: #f9fafb;
 }

 .order-review-info {
     flex: 1;
     min-width: 0;
 }

 .order-review-name {
     font-size: 0.9rem;
     font-weight: 600;
     color: #1f2937;
     line-height: 1.35;
     margin-bottom: 4px;
     word-break: break-word;
 }

 .order-review-variant {
     display: inline-flex;
     align-items: center;
     font-size: 0.75rem;
     font-weight: 500;
     color: #6b7280;
     background: #f3f4f6;
     padding: 2px 8px;
     border-radius: 4px;
     margin-bottom: 6px;
 }

 .order-review-price {
     font-size: 0.95rem;
     font-weight: 700;
     color: var(--primary);
 }

 .order-review-actions {
     display: flex;
     align-items: center;
     gap: 12px;
     flex-shrink: 0;
 }

 .qty-ctrl-wrap {
     display: inline-flex;
     align-items: center;
     border: 1px solid #d1d5db;
     border-radius: 8px;
     overflow: hidden;
     background: #fff;
 }

 .qty-ctrl {
     width: 32px;
     height: 32px;
     background: #f9fafb;
     border: none;
     cursor: pointer;
     font-size: 1rem;
     font-weight: 700;
     color: #374151;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: background 0.15s, color 0.15s;
     user-select: none;
     -webkit-tap-highlight-color: transparent;
 }

 .qty-ctrl:hover {
     background: #e5e7eb;
     color: #111;
 }

 .qty-ctrl:active {
     background: #d1d5db;
 }

 .qty-display {
     min-width: 36px;
     text-align: center;
     font-size: 0.9rem;
     font-weight: 700;
     color: #1f2937;
     padding: 0 4px;
     border: none;
     background: transparent;
 }

 .remove-item-btn {
     background: none;
     border: none;
     cursor: pointer;
     color: #9ca3af;
     font-size: 1.2rem;
     padding: 6px;
     border-radius: 6px;
     transition: color 0.2s, background 0.2s;
     display: flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
 }

 .remove-item-btn:hover {
     color: #ef4444;
     background: #fee2e2;
 }

 /* Mobile specific responsive styling for order review item */
 @media (max-width: 640px) {
     .order-review-item {
         display: grid;
         grid-template-columns: 60px 1fr;
         grid-template-areas:
             "img info"
             "img actions";
         column-gap: 12px;
         row-gap: 8px;
         padding: 12px 14px;
         align-items: start;
     }

     .order-review-img {
         grid-area: img;
         width: 60px;
         height: 60px;
     }

     .order-review-info {
         grid-area: info;
     }

     .order-review-name {
         font-size: 0.85rem;
         line-height: 1.3;
         margin-bottom: 2px;
     }

     .order-review-variant {
         font-size: 0.7rem;
         margin-bottom: 4px;
     }

     .order-review-actions {
         grid-area: actions;
         display: flex;
         align-items: center;
         justify-content: space-between;
         width: 100%;
         margin-top: 2px;
     }

     .order-review-price {
         font-size: 0.9rem;
     }

     .qty-ctrl {
         width: 30px;
         height: 30px;
         font-size: 0.95rem;
     }

     .qty-display {
         min-width: 30px;
         font-size: 0.85rem;
     }
 }

 /* Checkout form inputs */
 .checkout-input {
     width: 100%;
     min-height: 46px;
     padding: 10px 14px;
     border: 1.5px solid #d1d5db;
     border-radius: 8px;
     font-size: 0.95rem;
     color: #1f2937;
     background: #ffffff;
     transition: border-color 0.2s, box-shadow 0.2s;
     font-family: inherit;
     box-sizing: border-box;
 }

 .checkout-input:focus {
     outline: none;
     border-color: var(--primary);
     box-shadow: 0 0 0 3px rgba(240, 90, 34, 0.15);
 }

 .checkout-input::placeholder {
     color: #9ca3af;
     font-size: 0.9rem;
 }

 /* Custom Select Styling */
 select.checkout-input {
     appearance: none;
     -webkit-appearance: none;
     -moz-appearance: none;
     background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
     background-repeat: no-repeat;
     background-position: right 14px center;
     background-size: 16px 16px;
     padding-right: 38px;
     cursor: pointer;
 }

 .input-row {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 12px;
     margin-bottom: 12px;
 }

 .input-col {
     display: flex;
     flex-direction: column;
     gap: 4px;
 }

 .input-label {
     font-size: 0.82rem;
     font-weight: 600;
     color: #4b5563;
     margin-bottom: 2px;
 }

 .phone-wrap {
     display: flex;
     align-items: stretch;
     border: 1.5px solid #d1d5db;
     border-radius: 8px;
     overflow: hidden;
     background: #ffffff;
     min-height: 46px;
     transition: border-color 0.2s, box-shadow 0.2s;
 }

 .phone-wrap:focus-within {
     border-color: var(--primary);
     box-shadow: 0 0 0 3px rgba(240, 90, 34, 0.15);
 }

 .phone-prefix {
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 0 12px;
     font-size: 0.9rem;
     font-weight: 700;
     color: #4b5563;
     background: #f3f4f6;
     border-right: 1.5px solid #d1d5db;
     white-space: nowrap;
     flex-shrink: 0;
     user-select: none;
 }

 .phone-wrap .checkout-input {
     border: none;
     border-radius: 0;
     box-shadow: none;
     padding-left: 10px;
     min-height: auto;
     flex: 1;
 }

 .phone-wrap .checkout-input:focus {
     box-shadow: none;
     border: none;
 }

 @media (max-width: 600px) {
     .input-row {
         grid-template-columns: 1fr;
         gap: 10px;
     }

     .checkout-input {
         font-size: 16px !important;
         /* Prevents auto-zoom on iOS */
         min-height: 48px;
     }

     .phone-wrap {
         min-height: 48px;
     }

     .phone-prefix {
         font-size: 16px;
     }
 }

 /* Payment method tiles grid */
 .payment-method-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
     gap: 10px;
 }

 .payment-tile {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     gap: 6px;
     padding: 12px 10px 10px;
     border: 2px solid #e5e7eb;
     border-radius: 10px;
     cursor: pointer;
     background: #ffffff;
     transition: all 0.2s ease;
     position: relative;
     text-align: center;
     font-size: 0.8rem;
     font-weight: 600;
     color: #4b5563;
     user-select: none;
     min-height: 64px;
 }

 .payment-tile input[type="radio"] {
     position: absolute;
     opacity: 0;
     pointer-events: none;
     width: 0;
     height: 0;
 }

 .payment-tile .tile-check {
     position: absolute;
     top: 6px;
     right: 6px;
     width: 16px;
     height: 16px;
     border-radius: 50%;
     border: 2px solid #d1d5db;
     background: #fff;
     transition: all 0.2s ease;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .payment-tile input:checked~.tile-check {
     border-color: var(--primary);
     background: var(--primary);
 }

 .payment-tile input:checked~.tile-check::after {
     content: '';
     width: 6px;
     height: 6px;
     border-radius: 50%;
     background: #fff;
     display: block;
 }

 .payment-tile:has(input:checked) {
     border-color: var(--primary);
     background: #fff8f5;
     color: var(--primary);
     box-shadow: 0 0 0 2px rgba(240, 90, 34, 0.15);
 }

 .payment-tile:hover {
     border-color: var(--primary);
     background: #fff8f5;
 }

 .payment-tile-icon {
     font-size: 1.6rem;
     color: #6b7280;
     height: 32px;
     width: auto;
     object-fit: contain;
     display: block;
 }

 .payment-tile:has(input:checked) .payment-tile-icon {
     color: var(--primary);
 }

 @media (max-width: 640px) {
     .payment-method-grid {
         grid-template-columns: repeat(2, 1fr);
         gap: 8px;
     }

     .payment-tile {
         padding: 10px 8px;
         min-height: 60px;
         font-size: 0.75rem;
     }
 }

 @media (max-width: 360px) {
     .payment-method-grid {
         grid-template-columns: 1fr;
     }
 }

 /* Coupon accordion */
 .coupon-accordion {
     border: 1px dashed #d1d5db;
     border-radius: 10px;
     overflow: hidden;
     margin-bottom: 0.75rem;
     background: #fafbfc;
 }

 .coupon-accordion-header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 12px 16px;
     cursor: pointer;
     font-size: 0.875rem;
     font-weight: 600;
     color: var(--primary);
     user-select: none;
     transition: background 0.2s;
 }

 .coupon-accordion-header:hover {
     background: #fff0e8;
 }

 .coupon-accordion-header i {
     transition: transform 0.25s ease;
     font-size: 1rem;
 }

 .coupon-accordion-body {
     max-height: 0;
     overflow: hidden;
     transition: max-height 0.3s ease, padding 0.3s ease;
     padding: 0 16px;
     background: #ffffff;
 }

 .coupon-accordion-body.open {
     max-height: 140px;
     padding: 14px 16px;
 }

 /* Order totals */
 .totals-row {
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 8px 0;
     font-size: 0.9rem;
     border-bottom: 1px solid #f3f4f6;
 }

 .totals-row:last-of-type {
     border-bottom: none;
 }

 .totals-row .lbl {
     color: #6b7280;
     font-weight: 500;
 }

 .totals-row .val {
     font-weight: 700;
     color: #1f2937;
 }

 .totals-total {
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 14px 0 4px;
     margin-top: 8px;
     border-top: 2px solid var(--primary);
     font-size: 1.15rem;
     font-weight: 800;
     color: #1f2937;
 }

 .totals-total .val {
     color: var(--primary);
     font-size: 1.25rem;
 }

 /* Special notes */
 .special-notes-label {
     display: block;
     font-size: 0.85rem;
     font-weight: 600;
     color: #4b5563;
     margin-bottom: 6px;
 }

 .special-notes-label span {
     font-weight: 400;
     color: #9ca3af;
 }

 .special-notes-textarea {
     width: 100%;
     min-height: 75px;
     padding: 10px 14px;
     border: 1.5px solid #d1d5db;
     border-radius: 8px;
     font-size: 0.9rem;
     font-family: inherit;
     color: #1f2937;
     resize: vertical;
     background: #ffffff;
     transition: border-color 0.2s, box-shadow 0.2s;
     box-sizing: border-box;
 }

 .special-notes-textarea:focus {
     outline: none;
     border-color: var(--primary);
     box-shadow: 0 0 0 3px rgba(240, 90, 34, 0.15);
 }

 @media (max-width: 600px) {
     .special-notes-textarea {
         font-size: 16px !important;
     }
 }

 /* Place Order Button (Desktop & Base) */
 .place-order-btn {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 8px;
     width: 100%;
     padding: 15px;
     background: var(--primary);
     color: #ffffff;
     font-size: 1.05rem;
     font-weight: 800;
     letter-spacing: 0.5px;
     border: none;
     border-radius: 10px;
     cursor: pointer;
     transition: all 0.2s ease;
     box-shadow: 0 4px 14px rgba(240, 90, 34, 0.3);
     font-family: inherit;
     position: relative;
     overflow: hidden;
 }

 .place-order-btn:hover {
     opacity: 0.92;
     transform: translateY(-1px);
     box-shadow: 0 6px 20px rgba(240, 90, 34, 0.4);
 }

 .place-order-btn:active {
     transform: translateY(1px);
 }

 /* Mobile Sticky Checkout Bar */
 .mobile-checkout-sticky-bar {
     display: none;
 }

 @media (max-width: 768px) {

     .site-footer,
     .mob-nav {
         display: none !important;
     }

     body {
         padding-bottom: 95px !important;
     }

     .checkout-desktop-btn {
         display: none !important;
     }

     .mobile-checkout-sticky-bar {
         display: flex !important;
         align-items: center;
         justify-content: space-between;
         gap: 12px;
         position: fixed;
         bottom: 0;
         left: 0;
         right: 0;
         width: 100%;
         background: #ffffff;
         border-top: 1px solid #e5e7eb;
         box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
         padding: 10px 16px;
         padding-bottom: max(12px, env(safe-area-inset-bottom));
         z-index: 9999;
     }

     .mobile-sticky-info {
         display: flex;
         flex-direction: column;
         justify-content: center;
         min-width: 0;
         flex-shrink: 0;
     }

     .mobile-sticky-label {
         font-size: 0.72rem;
         font-weight: 600;
         color: #6b7280;
         text-transform: uppercase;
         letter-spacing: 0.05em;
         line-height: 1.1;
     }

     .mobile-sticky-total {
         font-size: 1.25rem;
         font-weight: 800;
         color: var(--primary);
         line-height: 1.2;
     }

     .mobile-sticky-btn {
         flex: 1;
         max-width: 240px;
         min-height: 48px;
         padding: 12px 18px;
         font-size: 0.95rem;
         font-weight: 800;
         letter-spacing: 0.3px;
         border-radius: 8px;
         margin: 0;
         box-shadow: 0 3px 12px rgba(240, 90, 34, 0.3);
         animation: periodicShake 3.5s infinite;
     }
 }

 @keyframes periodicShake {

     0%,
     15% {
         transform: translateX(0);
     }

     2% {
         transform: translateX(-3px) rotate(-1deg);
     }

     4% {
         transform: translateX(3px) rotate(1deg);
     }

     6% {
         transform: translateX(-3px) rotate(-1deg);
     }

     8% {
         transform: translateX(3px) rotate(1deg);
     }

     10% {
         transform: translateX(-3px) rotate(-1deg);
     }

     12% {
         transform: translateX(3px) rotate(1deg);
     }

     14% {
         transform: translateX(0);
     }

     100% {
         transform: translateX(0);
     }
 }

 /* Global Toggle Switch Styles */
 .switch {
     position: relative;
     display: inline-block;
     width: 46px;
     height: 24px;
     margin: 0;
     cursor: pointer;
     user-select: none;
     vertical-align: middle;
 }

 .switch input {
     opacity: 0;
     width: 0;
     height: 0;
     position: absolute;
 }

 .slider {
     position: absolute;
     cursor: pointer;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background-color: #cbd5e1;
     transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
     border-radius: 24px;
     box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
 }

 .slider:before {
     position: absolute;
     content: "";
     height: 18px;
     width: 18px;
     left: 3px;
     bottom: 3px;
     background-color: white;
     transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
     border-radius: 50%;
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
 }

 input:checked+.slider {
     background-color: #10B981;
 }

 input:focus+.slider {
     box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
 }

 input:checked+.slider:before {
     transform: translateX(22px);
 }

 input:disabled+.slider {
     background-color: #e2e8f0;
     cursor: not-allowed;
     opacity: 0.55;
 }

 input:disabled+.slider:before {
     background-color: #94a3b8;
     box-shadow: none;
 }