/* =============================================
   Zebra en México - Stylesheet
   Colores ZEBRA: Verde #90B800, Blanco #ffffff
   ============================================= */

:root {
    --zebra-green: #90B800;
    --zebra-green-dark: #3B4530;
    --zebra-green-light: #D6FF9E;
    --zebra-dark: #0B0300;
    --zebra-gray: #777777;
    --zebra-gray-light: #f3f4f6;
    --zebra-border: #BCE38A;
    --zebra-white: #ffffff;
    --zebra-red: #ef4444;
    --zebra-orange: #f59e0b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: .2s ease;
    --container: 1200px;
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--zebra-dark);
    background: var(--zebra-white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--zebra-green-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--zebra-green); }
ul { list-style: none; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

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

/* --- Top Bar --- */
.top-bar {
    background: var(--zebra-dark);
    color: var(--zebra-white);
    font-size: 13px;
    padding: 6px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.top-bar-text strong { color: var(--zebra-green); }

/* --- Header --- */
.header {
    background: var(--zebra-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.logo-zebra { height: 40px; width: auto; }
.logo-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--zebra-gray);
    white-space: nowrap;
}

/* --- Search --- */
.search-wrapper {
    flex: 1;
    max-width: 500px;
    position: relative;
}
.search-form {
    display: flex;
    border: 2px solid var(--zebra-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}
.search-form:focus-within { border-color: var(--zebra-green); }
.search-form input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    background: transparent;
    min-width: 0;
}
.search-btn {
    background: var(--zebra-green);
    border: none;
    color: var(--zebra-dark);
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background var(--transition);
}
.search-btn:hover { background: var(--zebra-green-dark); color: var(--zebra-white); }

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--zebra-white);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
}
.search-results.active { display: block; }
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--zebra-border);
    cursor: pointer;
    transition: background var(--transition);
}
.search-result-item:hover { background: var(--zebra-green-light); }
.search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
    background: var(--zebra-gray-light);
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-sku { font-size: 12px; color: var(--zebra-gray); font-weight: 600; }
.search-result-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-price { font-weight: 700; color: var(--zebra-green-dark); font-size: 14px; white-space: nowrap; }

/* --- Header Actions --- */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--zebra-dark);
    padding: 8px;
    border-radius: var(--radius);
    transition: background var(--transition);
}
.cart-btn:hover { background: var(--zebra-green-light); color: var(--zebra-dark); }
.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--zebra-green);
    color: var(--zebra-dark);
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--zebra-dark);
    transition: var(--transition);
}

/* --- Nav --- */
.nav { border-top: 1px solid var(--zebra-border); }
.nav-list {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.nav-link {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--zebra-dark);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--zebra-green);
    border-bottom-color: var(--zebra-green);
}

/* --- Carousel --- */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin: 24px 0;
    background: var(--zebra-green-light);
}
.carousel-track {
    display: flex;
    transition: transform .5s ease;
}
.carousel-slide {
    min-width: 100%;
    position: relative;
    aspect-ratio: 3/1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--zebra-green) 0%, var(--zebra-green-dark) 100%);
    color: var(--zebra-white);
    text-align: center;
}
.carousel-slide:nth-child(2n):not(.carousel-slide--img) {
    background: linear-gradient(135deg, var(--zebra-dark) 0%, #0B0300 100%);
}
.carousel-slide:nth-child(3n):not(.carousel-slide--img) {
    background: linear-gradient(135deg, #90B800 0%, var(--zebra-green) 100%);
}
.carousel-slide--img {
    position: relative;
}
.carousel-slide--img .carousel-content {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.carousel-slide--img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 1;
}
.carousel-content h2 {
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.2;
}
.carousel-content p {
    font-size: clamp(14px, 2vw, 20px);
    opacity: .9;
    margin-bottom: 16px;
}
.carousel-cta {
    display: inline-block;
    background: var(--zebra-white);
    color: var(--zebra-green-dark);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    transition: all var(--transition);
}
.carousel-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--zebra-green-dark); }
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    z-index: 5;
    font-size: 18px;
    color: var(--zebra-dark);
}
.carousel-btn:hover { background: var(--zebra-white); box-shadow: var(--shadow-md); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}
.carousel-dot.active { background: var(--zebra-white); transform: scale(1.2); }

