:root {
    --os-blue: #1565d8;
    --os-blue-dark: #0f3f89;
    --os-orange: #f47b20;
    --os-orange-hover: #df6914;
    --os-ink: #172033;
    --os-muted: #64748b;
    --os-line: #e5eaf2;
    --os-panel: #ffffff;
    --os-page: #f5f7fb;
    --os-shadow-sm: 0 2px 8px rgba(23,32,51,0.06);
    --os-shadow: 0 8px 30px rgba(23,32,51,0.10);
    --os-shadow-lg: 0 18px 45px rgba(23,32,51,0.14);
    --os-radius: 12px;
    --os-radius-sm: 8px;
    --os-transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    background: var(--os-page);
    color: var(--os-ink);
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font: inherit; }

/* ========== NAVBAR ========== */
.os-navbar {
    background: var(--os-panel);
    border-bottom: 1px solid var(--os-line);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--os-shadow-sm);
}

.os-navbar-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.os-logo {
    font-size: 26px;
    font-weight: 900;
    color: var(--os-orange);
    flex-shrink: 0;
}

.os-logo span {
    color: var(--os-blue);
}

.os-search-wrap {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.os-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--os-muted);
    font-size: 15px;
}

.os-search-input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 42px;
    border: 2px solid var(--os-line);
    border-radius: 999px;
    background: var(--os-page);
    color: var(--os-ink);
    font-size: 15px;
    outline: none;
    transition: var(--os-transition);
}

.os-search-input:focus {
    border-color: var(--os-orange);
    background: var(--os-panel);
    box-shadow: 0 0 0 4px rgba(244,123,32,0.1);
}

.os-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.os-cat-btn,
.os-cart-btn,
.os-login-btn {
    height: 40px;
    padding: 0 16px;
    border-radius: var(--os-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--os-transition);
}

.os-cat-btn {
    background: var(--os-page);
    color: var(--os-ink);
    border: 1px solid var(--os-line);
}

.os-cat-btn:hover {
    background: var(--os-blue);
    color: #fff;
    border-color: var(--os-blue);
}

.os-cart-btn {
    background: transparent;
    color: var(--os-ink);
    position: relative;
    padding: 0 8px;
}

.os-cart-btn:hover { color: var(--os-orange); }

.os-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--os-orange);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.os-login-btn {
    background: var(--os-blue);
    color: #fff;
    border: none;
}

.os-login-btn:hover {
    background: var(--os-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21,101,216,0.3);
}

.os-mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--os-line);
    border-radius: var(--os-radius-sm);
    background: var(--os-panel);
    color: var(--os-ink);
    font-size: 18px;
    align-items: center;
    justify-content: center;
}

/* ========== HERO ========== */
.os-hero {
    background: linear-gradient(135deg, var(--os-blue) 0%, #0f3f89 50%, var(--os-orange) 100%);
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.os-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.os-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.os-hero-content h1 {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
}

.os-hero-content h1 span {
    background: linear-gradient(90deg, #ffd89b, #f47b20);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.os-hero-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
}

.os-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 54px;
    padding: 0 36px;
    border-radius: 999px;
    background: var(--os-panel);
    color: var(--os-blue);
    font-weight: 800;
    font-size: 16px;
    transition: var(--os-transition);
}

.os-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
    color: var(--os-orange);
}

/* ========== SECTIONS ========== */
.os-section {
    max-width: 100%;
    margin: 0 auto;
    padding: 48px 32px;
}

.os-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.os-section-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--os-ink);
}

.os-view-all {
    font-size: 15px;
    font-weight: 700;
    color: var(--os-blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--os-transition);
}

.os-view-all:hover {
    color: var(--os-orange);
    gap: 10px;
}

/* ========== CATEGORIES ========== */
.os-categories {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.os-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 16px;
    background: var(--os-panel);
    border: 1px solid var(--os-line);
    border-radius: var(--os-radius);
    box-shadow: var(--os-shadow-sm);
    transition: var(--os-transition);
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.os-cat-item:hover,
.os-cat-item.os-cat-active {
    transform: translateY(-4px);
    box-shadow: var(--os-shadow);
    border-color: var(--os-orange);
    color: inherit;
}

.os-cat-item i {
    font-size: 32px;
    color: var(--os-blue);
    transition: var(--os-transition);
}

.os-cat-item:hover i {
    color: var(--os-orange);
    transform: scale(1.1);
}

.os-cat-item span {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

/* ========== PRODUCT GRID ========== */
.os-product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.os-product-card {
    background: var(--os-panel);
    border: 1px solid var(--os-line);
    border-radius: var(--os-radius);
    overflow: hidden;
    position: relative;
    transition: var(--os-transition);
    box-shadow: var(--os-shadow-sm);
}

.os-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--os-shadow-lg);
    border-color: transparent;
}

.os-product-link {
    display: block;
}

.os-product-img {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.os-product-img i {
    transition: var(--os-transition);
}

.os-product-img img,
.os-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.os-available-coupons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 16px;
}

.os-coupon-chip {
    border: 1px dashed rgba(21, 101, 216, 0.35);
    background: rgba(21, 101, 216, 0.08);
    color: var(--os-blue);
    border-radius: 999px;
    padding: 7px 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.os-coupon-chip small {
    color: #64748b;
    font-weight: 700;
}

.os-product-img-icon {
    font-size: 48px;
    color: #fff;
    opacity: 0.9;
}

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

.os-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: var(--os-muted);
    display: grid;
    place-items: center;
    font-size: 15px;
    transition: var(--os-transition);
    z-index: 2;
    border: none;
    backdrop-filter: blur(4px);
}

.os-wishlist-btn:hover {
    background: #fee;
    color: #e74c3c;
    transform: scale(1.1);
}

.os-product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.os-product-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.os-product-title a {
    color: var(--os-ink);
    transition: var(--os-transition);
}

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

.os-product-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--os-orange);
}

