/* ==========================================================================
   ITD Web Shop — Premium Store Styling
   Brand: Navy (#0B2685, #1456C8) + Gold (#F59E0B, #D97706)
   Mobile-First Architecture
   ========================================================================== */

:root {
    --shop-navy-dark: #081B5E;
    --shop-navy-primary: #0B2685;
    --shop-navy-light: #1456C8;
    --shop-navy-glow: rgba(20, 86, 200, 0.15);
    --shop-gold: #F59E0B;
    --shop-gold-hover: #D97706;
    --shop-gold-light: #FEF3C7;
    --shop-gold-text: #92400E;
    --shop-text-dark: #0F172A;
    --shop-text-muted: #64748B;
    --shop-border: #E2E8F0;
    --shop-surface: #FFFFFF;
    --shop-bg: #F8FAFC;
    --shop-radius: 14px;
    --shop-radius-sm: 8px;
    --shop-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shop-shadow-md: 0 8px 20px rgba(11, 38, 133, 0.08);
    --shop-shadow-lg: 0 16px 32px rgba(11, 38, 133, 0.12);
}

/* --------------------------------------------------------------------------
   General Shop Utilities & Resets
   -------------------------------------------------------------------------- */
.cursor-pointer { cursor: pointer; }
.font-11 { font-size: 11px !important; }
.font-12 { font-size: 12px !important; }
.font-13 { font-size: 13px !important; }
.font-14 { font-size: 14px !important; }
.font-15 { font-size: 15px !important; }
.font-16 { font-size: 16px !important; }
.font-18 { font-size: 18px !important; }
.font-20 { font-size: 20px !important; }
.font-22 { font-size: 22px !important; }
.font-24 { font-size: 24px !important; }

.font-weight-600 { font-weight: 600 !important; }
.font-weight-700 { font-weight: 700 !important; }
.font-weight-800 { font-weight: 800 !important; }

.rounded-10 { border-radius: 10px !important; }
.rounded-12 { border-radius: 12px !important; }
.rounded-14 { border-radius: 14px !important; }
.rounded-16 { border-radius: 16px !important; }
.rounded-20 { border-radius: 20px !important; }

/* --------------------------------------------------------------------------
   Hero Banner (Slim & Premium)
   -------------------------------------------------------------------------- */
.shop-hero-banner {
    position: relative;
    border-radius: 18px;
    background: linear-gradient(135deg, #07194E 0%, #0B2685 45%, #1456C8 100%);
    color: #ffffff;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(11, 38, 133, 0.18);
}
.shop-hero-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0) 70%);
    pointer-events: none;
    border-radius: 50%;
}
.shop-hero-content {
    position: relative;
    z-index: 2;
    padding: 24px 28px;
}
.shop-hero-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
}
.shop-hero-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-top: 8px;
    margin-bottom: 6px;
    color: #ffffff;
}
.shop-hero-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0;
    max-width: 520px;
    line-height: 1.5;
}
.shop-hero-btn {
    background: #ffffff;
    color: var(--shop-navy-primary) !important;
    font-weight: 700;
    font-size: 13px;
    border-radius: 12px;
    padding: 8px 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
@media (max-width: 575.98px) {
    .shop-hero-btn {
        padding: 8px 12px;
        border-radius: 10px;
    }
}
.shop-hero-btn:hover {
    background: #FEF3C7;
    color: var(--shop-gold-hover) !important;
    transform: translateY(-1px);
}

@media (min-width: 768px) {
    .shop-hero-content {
        padding: 32px 36px;
    }
    .shop-hero-title {
        font-size: 26px;
    }
    .shop-hero-subtitle {
        font-size: 14px;
    }
}

/* --------------------------------------------------------------------------
   Sticky Category & Filter Controls
   -------------------------------------------------------------------------- */
.shop-filter-bar {
    position: sticky;
    top: 68px;
    z-index: 95;
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 0 14px 0;
    margin-bottom: 12px;
}
.cat-chips-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
}
.cat-chips-scroll::-webkit-scrollbar {
    display: none;
}
.cat-pill {
    background: #ffffff;
    border: 1px solid var(--shop-border);
    color: #475569;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shop-shadow-sm);
    cursor: pointer;
    border-style: solid;
}
.cat-pill:hover {
    background: #f1f5f9;
    color: var(--shop-navy-light);
    border-color: #cbd5e1;
}
.cat-pill.active {
    background: linear-gradient(135deg, var(--shop-navy-primary) 0%, var(--shop-navy-light) 100%) !important;
    border-color: var(--shop-navy-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(20, 86, 200, 0.28);
}

.shop-search-box {
    position: relative;
    min-width: 220px;
}
.shop-search-input {
    border-radius: 20px !important;
    border: 1px solid var(--shop-border) !important;
    background: #ffffff !important;
    padding-left: 36px !important;
    font-size: 13px !important;
    height: 38px !important;
    box-shadow: var(--shop-shadow-sm);
    transition: all 0.2s ease;
}
.shop-search-input:focus {
    border-color: var(--shop-navy-light) !important;
    box-shadow: 0 0 0 3px var(--shop-navy-glow) !important;
}
.shop-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
    pointer-events: none;
    z-index: 4;
}