/* --- Sections --- */
.section { padding: 40px 0; }
.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-left: 16px;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--zebra-green);
    border-radius: 2px;
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.product-card {
    background: var(--zebra-white);
    border: 1px solid var(--zebra-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.product-card-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--zebra-gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.product-card-img img {
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--transition);
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-body { padding: 16px; }
.product-card-sku {
    font-size: 12px;
    color: var(--zebra-gray);
    font-weight: 600;
    letter-spacing: .5px;
    margin-bottom: 4px;
}
.product-card-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--zebra-dark);
    min-height: 39px;
}
.product-card-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--zebra-green-dark);
    margin-bottom: 4px;
}
.product-card-stock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--zebra-green-light);
    color: var(--zebra-green-dark);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}
.product-card-stock::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--zebra-green);
    border-radius: 50%;
}
.product-card-actions {
    display: flex;
    gap: 8px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    line-height: 1;
}
.btn-primary {
    background: var(--zebra-green);
    color: var(--zebra-dark);
    flex: 1;
}
.btn-primary:hover { background: var(--zebra-green-dark); color: var(--zebra-white); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--zebra-border);
    color: var(--zebra-dark);
}
.btn-outline:hover { border-color: var(--zebra-green); color: var(--zebra-green); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--zebra-red); color: var(--zebra-white); }
.btn-danger:hover { background: #dc2626; color: var(--zebra-white); }

/* --- Product Tooltip (hover suggestions) --- */
.product-card .product-tooltip {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    width: 220px;
    background: var(--zebra-white);
    border: 1px solid var(--zebra-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    z-index: 50;
    margin-left: 8px;
}
.product-card:hover .product-tooltip { display: block; }
.product-tooltip h5 { font-size: 13px; color: var(--zebra-gray); margin-bottom: 8px; }
.product-tooltip-item {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 6px 0;
    border-top: 1px solid var(--zebra-border);
}
.product-tooltip-item img { width: 36px; height: 36px; object-fit: contain; border-radius: 4px; }
.product-tooltip-item span { font-size: 12px; line-height: 1.3; }

/* --- Category Grid --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}
.category-card {
    background: var(--zebra-white);
    border: 1px solid var(--zebra-border);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    transition: all var(--transition);
}
.category-card:hover {
    border-color: var(--zebra-green);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.category-card-icon {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 8px;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Android Emoji", sans-serif;
}
.category-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--zebra-dark);
}
.category-card-count {
    font-size: 12px;
    color: var(--zebra-gray);
}

/* --- Product Detail --- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 32px 0;
}
.product-gallery {
    background: var(--zebra-gray-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    aspect-ratio: 1;
}
.product-gallery img { max-height: 100%; object-fit: contain; }
.product-info h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.3;
}
.product-sku-badge {
    display: inline-block;
    background: var(--zebra-gray-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--zebra-gray);
    margin-bottom: 16px;
}
.product-price-big {
    font-size: 36px;
    font-weight: 800;
    color: var(--zebra-green-dark);
    margin-bottom: 8px;
}
.product-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--zebra-green-light);
    color: var(--zebra-green-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}
.product-stock-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--zebra-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}
.product-description {
    font-size: 15px;
    color: var(--zebra-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}
.product-specs {
    margin-bottom: 24px;
}
.product-specs h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--zebra-dark);
}
.product-specs table {
    width: 100%;
    border-collapse: collapse;
}
.product-specs td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--zebra-border);
    font-size: 14px;
}
.product-specs td:first-child {
    font-weight: 600;
    color: var(--zebra-dark);
    width: 40%;
}
.product-specs tr:nth-child(even) { background: var(--zebra-gray-light); }

.product-add-form {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}
.qty-control {
    display: flex;
    align-items: center;
    border: 2px solid var(--zebra-border);
    border-radius: var(--radius);
    overflow: hidden;
}
.qty-control button {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--zebra-gray-light);
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: background var(--transition);
}
.qty-control button:hover { background: var(--zebra-green-light); }
.qty-control input {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

.product-shipping-note {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--zebra-green-light);
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 16px;
}

/* --- Breadcrumb --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 13px;
    color: var(--zebra-gray);
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--zebra-gray); }
.breadcrumb a:hover { color: var(--zebra-green); }
.breadcrumb-sep { color: var(--zebra-border); }

/* --- Cart Page --- */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}
.cart-table th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid var(--zebra-border);
    font-size: 13px;
    color: var(--zebra-gray);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.cart-table td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--zebra-border);
    vertical-align: middle;
}
.cart-product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cart-product-cell img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: var(--zebra-gray-light);
    border-radius: var(--radius);
    padding: 4px;
}
.cart-product-name { font-weight: 600; font-size: 14px; }
.cart-product-sku { font-size: 12px; color: var(--zebra-gray); }
.cart-remove-btn {
    background: none;
    border: none;
    color: var(--zebra-red);
    cursor: pointer;
    font-size: 13px;
    padding: 4px 8px;
}
.cart-remove-btn:hover { text-decoration: underline; }