.os-product-shop {
    font-size: 13px;
    color: var(--os-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.os-product-shop i {
    color: var(--os-blue);
}

.os-add-cart {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--os-orange);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(244,123,32,0.35);
    transition: var(--os-transition);
    opacity: 0;
    transform: translateY(8px);
    border: none;
}

.os-product-card:hover .os-add-cart {
    opacity: 1;
    transform: translateY(0);
}

.os-add-cart:hover {
    background: var(--os-orange-hover);
    transform: translateY(0) scale(1.1);
}

.os-whatsapp-btn {
    position: absolute;
    bottom: 16px;
    left: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(37,211,102,0.35);
    transition: var(--os-transition);
    opacity: 0;
    transform: translateY(8px);
    border: none;
    text-decoration: none;
}

.os-product-card:hover .os-whatsapp-btn {
    opacity: 1;
    transform: translateY(0);
}

.os-whatsapp-btn:hover {
    background: #1da851;
    transform: translateY(0) scale(1.1);
    color: #fff;
}

/* ========== BANNER ========== */
.os-banner-section {
    padding-top: 0;
}

.os-banner {
    background: linear-gradient(135deg, #0f3f89, var(--os-blue), #1565d8);
    border-radius: var(--os-radius);
    padding: 60px 48px;
    position: relative;
    overflow: hidden;
}

.os-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.os-banner-text {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.os-banner-text h3 {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.os-banner-text p {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 24px;
}

/* ========== FOOTER ========== */
.os-footer {
    background: var(--os-ink);
    color: rgba(255,255,255,0.85);
    padding: 60px 24px 0;
}

.os-footer-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 32px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.os-footer-col h4 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 18px;
}

.os-footer-col p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.os-social {
    display: flex;
    gap: 10px;
}

.os-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 16px;
    transition: var(--os-transition);
}

.os-social a:hover {
    background: var(--os-orange);
    transform: translateY(-2px);
}

.os-footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.os-footer-col ul li {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.os-footer-col ul li i {
    color: var(--os-orange);
    width: 16px;
}

.os-footer-col ul li a {
    transition: var(--os-transition);
}

.os-footer-col ul li a:hover {
    color: var(--os-orange);
    padding-left: 4px;
}

.os-store-badge {
    width: 100%;
    height: 48px;
    border-radius: var(--os-radius-sm);
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    transition: var(--os-transition);
    border: 1px solid rgba(255,255,255,0.15);
}

.os-store-badge:hover {
    background: var(--os-orange);
    border-color: var(--os-orange);
}

.os-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 24px;
    text-align: center;
}

.os-footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ========== PRODUCT DETAIL ========== */
.os-product-detail {
    max-width: 100%;
    margin: 0 auto;
    padding: 32px 32px;
}

.os-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--os-muted);
}

.os-breadcrumb a {
    color: var(--os-blue);
    font-weight: 600;
}

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

.os-breadcrumb i {
    font-size: 12px;
}

.os-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.os-detail-img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--os-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--os-shadow);
}

.os-detail-info h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--os-ink);
    margin-bottom: 12px;
}

.os-detail-price {
    font-size: 32px;
    font-weight: 900;
    color: var(--os-orange);
    margin-bottom: 8px;
}

.os-detail-shop {
    font-size: 16px;
    color: var(--os-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.os-detail-shop i {
    color: var(--os-blue);
}

.os-detail-desc {
    margin-bottom: 32px;
}

.os-detail-desc p {
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
}

.os-detail-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.os-qty-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--os-line);
    border-radius: var(--os-radius-sm);
    overflow: hidden;
}

.os-qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--os-page);
    color: var(--os-ink);
    font-size: 18px;
    font-weight: 700;
    display: grid;
    place-items: center;
    transition: var(--os-transition);
}

.os-qty-btn:hover {
    background: var(--os-blue);
    color: #fff;
}

.os-qty-input {
    width: 56px;
    height: 44px;
    border: none;
    border-left: 2px solid var(--os-line);
    border-right: 2px solid var(--os-line);
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--os-ink);
    outline: none;
    -moz-appearance: textfield;
}

.os-qty-input::-webkit-inner-spin-button,
.os-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.os-add-to-cart-btn {
    height: 52px;
    padding: 0 32px;
    border-radius: var(--os-radius-sm);
    background: var(--os-orange);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--os-transition);
    border: none;
}

.os-add-to-cart-btn:hover {
    background: var(--os-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244,123,32,0.35);
}

.os-wishlist-detail-btn {
    width: 52px;
    height: 52px;
    border-radius: var(--os-radius-sm);
    border: 2px solid var(--os-line);
    background: var(--os-panel);
    color: var(--os-muted);
    font-size: 20px;
    display: grid;
    place-items: center;
    transition: var(--os-transition);
}

.os-wishlist-detail-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background: #fff5f5;
}

.os-whatsapp-detail-btn {
    width: 52px;
    height: 52px;
    border-radius: var(--os-radius-sm);
    border: 2px solid var(--os-line);
    background: var(--os-panel);
    color: #25d366;
    font-size: 24px;
    display: grid;
    place-items: center;
    transition: var(--os-transition);
    text-decoration: none;
}

.os-whatsapp-detail-btn:hover {
    border-color: #25d366;
    color: #fff;
    background: #25d366;
}

/* ========== PRODUCT IMAGE CAROUSEL ========== */
.os-carousel {
    position: relative;
    width: 100%;
    border-radius: var(--os-radius);
    overflow: hidden;
    box-shadow: var(--os-shadow);
}

.os-carousel-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
}

.os-carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.os-carousel-slide.os-carousel-active {
    opacity: 1;
    pointer-events: auto;
}

.os-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: var(--os-ink);
    border: none;
    display: grid;
    place-items: center;
    font-size: 18px;
    cursor: pointer;
    transition: var(--os-transition);
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    opacity: 0;
}

.os-carousel:hover .os-carousel-btn {
    opacity: 1;
}

.os-carousel-prev {
    left: 14px;
}

.os-carousel-next {
    right: 14px;
}

.os-carousel-btn:hover {
    background: var(--os-orange);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

.os-carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.os-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--os-transition);
    border: none;
}