/* --------------------------------------------------------------------------
   Product Cards & Grid (2-col Mobile / 4-col Desktop)
   -------------------------------------------------------------------------- */
.prod-card-col {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 16px;
}
@media (min-width: 768px) {
    .prod-card-col {
        padding-left: 12px;
        padding-right: 12px;
        margin-bottom: 24px;
    }
}

.prod-card {
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    background: var(--shop-surface);
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shop-shadow-sm);
}
.prod-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shop-shadow-md);
    border-color: #cbd5e1;
}

/* 1:1 Square Image Container */
.prod-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Square */
    background: radial-gradient(circle, #f8fafc 40%, #edf2f7 100%);
    overflow: hidden;
    display: block;
}
.prod-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.3s ease;
}
.prod-card:hover .prod-img-wrap img {
    transform: scale(1.04);
}

.prod-badge-featured {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.prod-badge-out {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(220, 38, 38, 0.92);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 6px;
    z-index: 3;
    backdrop-filter: blur(2px);
    white-space: nowrap;
}
/* When both Featured and Out of Stock exist on mobile cards, stack them to prevent any overlap */
@media (max-width: 575.98px) {
    .prod-card .prod-badge-featured + .prod-badge-out {
        top: 32px;
        left: 8px;
        right: auto;
    }
}

.prod-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}
@media (min-width: 768px) {
    .prod-body {
        padding: 14px 16px;
    }
}

.prod-title {
    font-weight: 700;
    color: var(--shop-text-dark);
    font-size: 13.5px;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}
.prod-title a {
    color: var(--shop-text-dark);
    text-decoration: none;
    transition: color 0.15s ease;
}
.prod-title a:hover {
    color: var(--shop-navy-light);
}