.cart-summary {
    background: var(--zebra-gray-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 400px;
    margin-left: auto;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}
.cart-summary-row.shipping {
    color: var(--zebra-gray);
    font-size: 14px;
}
.cart-summary-row.total {
    border-top: 2px solid var(--zebra-border);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 20px;
    font-weight: 800;
}
.cart-summary-row.total span:last-child { color: var(--zebra-green-dark); }

/* --- Checkout --- */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 32px 0;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--zebra-dark);
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--zebra-border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--zebra-green);
}

/* --- Messages --- */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-success { background: var(--zebra-green-light); color: var(--zebra-green-dark); border: 1px solid var(--zebra-green); }
.alert-error { background: #fef2f2; color: var(--zebra-red); border: 1px solid var(--zebra-red); }
.alert-info { background: #eff6ff; color: #2563eb; border: 1px solid #93c5fd; }

/* --- Order Confirmation --- */
.order-confirmation {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}
.order-confirmation .check-icon {
    width: 80px;
    height: 80px;
    background: var(--zebra-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.order-confirmation .check-icon svg { color: var(--zebra-dark); }
.order-confirmation h1 { font-size: 28px; margin-bottom: 12px; }
.order-confirmation .message { font-size: 18px; color: var(--zebra-gray); margin-bottom: 24px; }

/* --- Empty state --- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state svg { color: var(--zebra-gray-light); margin-bottom: 16px; }
.empty-state h2 { font-size: 22px; margin-bottom: 8px; }
.empty-state p { color: var(--zebra-gray); margin-bottom: 20px; }

/* --- 404 --- */
.page-404 {
    text-align: center;
    padding: 80px 20px;
}
.page-404 h1 { font-size: 72px; color: var(--zebra-green); font-weight: 800; }
.page-404 p { font-size: 18px; color: var(--zebra-gray); margin-bottom: 24px; }

/* --- Footer --- */
.footer {
    background: var(--zebra-dark);
    color: #9ca3af;
    padding: 48px 0 0;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    padding-bottom: 32px;
}
.footer-logo { filter: brightness(0) invert(1); margin-bottom: 8px; }
.footer-tagline { color: var(--zebra-green); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.footer-shipping { font-size: 14px; }
.footer-col h4 {
    color: var(--zebra-white);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #9ca3af; font-size: 14px; }
.footer-col ul li a:hover { color: var(--zebra-green); }
.footer-bentho { text-align: center; }
.footer-bentho p { font-size: 13px; margin-bottom: 8px; }
.footer-bentho-logo { margin: 0 auto; filter: brightness(0) invert(1); }
.footer-institutional {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 16px 0;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.6;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37,211,102,.4);
    z-index: 9999;
    transition: all var(--transition);
    animation: whatsappPulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,211,102,.5); }
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(37,211,102,.4); }
    50% { box-shadow: 0 4px 24px rgba(37,211,102,.6); }
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 32px 0;
}
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--zebra-border);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition);
}
.pagination a:hover { border-color: var(--zebra-green); color: var(--zebra-green); }
.pagination .active {
    background: var(--zebra-green);
    color: var(--zebra-dark);
    border-color: var(--zebra-green);
}

/* --- Loading --- */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--zebra-border);
    border-top-color: var(--zebra-green);
    border-radius: 50%;
    animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Responsive --- */
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; }
    .search-wrapper { order: 3; max-width: 100%; flex-basis: 100%; }
    .menu-toggle { display: flex; }
    .nav { display: none; }
    .nav.active { display: block; }
    .nav-list { flex-direction: column; }
    .nav-link { padding: 12px 0; border-bottom: 1px solid var(--zebra-border); border-left: none; }

    .product-detail { grid-template-columns: 1fr; gap: 24px; }
    .product-gallery { aspect-ratio: 4/3; }

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

    .carousel-slide { aspect-ratio: 2/1; padding: 24px; }

    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .product-card-body { padding: 12px; }
    .product-card-price { font-size: 16px; }

    .cart-table { font-size: 13px; }
    .cart-product-cell img { width: 40px; height: 40px; }
    .cart-summary { max-width: 100%; }

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

    .top-bar-inner { justify-content: center; text-align: center; }
    .top-bar-text { font-size: 12px; }

    .product-tooltip { display: none !important; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .footer-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Lazy loading placeholder */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity .3s;
}
img[loading="lazy"].loaded, img[loading="lazy"][src] {
    opacity: 1;
}