.os-carousel-dot.os-dot-active {
    background: #fff;
    transform: scale(1.25);
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.os-carousel-dot:hover {
    background: rgba(255,255,255,0.8);
}

/* Always show arrows on mobile */
@media (max-width: 768px) {
    .os-carousel-btn {
        opacity: 1;
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .os-carousel-prev { left: 8px; }
    .os-carousel-next { right: 8px; }

    .os-carousel-dots { bottom: 10px; }
    .os-carousel-dot { width: 8px; height: 8px; }
}

.os-carousel-icon-lg {
    font-size: 120px;
    color: #fff;
    opacity: 0.8;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .os-product-grid { grid-template-columns: repeat(3, 1fr); }
    .os-categories { grid-template-columns: repeat(3, 1fr); }
    .os-footer-inner { grid-template-columns: repeat(2, 1fr); }
    .os-hero-content h1 { font-size: 38px; }
}

@media (max-width: 768px) {
    .os-navbar-inner { padding: 0 16px; gap: 12px; }

    .os-nav-actions {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--os-panel);
        padding: 16px;
        border-bottom: 1px solid var(--os-line);
        box-shadow: var(--os-shadow);
        flex-direction: column;
        gap: 8px;
        z-index: 99;
    }

    .os-nav-actions.os-nav-open { display: flex; }

    .os-cat-btn,
    .os-cart-btn,
    .os-login-btn { width: 100%; justify-content: center; height: 46px; }

    .os-mobile-toggle { display: flex; }

    .os-product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .os-categories { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .os-cat-item { padding: 20px 12px; }
    .os-cat-item i { font-size: 24px; }

    .os-hero { padding: 50px 20px; }
    .os-hero-content h1 { font-size: 30px; }
    .os-hero-content p { font-size: 16px; }

    .os-section { padding: 32px 16px; }
    .os-section-header h2 { font-size: 22px; }

    .os-detail-grid { grid-template-columns: 1fr; gap: 24px; }
    .os-detail-info h1 { font-size: 26px; }
    .os-detail-price { font-size: 26px; }

    .os-footer-inner { grid-template-columns: 1fr; gap: 30px; }
    .os-banner { padding: 40px 24px; }
    .os-banner-text h3 { font-size: 24px; }

    .os-search-wrap { max-width: 200px; }

    .os-detail-actions { flex-wrap: wrap; }
    .os-add-to-cart-btn { flex: 1; justify-content: center; }

    .os-whatsapp-btn { top: 10px; left: 10px; bottom: auto; opacity: 1; transform: none; }
    .os-add-cart { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
    .os-product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .os-categories { grid-template-columns: repeat(2, 1fr); }
    .os-product-title { font-size: 13px; }
    .os-product-price { font-size: 15px; }
    .os-product-body { padding: 10px; }
    .os-add-cart { width: 36px; height: 36px; font-size: 14px; bottom: 10px; right: 10px; }
    .os-whatsapp-btn { width: 36px; height: 36px; font-size: 16px; top: 10px; left: 10px; bottom: auto; opacity: 1; transform: none; }

    .os-hero-content h1 { font-size: 26px; }
    .os-navbar-inner { gap: 8px; }
    .os-search-wrap { max-width: 140px; }
    .os-logo { font-size: 20px; }

    .os-add-to-cart-btn { height: 44px; padding: 0 20px; font-size: 14px; }
    .os-wishlist-detail-btn, .os-whatsapp-detail-btn { width: 44px; height: 44px; font-size: 18px; }
}

/* ========== CART SIDEBAR (OFFCANVAS) ========== */

/* Overlay */
.os-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.5);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.os-cart-overlay.os-overlay-show {
    opacity: 1;
    pointer-events: auto;
}

/* Sidebar */
.os-cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: var(--os-panel);
    z-index: 201;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -8px 0 30px rgba(23,32,51,0.15);
}

.os-cart-sidebar.os-cart-open {
    right: 0;
}

/* Header */
.os-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--os-line);
    flex-shrink: 0;
}

.os-cart-header h3 {
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.os-cart-header h3 i {
    color: var(--os-orange);
}

.os-cart-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--os-line);
    background: var(--os-panel);
    font-size: 22px;
    display: grid;
    place-items: center;
    color: var(--os-muted);
    transition: var(--os-transition);
}

.os-cart-close:hover {
    background: #fee;
    color: #e74c3c;
    border-color: #fee;
}

/* Items list (scrollable) */
.os-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

/* Single cart item */
.os-cart-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--os-line);
    position: relative;
}

.os-cart-item:last-child {
    border-bottom: none;
}

.os-cart-item-img {
    width: 64px;
    height: 64px;
    border-radius: var(--os-radius-sm);
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 24px;
}

.os-cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.os-cart-item-info h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.os-cart-item-shop {
    font-size: 12px;
    color: var(--os-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.os-cart-item-shop i {
    color: var(--os-blue);
    font-size: 11px;
}

.os-cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.os-cart-item-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--os-orange);
}

/* Quantity control inside cart */
.os-cart-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--os-line);
    border-radius: 6px;
    overflow: hidden;
}

.os-cart-qty button {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--os-page);
    font-size: 15px;
    font-weight: 700;
    display: grid;
    place-items: center;
    transition: var(--os-transition);
    color: var(--os-ink);
}

.os-cart-qty button:hover {
    background: var(--os-blue);
    color: #fff;
}

.os-cart-qty span {
    width: 32px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--os-ink);
}

/* Remove button */
.os-cart-item-remove {
    position: absolute;
    top: 14px;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--os-muted);
    font-size: 13px;
    display: grid;
    place-items: center;
    transition: var(--os-transition);
}

.os-cart-item-remove:hover {
    color: #e74c3c;
    background: #fff0f0;
}

/* Footer */
.os-cart-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--os-line);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.os-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

.os-cart-total span {
    font-weight: 600;
    color: var(--os-muted);
}

.os-cart-total strong {
    font-size: 22px;
    font-weight: 900;
    color: var(--os-orange);
}

.os-cart-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    border-radius: var(--os-radius-sm);
    background: var(--os-orange);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    transition: var(--os-transition);
    text-decoration: none;
}

.os-cart-checkout-btn:hover {
    background: var(--os-orange-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(244,123,32,0.3);
}

.os-cart-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    border-radius: 10px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    width: 100%;
}

.os-cart-clear-btn:hover {
    background: #fee2e2;
    color: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220,38,38,0.15);
}

/* Empty state */
.os-cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
}

.os-cart-empty i {
    font-size: 64px;
    color: var(--os-line);
    margin-bottom: 16px;
}

.os-cart-empty p {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.os-cart-empty span {
    font-size: 14px;
    color: var(--os-muted);
}

/* Cart count badge on navbar */
#cartCountBadge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--os-orange);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: none;
    place-items: center;
    line-height: 1;
}

/* ========== SHOP BY ID MODAL ========== */

.os-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.55);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.os-modal-box {
    background: var(--os-panel);
    border-radius: 20px;
    padding: 40px 36px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 60px rgba(15,23,42,0.2);
    animation: osModalIn 0.3s ease;
}

@keyframes osModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.os-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--os-line);
    background: var(--os-panel);
    font-size: 20px;
    display: grid;
    place-items: center;
    color: var(--os-muted);
    transition: var(--os-transition);
}

.os-modal-close:hover {
    background: #fee;
    color: #e74c3c;
}

.os-modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--os-orange), var(--os-orange-hover));
    color: #fff;
    font-size: 30px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    box-shadow: 0 8px 20px rgba(244,123,32,0.25);
}

.os-modal-icon-blue {
    background: linear-gradient(135deg, var(--os-blue), #0f3f89);
    box-shadow: 0 8px 20px rgba(21,101,216,0.25);
}

.os-modal-box h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.os-modal-box p {
    font-size: 14px;
    color: var(--os-muted);
    margin-bottom: 20px;
}

.os-modal-input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 2px solid var(--os-line);
    border-radius: var(--os-radius-sm);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: var(--os-transition);
    color: var(--os-ink);
    margin-bottom: 16px;
}

.os-modal-input:focus {
    border-color: var(--os-orange);
    box-shadow: 0 0 0 4px rgba(244,123,32,0.1);
}

.os-modal-btn {
    width: 100%;
    height: 50px;
    border-radius: var(--os-radius-sm);
    background: var(--os-blue);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--os-transition);
    border: none;
}