.prod-desc {
    font-size: 11.5px;
    color: var(--shop-text-muted);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prod-footer {
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.prod-price {
    font-weight: 800;
    color: var(--shop-navy-primary);
    font-size: 15px;
}
.prod-compare {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 3px;
    font-weight: normal;
}
.prod-action-btn {
    background: #f8fafc;
    border: 1px solid var(--shop-border);
    color: var(--shop-navy-primary);
    font-weight: 700;
    font-size: 11.5px;
    padding: 5px 11px;
    border-radius: 8px;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.prod-action-btn:hover {
    background: var(--shop-navy-primary);
    border-color: var(--shop-navy-primary);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(11, 38, 133, 0.25);
}

/* --------------------------------------------------------------------------
   Skeleton Shimmer Loaders
   -------------------------------------------------------------------------- */
.skeleton-box {
    background: #e2e8f0;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite ease-in-out;
    border-radius: 6px;
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-card {
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    background: #ffffff;
    overflow: hidden;
    padding: 12px;
    height: 100%;
}
.skeleton-img {
    width: 100%;
    padding-top: 100%;
    border-radius: 10px;
    margin-bottom: 12px;
}
.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    border-radius: 4px;
}
.skeleton-text.short {
    width: 60%;
}
.skeleton-btn {
    height: 30px;
    border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Product Detail Page
   -------------------------------------------------------------------------- */
.product-gallery-wrap {
    background: #ffffff;
    border: 1px solid var(--shop-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shop-shadow-sm);
    margin-bottom: 16px;
}
.product-main-view {
    position: relative;
    width: 100%;
    padding-top: 90%;
    background: radial-gradient(circle, #ffffff 50%, #f8fafc 100%);
}
.product-main-view img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
    transition: opacity 0.2s ease;
}

.gallery-thumbs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.gallery-thumb {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    border: 2px solid var(--shop-border);
    object-fit: cover;
    cursor: pointer;
    padding: 3px;
    background: #ffffff;
    transition: all 0.2s ease;
}
.gallery-thumb:hover, .gallery-thumb.active {
    border-color: var(--shop-navy-light);
    box-shadow: 0 3px 8px rgba(20, 86, 200, 0.25);
    transform: translateY(-2px);
}

.product-info-card {
    background: #ffffff;
    border: 1px solid var(--shop-border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shop-shadow-sm);
}

.stepper-btn {
    background: #ffffff;
    border: 1px solid var(--shop-border);
    color: var(--shop-text-dark);
    font-weight: 700;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.15s ease;
}
.stepper-btn:hover {
    background: #f1f5f9;
    color: var(--shop-navy-light);
}
.stepper-input {
    width: 54px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--shop-border);
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    color: var(--shop-text-dark);
}

.btn-add-cart-primary {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 15px;
    border-radius: 12px;
    padding: 10px 24px;
    border: none;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-add-cart-primary:hover {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.4);
}

/* Sticky Mobile Add To Cart Bar */
.mobile-sticky-action-bar {
    display: none;
}
@media (max-width: 767.98px) {
    .mobile-sticky-action-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1040;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid var(--shop-border);
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    }
    body.has-mobile-shop-bar {
        padding-bottom: 74px !important;
    }
}

/* --------------------------------------------------------------------------
   Cart & Checkout Pages
   -------------------------------------------------------------------------- */
.cart-card-summary, .checkout-card-summary {
    background: #ffffff;
    border: 1px solid var(--shop-border);
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--shop-shadow-sm);
}

.payment-method-card {
    border: 1.5px solid var(--shop-border);
    border-radius: 14px;
    padding: 16px;
    background: #ffffff;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 12px;
}
.payment-method-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.payment-method-card.selected-pay {
    border-color: var(--shop-navy-light) !important;
    background: #f0f4ff !important;
    box-shadow: 0 3px 10px rgba(20, 86, 200, 0.12);
}

/* Mobile Sticky Checkout Total Bar */
@media (max-width: 767.98px) {
    .mobile-sticky-checkout-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1040;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid var(--shop-border);
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
}

/* --------------------------------------------------------------------------
   Order Timeline & Badges
   -------------------------------------------------------------------------- */
.pay-badge-0 { background: #FEF3C7; color: #92400E; }
.pay-badge-1 { background: #DCFCE7; color: #166534; }
.pay-badge-2 { background: #FEE2E2; color: #991B1B; }
.pay-badge-3 { background: #E0E7FF; color: #3730A3; }

.status-badge-pending_payment { background: #FEF3C7; color: #92400E; }
.status-badge-placed { background: #DBEAFE; color: #1E40AF; }
.status-badge-processing { background: #E0E7FF; color: #3730A3; }
.status-badge-shipped { background: #F3E8FF; color: #6B21A8; }
.status-badge-delivered { background: #DCFCE7; color: #166534; }
.status-badge-cancelled { background: #FEE2E2; color: #991B1B; }

.order-timeline-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin: 24px 0 16px 0;
}
.order-timeline-stepper::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 24px;
    right: 24px;
    height: 3px;
    background: #E2E8F0;
    z-index: 1;
}
.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    background: transparent;
}
.timeline-step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 2.5px solid #CBD5E1;
    color: #94A3B8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    transition: all 0.25s ease;
}
.timeline-step.completed .timeline-step-circle {
    background: var(--shop-navy-light);
    border-color: var(--shop-navy-light);
    color: #ffffff;
}
.timeline-step.active .timeline-step-circle {
    background: var(--shop-gold);
    border-color: var(--shop-gold);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.22);
}
.timeline-step.cancelled .timeline-step-circle {
    background: #DC2626;
    border-color: #DC2626;
    color: #ffffff;
}
.timeline-step-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--shop-text-muted);
}
.timeline-step.completed .timeline-step-label,
.timeline-step.active .timeline-step-label {
    color: var(--shop-text-dark);
}