.os-modal-btn:hover {
    background: var(--os-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(21,101,216,0.3);
}

.os-modal-btn-inline {
    width: auto;
    padding: 0 32px;
    display: inline-flex;
}

.os-modal-btn-orange {
    background: var(--os-orange);
}

.os-modal-btn-orange:hover {
    background: var(--os-orange-hover);
}

.os-modal-btn-muted {
    background: var(--os-muted);
}

.os-modal-btn-muted:hover {
    background: #5a6577;
}

.os-modal-hint {
    display: block;
    margin-top: 14px;
    font-size: 12px;
    color: var(--os-muted);
}

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

.os-checkout-section {
    background: var(--os-page);
    min-height: 60vh;
    padding: 32px 24px 60px;
}

.os-checkout-container {
    max-width: 1100px;
    margin: 0 auto;
}

.os-checkout-title {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 28px;
    color: var(--os-ink);
}

.os-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

/* Checkout cards */
.os-checkout-card {
    background: var(--os-panel);
    border: 1px solid var(--os-line);
    border-radius: var(--os-radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--os-shadow-sm);
}

.os-checkout-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.os-checkout-card h3 i {
    color: var(--os-blue);
}

/* Form fields */
.os-checkout-field {
    margin-bottom: 16px;
}

.os-checkout-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--os-muted);
    margin-bottom: 6px;
}

.os-checkout-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 2px solid var(--os-line);
    border-radius: var(--os-radius-sm);
    font-size: 15px;
    outline: none;
    transition: var(--os-transition);
    color: var(--os-ink);
    background: #fff;
}

.os-checkout-input:focus {
    border-color: var(--os-blue);
    box-shadow: 0 0 0 3px rgba(21,101,216,0.1);
}

.os-checkout-textarea {
    height: auto;
    min-height: 80px;
    padding: 12px 14px;
    resize: vertical;
}

.os-checkout-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Radio buttons */
.os-checkout-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.os-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 2px solid var(--os-line);
    border-radius: var(--os-radius-sm);
    cursor: pointer;
    transition: var(--os-transition);
}

.os-radio-label:hover {
    border-color: var(--os-blue);
}

.os-radio-label input[type="radio"] {
    accent-color: var(--os-blue);
    width: 18px;
    height: 18px;
}

.os-radio-label span {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.os-radio-label span i {
    color: var(--os-orange);
    font-size: 18px;
}

/* Place order button */
.os-place-order-btn {
    width: 100%;
    height: 56px;
    border-radius: var(--os-radius-sm);
    background: linear-gradient(135deg, var(--os-orange), var(--os-orange-hover));
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--os-transition);
    border: none;
    margin-top: 8px;
}

.os-place-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(244,123,32,0.35);
}

/* Order summary (right column) */
.os-checkout-summary {
    position: sticky;
    top: 88px;
}

.os-checkout-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--os-line);
}

.os-checkout-item:last-child {
    border-bottom: none;
}

.os-checkout-item-img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 20px;
}

.os-checkout-item-info {
    flex: 1;
    min-width: 0;
}

.os-checkout-item-info h4 {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.os-checkout-item-shop {
    font-size: 12px;
    color: var(--os-muted);
}

.os-checkout-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    font-size: 13px;
    color: var(--os-muted);
}

.os-checkout-item-price {
    font-weight: 800;
    color: var(--os-orange);
    font-size: 15px;
}

.os-checkout-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid var(--os-line);
    font-size: 16px;
}

.os-checkout-summary-total span {
    font-weight: 700;
}

.os-checkout-summary-total strong {
    font-size: 22px;
    font-weight: 900;
    color: var(--os-orange);
}

.os-checkout-empty {
    text-align: center;
    padding: 30px 0;
}

.os-checkout-empty p {
    margin-bottom: 16px;
    color: var(--os-muted);
}

/* Support card */
.os-checkout-support {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, var(--os-blue), var(--os-blue-dark));
    color: #fff;
    border-color: transparent;
}

.os-checkout-support i {
    font-size: 32px;
    opacity: 0.9;
}

.os-checkout-support strong {
    display: block;
    font-size: 15px;
}

.os-checkout-support p {
    font-size: 13px;
    opacity: 0.85;
    margin: 0;
}

/* ========== RESPONSIVE — CART, CHECKOUT, MODAL ========== */

@media (max-width: 900px) {
    .os-checkout-grid {
        grid-template-columns: 1fr;
    }

    .os-checkout-summary {
        position: static;
    }
}

@media (max-width: 480px) {
    .os-cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .os-cart-header,
    .os-cart-items,
    .os-cart-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .os-checkout-title {
        font-size: 22px;
    }

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

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

    .os-modal-box {
        padding: 28px 20px;
    }
}

/* ========== ONLINE SHOP BUTTON ON LOGIN PAGE ========== */
.os-login-shop-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--os-orange), var(--os-orange-hover));
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(244,123,32,0.35);
    transition: var(--os-transition);
    z-index: 1000;
    border: none;
}

.os-login-shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244,123,32,0.45);
    color: #fff;
}

.os-login-shop-btn i {
    font-size: 16px;
}

@media (max-width: 480px) {
    .os-login-shop-btn {
        top: 12px;
        right: 12px;
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ========== TRACK ORDER BUTTON ========== */
.os-track-btn {
    height: 40px;
    padding: 0 16px;
    border-radius: var(--os-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--os-transition);
    background: transparent;
    color: var(--os-ink);
    border: 1px solid var(--os-line);
}

.os-track-btn:hover {
    background: var(--os-orange);
    color: #fff;
    border-color: var(--os-orange);
}

/* ========== FILTER / SORT BUTTON ========== */
.os-filter-wrap {
    position: relative;
}

.os-filter-btn {
    height: 40px;
    padding: 0 16px;
    border-radius: var(--os-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--os-transition);
    background: var(--os-page);
    color: var(--os-ink);
    border: 1px solid var(--os-line);
}

.os-filter-btn:hover {
    background: var(--os-blue);
    color: #fff;
    border-color: var(--os-blue);
}

.os-sort-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--os-panel);
    border: 1px solid var(--os-line);
    border-radius: var(--os-radius-sm);
    box-shadow: var(--os-shadow);
    min-width: 200px;
    padding: 6px;
    display: none;
    z-index: 50;
    animation: osSortIn 0.2s ease;
}

.os-sort-menu.os-sort-open {
    display: block;
}

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

.os-sort-menu button {
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: var(--os-ink);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--os-transition);
    text-align: left;
}

.os-sort-menu button:hover {
    background: var(--os-page);
    color: var(--os-blue);
}

.os-sort-menu button i {
    width: 18px;
    text-align: center;
    color: var(--os-muted);
}

.os-sort-menu button:hover i {
    color: var(--os-blue);
}

.os-sort-menu button.os-sort-active {
    background: rgba(21,101,216,0.08);
    color: var(--os-blue);
}

.os-sort-menu button.os-sort-active i {
    color: var(--os-blue);
}

@media (max-width: 768px) {
    .os-filter-btn {
        width: 100%;
        justify-content: center;
    }

    .os-sort-menu {
        right: auto;
        left: 0;
        min-width: 100%;
    }
}

/* ========== MOBILE ACTIONS (cart always visible) ========== */
.os-mobile-actions {
    display: none;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.os-mob-cart {
    width: 40px;
    height: 40px;
    border-radius: var(--os-radius-sm);
    background: var(--os-orange);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 18px;
    position: relative;
    border: none;
    transition: var(--os-transition);
}

.os-mob-cart:hover {
    background: var(--os-orange-hover);
    transform: scale(1.05);
}

.os-mob-cart .os-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--os-ink);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: none;
    place-items: center;
    line-height: 1;
}

@media (max-width: 768px) {
    .os-mobile-actions { display: flex; }
}

/* ========== CHECKOUT FORM CLASSES ========== */
.os-checkout-page .os-container {
    max-width: 1100px;
    margin: 0 auto;
}

.os-section-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--os-ink);
    margin-bottom: 6px;
}

.os-section-sub {
    font-size: 15px;
    color: var(--os-muted);
    margin-bottom: 28px;
}

.os-form-card {
    background: var(--os-panel);
    border: 1px solid var(--os-line);
    border-radius: var(--os-radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--os-shadow-sm);
}

.os-form-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.os-form-card h3 i { color: var(--os-blue); }

.os-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.os-form-group {
    margin-bottom: 16px;
}

.os-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--os-muted);
    margin-bottom: 6px;
}

.os-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 2px solid var(--os-line);
    border-radius: var(--os-radius-sm);
    font-size: 15px;
    outline: none;
    transition: var(--os-transition);
    color: var(--os-ink);
    background: #fff;
    font-family: inherit;
}

.os-input:focus {
    border-color: var(--os-blue);
    box-shadow: 0 0 0 3px rgba(21,101,216,0.1);
}

.os-textarea {
    height: auto;
    min-height: 80px;
    padding: 12px 14px;
    resize: vertical;
}

select.os-input {
    appearance: auto;
}

/* Radio buttons in checkout */
.os-radio {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--os-line);
    border-radius: var(--os-radius-sm);
    cursor: pointer;
    transition: var(--os-transition);
    margin-bottom: 10px;
}

.os-radio:hover {
    border-color: var(--os-blue);
}

.os-radio input[type="radio"] {
    accent-color: var(--os-blue);
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.os-radio-mark {
    display: none;
}

.os-radio strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

.os-radio small {
    font-size: 13px;
    color: var(--os-muted);
}

/* ========== CHECKOUT SUMMARY ========== */
.os-checkout-summary {
    background: var(--os-panel);
    border: 1px solid var(--os-line);
    border-radius: var(--os-radius);
    padding: 24px;
    box-shadow: var(--os-shadow-sm);
}

.os-checkout-summary h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--os-line);
}

.os-summary-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--os-line);
    align-items: center;
}

.os-summary-item:last-child {
    border-bottom: none;
}

.os-summary-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 18px;
}

.os-summary-item-info {
    flex: 1;
    min-width: 0;
}

.os-summary-item-info h4 {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.os-summary-item-info span {
    font-size: 12px;
    color: var(--os-muted);
}

.os-summary-item > strong {
    font-size: 15px;
    font-weight: 800;
    color: var(--os-orange);
    white-space: nowrap;
}

.os-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 15px;
}

.os-summary-line span {
    color: var(--os-muted);
    font-weight: 600;
}

.os-summary-line strong {
    font-weight: 800;
}

.os-summary-discount strong {
    color: #27ae60;
}

.os-summary-divider {
    height: 1px;
    background: var(--os-line);
    margin: 6px 0;
}

.os-summary-total {
    font-size: 17px;
    padding: 12px 0 4px;
}

.os-summary-total strong {
    font-size: 22px;
    color: var(--os-orange);
    font-weight: 900;
}

.os-empty-summary {
    text-align: center;
    padding: 30px 0;
    color: var(--os-muted);
    font-size: 14px;
}

/* ========== ALL PRODUCTS PAGE ========== */
.os-all-page {
    padding-top: 32px;
}

.os-all-page .os-section-header {
    margin-bottom: 24px;
}

/* ========== COUPON ========== */
.os-coupon-wrap {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--os-line);
}

.os-coupon-wrap .os-input {
    flex: 1;
    height: 42px;
    font-size: 14px;
    text-transform: uppercase;
}

.os-coupon-btn {
    height: 42px;
    padding: 0 16px;
    border-radius: var(--os-radius-sm);
    background: var(--os-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--os-transition);
    border: none;
    white-space: nowrap;
}

.os-coupon-btn:hover {
    background: var(--os-blue-dark);
}

.os-coupon-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--os-muted);
}

/* ========== INVOICE MODAL ========== */
.os-invoice-box {
    background: var(--os-panel);
    border-radius: 20px;
    padding: 0;
    max-width: 520px;
    width: 100%;
    position: relative;
    box-shadow: 0 30px 60px rgba(15,23,42,0.25);
    animation: osModalIn 0.3s ease;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.os-invoice-box .os-modal-close {
    z-index: 10;
}

#invoiceContent {
    padding: 36px 32px 24px;
}

.os-invoice {
    background: #fff;
}

.os-invoice-head {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px dashed var(--os-line);
}

.os-invoice-head h2 {
    font-size: 28px;
    font-weight: 900;
    color: var(--os-orange);
    margin-bottom: 4px;
}

.os-invoice-head h2 span {
    color: var(--os-blue);
}

.os-invoice-head p {
    font-size: 14px;
    color: var(--os-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.os-invoice-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--os-ink);
}

.os-invoice-meta strong {
    font-weight: 700;
}

.os-badge-processing {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: #fff3e0;
    color: #e67e22;
    font-size: 12px;
    font-weight: 700;
}

.os-invoice-delivery {
    font-size: 13px;
    color: var(--os-muted);
    margin-bottom: 16px;
    padding: 10px 14px;
    background: var(--os-page);
    border-radius: var(--os-radius-sm);
}

.os-invoice-delivery strong {
    color: var(--os-ink);
}

.os-invoice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 16px;
}

.os-invoice-table th {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 2px solid var(--os-ink);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--os-muted);
    font-weight: 700;
}

.os-invoice-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--os-line);
    color: var(--os-ink);
}

.os-invoice-table td:last-child,
.os-invoice-table th:last-child {
    text-align: right;
    font-weight: 700;
}

.os-invoice-table tfoot td {
    border-bottom: none;
    font-weight: 600;
    color: var(--os-muted);
    text-align: right;
}

.os-invoice-table tfoot td:first-child {
    text-align: right;
}

.os-invoice-total td {
    font-size: 16px;
    font-weight: 900 !important;
    color: var(--os-orange) !important;
    border-top: 2px solid var(--os-ink) !important;
    padding-top: 12px !important;
}

.os-invoice-foot {
    text-align: center;
    padding-top: 20px;
    border-top: 2px dashed var(--os-line);
}

.os-invoice-track-note {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid #ffe0c2;
    border-radius: var(--os-radius-sm);
    background: #fff8f1;
    color: var(--os-ink);
}

.os-invoice-track-note strong {
    display: block;
    color: var(--os-orange);
    margin-bottom: 4px;
}

.os-invoice-track-note p {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--os-muted);
    font-weight: 600;
}

.os-invoice-copy-btn {
    border: 0;
    border-radius: 999px;
    background: var(--os-blue);
    color: #fff;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 800;
}

.os-invoice-foot p {
    font-weight: 700;
    color: var(--os-ink);
    margin-bottom: 4px;
}

.os-invoice-foot small {
    font-size: 12px;
    color: var(--os-muted);
}

.os-invoice-actions {
    display: flex;
    gap: 10px;
    padding: 0 32px 24px;
}

.os-invoice-actions .os-modal-btn {
    flex: 1;
}

/* ========== TRACK ORDER PAGE ========== */

/* Track home */
.os-track-hero {
    text-align: center;
    padding: 48px 24px;
    background: var(--os-panel);
    border-radius: var(--os-radius);
    border: 1px solid var(--os-line);
    box-shadow: var(--os-shadow-sm);
    max-width: 560px;
    margin: 0 auto;
}

.os-track-hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--os-orange), var(--os-orange-hover));
    color: #fff;
    font-size: 34px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(244,123,32,0.25);
}

.os-track-hero h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.os-track-hero p {
    font-size: 14px;
    color: var(--os-muted);
    margin-bottom: 24px;
}

.os-track-search {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.os-track-search .os-input {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.os-track-search-btn {
    height: 46px;
    padding: 0 24px;
    border-radius: var(--os-radius-sm);
    background: var(--os-orange);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--os-transition);
    border: none;
    white-space: nowrap;
}

.os-track-search-btn:hover {
    background: var(--os-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(244,123,32,0.3);
}

.os-track-hero small {
    display: block;
    margin-top: 16px;
    font-size: 12px;
    color: var(--os-muted);
}

/* Track status card */
.os-track-status-card {
    background: var(--os-panel);
    border: 1px solid var(--os-line);
    border-radius: var(--os-radius);
    padding: 32px;
    box-shadow: var(--os-shadow-sm);
    max-width: 720px;
    margin: 0 auto;
}

.os-track-status-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--os-line);
}

.os-track-status-header h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.os-track-status-header h2 span {
    color: var(--os-blue);
}

.os-track-status-header p {
    font-size: 14px;
    color: var(--os-muted);
}

.os-track-badge {
    padding: 6px 16px;
    border-radius: 999px;
    background: #fff3e0;
    color: #e67e22;
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
}

/* Progress steps */
.os-track-progress {
    position: relative;
    padding-left: 48px;
    margin-bottom: 32px;
}

.os-track-progress::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--os-line);
}

.os-track-step {
    display: flex;
    gap: 16px;
    padding-bottom: 28px;
    position: relative;
}

.os-track-step:last-child {
    padding-bottom: 0;
}

.os-track-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--os-page);
    border: 2px solid var(--os-line);
    color: var(--os-muted);
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: var(--os-transition);
}

.os-track-step-active .os-track-step-icon {
    background: var(--os-blue);
    border-color: var(--os-blue);
    color: #fff;
    box-shadow: 0 4px 12px rgba(21,101,216,0.3);
}

.os-track-step-current .os-track-step-icon {
    background: var(--os-orange);
    border-color: var(--os-orange);
    color: #fff;
    box-shadow: 0 4px 12px rgba(244,123,32,0.3);
    animation: osPulse 2s infinite;
}

@keyframes osPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(244,123,32,0.3); }
    50% { box-shadow: 0 4px 24px rgba(244,123,32,0.5); }
}

.os-track-step-info strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: var(--os-ink);
    margin-bottom: 2px;
}

.os-track-step-info span {
    display: block;
    font-size: 13px;
    color: var(--os-muted);
    margin-bottom: 2px;
}

.os-track-step-info small {
    font-size: 12px;
    color: var(--os-muted);
}

.os-track-step:not(.os-track-step-active):not(.os-track-step-current) .os-track-step-info strong {
    color: var(--os-muted);
}

/* Order details on track page */
.os-track-order-details {
    background: var(--os-page);
    border-radius: var(--os-radius-sm);
    padding: 20px;
    margin-bottom: 20px;
}

.os-track-order-details h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
}

.os-track-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.os-track-detail-grid strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--os-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.os-track-detail-grid span {
    font-size: 14px;
    font-weight: 600;
    color: var(--os-ink);
}

/* Help section */
.os-track-help {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--os-blue), #0f3f89);
    border-radius: var(--os-radius-sm);
    color: #fff;
}

.os-track-help i {
    font-size: 36px;
    opacity: 0.9;
}

.os-track-help strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.os-track-help p {
    font-size: 13px;
    opacity: 0.85;
    margin: 0;
}

.os-track-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* ========== RESPONSIVE — ALL ADDITIONS ========== */

@media (max-width: 768px) {
    /* Categories horizontal scroll */
    .os-categories {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .os-categories::-webkit-scrollbar {
        height: 4px;
    }

    .os-categories::-webkit-scrollbar-thumb {
        background: var(--os-line);
        border-radius: 4px;
    }

    .os-cat-item {
        flex: 0 0 120px;
        scroll-snap-align: start;
        padding: 16px 12px;
    }

    .os-cat-item i {
        font-size: 24px;
    }

    .os-cat-item span {
        font-size: 12px;
    }

    /* Always show add-to-cart button on mobile */
    .os-add-cart {
        opacity: 1;
        transform: translateY(0);
        bottom: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    /* Summary grid single column */
    .os-form-row {
        grid-template-columns: 1fr;
    }

    .os-track-detail-grid {
        grid-template-columns: 1fr;
    }

    .os-track-status-card {
        padding: 20px;
    }

    .os-track-status-header {
        flex-direction: column;
        gap: 12px;
    }

    .os-invoice-box {
        margin: 10px;
        border-radius: 14px;
    }

    #invoiceContent {
        padding: 24px 20px 16px;
    }

    .os-invoice-actions {
        padding: 0 20px 20px;
        flex-direction: column;
    }

    .os-track-search {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .os-track-step {
        gap: 12px;
        padding-bottom: 20px;
    }

    .os-track-progress {
        padding-left: 36px;
    }

    .os-track-progress::before {
        left: 17px;
    }

    .os-track-step-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .os-track-step-info strong {
        font-size: 14px;
    }

    .os-invoice-meta {
        flex-direction: column;
        gap: 8px;
    }

    .os-invoice-head h2 {
        font-size: 22px;
    }
}

/* ========== ONLINE SHOP ADMIN ========== */
.os-admin-body {
    background: #f0f2f5;
    line-height: 1.5;
}

.os-admin-wrap {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.os-admin-sidebar {
    width: 250px;
    background: #fff;
    color: #172033;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #e5eaf2;
}

.os-admin-brand {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e5eaf2;
}

.os-admin-brand:empty {
    display: none;
}

.os-admin-brand .os-logo {
    font-size: 22px;
    color: var(--os-orange);
}

.os-admin-brand .os-logo span {
    color: #172033;
}

.os-admin-badge {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--os-orange);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
}

.os-admin-nav {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.os-admin-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
    text-decoration: none;
}

.os-admin-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: #475569;
}

.os-admin-link:hover {
    background: #eef2ff;
    color: #4338ca;
}

.os-admin-link:hover i {
    color: #4338ca;
}

.os-admin-link.os-admin-active {
    background: #eef2ff;
    color: #4338ca;
    font-weight: 700;
}

.os-admin-link.os-admin-active i {
    color: #4338ca;
}

.os-admin-nav-bottom {
    padding: 12px;
    border-top: 1px solid #e5eaf2;
}

/* Main content */
.os-admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.os-admin-header {
    background: #fff;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5eaf2;
    position: sticky;
    top: 0;
    z-index: 10;
}

.os-admin-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.os-admin-header-left h2 {
    font-size: 20px;
    font-weight: 800;
    color: #172033;
    margin: 0;
}

.os-admin-toggle-sidebar {
    display: none;
    width: 36px;
    height: 36px;
    border: 1px solid #e5eaf2;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    font-size: 16px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.os-admin-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.os-admin-date {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

/* Content area */
.os-admin-content {
    padding: 28px;
    flex: 1;
}

/* Stats cards */
.os-admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.os-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 2px 8px rgba(23,32,51,0.05);
    border-left: 4px solid transparent;
}

.os-stat-blue { border-left-color: #1565d8; }
.os-stat-green { border-left-color: #27ae60; }
.os-stat-orange { border-left-color: #f47b20; }
.os-stat-red { border-left-color: #e74c3c; }

.os-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}

.os-stat-blue .os-stat-icon { background: linear-gradient(135deg, #1565d8, #1e7ae5); }
.os-stat-green .os-stat-icon { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.os-stat-orange .os-stat-icon { background: linear-gradient(135deg, #f47b20, #f5a623); }
.os-stat-red .os-stat-icon { background: linear-gradient(135deg, #e74c3c, #ef5350); }

.os-stat-info {
    flex: 1;
    min-width: 0;
}

.os-stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.os-stat-value {
    font-size: 24px;
    font-weight: 900;
    color: #172033;
    display: block;
}

.os-stat-change {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-top: 4px;
    display: block;
}

.os-stat-change.up {
    color: #27ae60;
}

/* Admin grid */
.os-admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* Panels */
.os-admin-panel {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(23,32,51,0.05);
    overflow: hidden;
}

.os-admin-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #e5eaf2;
}

.os-admin-panel-head h3 {
    font-size: 16px;
    font-weight: 800;
    color: #172033;
    margin: 0;
}

.os-admin-panel-link {
    font-size: 13px;
    font-weight: 700;
    color: #1565d8;
    text-decoration: none;
    transition: 0.2s;
}

.os-admin-panel-link:hover {
    color: #f47b20;
}

.os-admin-panel-body {
    padding: 6px 0;
}

/* Table */
.os-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.os-admin-table th {
    text-align: left;
    padding: 12px 22px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5eaf2;
    white-space: nowrap;
}

.os-admin-table td {
    padding: 12px 22px;
    color: #172033;
    border-bottom: 1px solid #f0f2f5;
}

.os-admin-table tbody tr:hover {
    background: #f8f9fc;
}

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

/* Badges */
.os-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.os-badge-pending {
    background: #fff3e0;
    color: #e67e22;
}

.os-badge-success {
    background: #e8f5e9;
    color: #27ae60;
}

.os-badge-danger {
    background: #ffebee;
    color: #e74c3c;
}

.os-badge-info {
    background: #e3f2fd;
    color: #1565d8;
}

/* Code tag */
.os-admin-code {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    background: #f0f2f5;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Action buttons */
.os-admin-action-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e5eaf2;
    border-radius: 6px;
    background: #fff;
    color: #64748b;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    margin-right: 4px;
}

.os-admin-action-btn:hover {
    background: #1565d8;
    color: #fff;
    border-color: #1565d8;
}

/* Header button */
.os-admin-btn {
    height: 38px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s;
    border: none;
}

.os-admin-btn-primary {
    background: #1565d8;
    color: #fff;
}

.os-admin-btn-primary:hover {
    background: #0f3f89;
}

/* Select filter */
.os-admin-select {
    height: 38px;
    padding: 0 14px;
    border: 1px solid #e5eaf2;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #172033;
    background: #fff;
    cursor: pointer;
    outline: none;
}

.os-admin-select[type="date"] {
    min-width: 150px;
    cursor: default;
    font-weight: 500;
}

.os-admin-order-filters {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.os-admin-order-filters-inner {
    display: flex;
    gap: 10px;
    align-items: center;
}

.os-admin-order-filters-inner .os-admin-select,
.os-admin-order-filters-inner .os-admin-btn {
    flex: 0 0 auto;
}

/* Table wrapper for scrolling */
.os-admin-table-wrap {
    overflow-x: auto;
}

/* Chart bar */
.os-chart-bar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 20px 22px;
    height: 220px;
}

.os-chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
}

.os-chart-bar-wrap {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.os-chart-bar-fill {
    width: 60%;
    border-radius: 6px 6px 0 0;
    min-height: 4px;
    transition: 0.4s ease;
}

.os-chart-val {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}

.os-chart-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

/* Report progress bars */
.os-report-list {
    padding: 16px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.os-report-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.os-report-label {
    font-size: 13px;
    font-weight: 700;
    color: #172033;
    width: 100px;
    flex-shrink: 0;
}

.os-report-bar {
    flex: 1;
    height: 10px;
    background: #f0f2f5;
    border-radius: 999px;
    overflow: hidden;
}

.os-report-fill {
    height: 100%;
    border-radius: 999px;
    transition: 0.6s ease;
}

.os-report-val {
    font-size: 13px;
    font-weight: 800;
    color: #172033;
    width: 44px;
    text-align: right;
}

/* ========== ADMIN RESPONSIVE ========== */
@media (max-width: 1200px) {
    .os-admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .os-admin-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .os-admin-sidebar {
        position: fixed;
        left: -260px;
        z-index: 100;
        transition: left 0.3s ease;
    }

    .os-admin-sidebar.os-admin-sidebar-open {
        left: 0;
    }

    .os-admin-toggle-sidebar {
        display: flex;
    }

    .os-admin-header {
        padding: 12px 16px;
    }

    .os-admin-content {
        padding: 16px;
    }

    .os-admin-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .os-admin-panel-head {
        padding: 14px 16px;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .os-admin-order-filters {
        width: 100%;
    }

    .os-admin-order-filters-inner .os-admin-select,
    .os-admin-order-filters-inner .os-admin-btn {
        flex: 0 0 auto;
    }

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

    .os-chart-bar {
        padding: 12px 14px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .os-stat-card {
        padding: 16px;
        gap: 12px;
    }

    .os-stat-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .os-stat-value {
        font-size: 18px;
    }

    .os-admin-header-left h2 {
        font-size: 16px;
    }
}

/* ========== ADMIN MODAL OVERRIDES (from inline styles) ========== */
#onlineShopModal .modal-content {
    border: none !important;
    border-radius: 0 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}
#onlineShopModal .modal-body.os-admin-modal-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
}
#onlineShopModal .modal-body.os-admin-modal-body .os-admin-sidebar {
    position: relative;
    height: 100%;
    width: 250px;
    flex-shrink: 0;
    background: #fff;
}
#onlineShopModal .modal-body.os-admin-modal-body .os-admin-main {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}
#onlineShopModal .modal-body.os-admin-modal-body .os-admin-content {
    flex: 1;
    overflow-y: auto;
}
#onlineShopModal .modal-body.os-admin-modal-body .os-admin-header {
    flex-shrink: 0;
}
#onlineShopModal .modal-header.os-admin-modal-header {
    background: #fff !important;
    color: #172033 !important;
    border-bottom: 1px solid #e5eaf2 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.os-admin-close-btn {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--os-blue, #1565d8);
    background: transparent;
    color: var(--os-blue, #1565d8);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
}
.os-admin-close-btn:hover {
    background: var(--os-blue, #1565d8);
    color: #fff;
}
.os-admin-modal-title {
    font-size: 18px;
    font-weight: 800;
    color: #172033;
    margin: 0;
    text-align: center;
}
#onlineShopModal .modal-header.os-admin-modal-header .os-admin-header-left h2 {
    color: #172033 !important;
    font-size: 18px;
}
.os-admin-toggle-sidebar-btn {
    position: absolute;
    left: 64px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}
.os-admin-header-right {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}
.os-admin-modal-header-centered {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-bottom: 1px solid #e5eaf2;
}
.os-admin-header-label {
    font-size: 14px;
}
.os-admin-select-auto {
    width: auto;
}
.os-modal-body-page {
    background: var(--os-page, #f5f7fb);
}
.os-empty-state-icon {
    font-size: 56px;
    color: var(--os-line, #e5eaf2);
    margin-bottom: 16px;
}
.os-spinner-lg {
    width: 2.5rem;
    height: 2.5rem;
}
.os-panel-overflow {
    overflow: hidden;
}
.os-table-scroll {
    overflow-x: auto;
}
.os-th-check {
    width: 40px;
}
.os-hide {
    display: none;
}
.os-category-icon-box {
    width: 56px;
    height: 56px;
    border: 2px dashed #d0d5dd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #98a2b3;
    background: #f9fafb;
    flex-shrink: 0;
}
.os-file-hidden {
    display: none;
}
.os-truncate-cell {
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Photo upload slots */

/* Invoice areas */
#viewOrderAdminModal #adminInvoiceArea {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
}
#viewOrderAdminModal .os-admin-invoice {
    background: #fff;
    border: 1px solid var(--os-line, #e5eaf2);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}
#viewOrderAdminModal .os-admin-invoice h4 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 16px;
    color: #172033;
}
#viewOrderAdminModal .os-admin-invoice .os-invoice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
#viewOrderAdminModal .os-admin-invoice .os-invoice-table th {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 2px solid #e5eaf2;
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
}
#viewOrderAdminModal .os-admin-invoice .os-invoice-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f2f5;
    color: #172033;
}
#viewOrderAdminModal .os-admin-invoice .os-invoice-table tfoot td {
    font-weight: 600;
    border-bottom: none;
    padding-top: 10px;
}
#viewOrderAdminModal .os-admin-invoice .os-invoice-total td {
    font-size: 15px;
    font-weight: 800;
    color: #f47b20;
    border-top: 2px solid #e5eaf2;
    padding-top: 10px;
}
/* Sub-modal widths */
#viewOrderAdminModal .modal-dialog,
#addCouponModal .modal-dialog,
#addCategoryAdminModal .modal-dialog,
#addDeliveryModal .modal-dialog,
#addPaymentAdminModal .modal-dialog,
#changeStatusAdminModal .modal-dialog,
#addShopAdminModal .modal-dialog { max-width: 560px; }
/* Admin stat cards */
#onlineShopModal .os-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
/* Chart bar fills */
.os-chart-bar-fill {
    border-radius: 0 0 4px 4px;
    transition: height 0.3s ease;
}

/* Mobile styles */
@media (max-width: 768px) {
    .os-admin-close-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
        left: 12px;
    }
    .os-admin-modal-title {
        font-size: 15px;
    }
    #onlineShopModal .modal-body.os-admin-modal-body .os-admin-sidebar {
        position: fixed !important;
        left: -260px !important;
        top: 0 !important;
        height: 100vh !important;
        z-index: 100;
        transition: left 0.3s ease;
        width: 250px;
    }
    #onlineShopModal .modal-body.os-admin-modal-body .os-admin-sidebar.os-admin-sidebar-open {
        left: 0 !important;
    }
    #onlineShopModal .modal-header.os-admin-modal-header .os-admin-header-left h2 {
        font-size: 15px;
    }
    #onlineShopModal .os-admin-content {
        padding: 16px;
    }
    #onlineShopModal .os-admin-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    #onlineShopModal .os-admin-toggle-sidebar {
        display: inline-flex !important;
    }
    #onlineShopModal .os-admin-panel-head {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    #onlineShopModal .os-admin-order-filters {
        width: 100%;
    }
    #onlineShopModal .os-admin-order-filters-inner .os-admin-select,
    #onlineShopModal .os-admin-order-filters-inner .os-admin-btn {
        flex-shrink: 0;
    }
    #onlineShopModal .os-admin-stats {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 12px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    #onlineShopModal .os-admin-stats .os-stat-card {
        min-width: 200px !important;
        flex-shrink: 0 !important;
    }
    #onlineShopModal .os-admin-sidebar-overlay {
        display: block;
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 99;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    #onlineShopModal .os-admin-sidebar-overlay.show {
        opacity: 1;
        pointer-events: auto;
    }
}
/* Tab content */
.admin-tab-content {
    display: block;
}
.admin-tab-content.os-hide {
    display: none;
}
/* OS admin link sm */
.os-admin-link-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}
.os-admin-link-sm:hover {
    background: #f0f4f8;
    color: #1565d8;
}
/* Image preview */
.os-img-preview {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}
