/* ============================================================
   GLOBAL UI — Extends the Cart card aesthetic to entire site
   Design System: Soft shadows · Rounded 16px cards · Pill buttons
   ============================================================ */

/* ===== GLOBAL RESETS & BACKGROUND ===== */
body {
    background: #f7f8fa;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

.wrapper {
    background: #f7f8fa;
}

/* All section backgrounds — do NOT use !important so inline styles on CTA win */
.section, section {
    background: transparent;
}

/* Protect dark/gradient sections: any section with inline background keeps its text visible */
section[style*="background: linear-gradient"],
section[style*="background:linear-gradient"] {
    color: #fff !important;
}

section[style*="background: linear-gradient"] h2,
section[style*="background: linear-gradient"] h3,
section[style*="background: linear-gradient"] p,
section[style*="background: linear-gradient"] a:not(.btn),
section[style*="background:linear-gradient"] h2,
section[style*="background:linear-gradient"] p {
    color: #fff !important;
    opacity: 1 !important;
}

/* ===== GLOBAL CARD MIXIN ===== */
.card-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #eee;
}

/* ===== GLOBAL BUTTONS ===== */
.btn, button.btn {
    border-radius: 50px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.btn-primary, button.btn-primary {
    background: linear-gradient(135deg, #ff6b00, #e05500) !important;
    box-shadow: 0 6px 18px rgba(255,107,0,0.2) !important;
    border: none !important;
    color: #fff !important;
}

.btn-primary:hover, button.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px rgba(255,107,0,0.3) !important;
}

.btn-outline, button.btn-outline {
    border-radius: 50px !important;
    border: 2px solid #e0e0e0 !important;
    background: #fff !important;
    color: #1a1a2e !important;
}

.btn-outline:hover {
    border-color: #ff6b00 !important;
    color: #ff6b00 !important;
}

/* ===== GLOBAL INPUTS ===== */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="password"],
textarea,
select {
    border-radius: 12px !important;
    border: 1.5px solid #eee !important;
    background: #f9f9fb !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    transition: border-color 0.2s !important;
    outline: none !important;
}

input:focus, textarea:focus, select:focus {
    border-color: #ff6b00 !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(255,107,0,0.06) !important;
}

/* ===== HEADER ===== */
.header {
    background: #fff !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05) !important;
}

.header-main {
    padding: 14px 0 !important;
}

.header-main .search-form input {
    border-radius: 50px 0 0 50px !important;
    border-right: none !important;
    background: #f5f5f7 !important;
}

.header-main .search-form button {
    border-radius: 0 50px 50px 0 !important;
}

/* Nav links */
.nav-main a {
    border-radius: 8px;
    padding: 6px 14px !important;
    transition: background 0.15s, color 0.15s;
}

.nav-main a:hover {
    background: rgba(255,107,0,0.07);
    color: #ff6b00 !important;
}

/* Cart / Wishlist icon buttons in header */
.header-action a, .header-action button {
    border-radius: 50% !important;
    transition: background 0.2s;
}

.header-action a:hover, .header-action button:hover {
    background: #f5f5f7;
}

/* ===== PAGE BANNER ===== */
.page-banner {
    border-radius: 0 !important;
    overflow: hidden;
    margin-bottom: 30px;
}

.breadcrumbs-container, .breadcrumbs {
    background: #fff;
    border-radius: 12px;
    padding: 12px 24px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 24px;
    border: 1px solid #eee;
}

/* ===== PRODUCT CARDS (Shop & Home) ===== */
.product-card {
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
    border: 1px solid #eee !important;
    overflow: hidden;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.product-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 14px 35px rgba(0,0,0,0.09) !important;
    border-color: rgba(255,107,0,0.2) !important;
}

.product-card .product-content {
    padding: 14px 16px 16px;
}

.product-card .product-title a {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 14px;
    line-height: 1.4;
}

.product-card .product-title a:hover { color: #ff6b00; }

.product-card .price-current {
    color: #ff6b00 !important;
    font-weight: 800 !important;
}

.product-card .add-to-cart {
    border-radius: 50px !important;
    width: 100%;
    padding: 11px 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    margin-top: 10px;
    background: linear-gradient(135deg, #ff6b00, #e05500) !important;
    color: #fff !important;
    border: none !important;
}

.product-card .add-to-cart:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255,107,0,0.25) !important;
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail {
    padding: 40px 0 60px !important;
}

@media (min-width: 993px) {
    .product-detail-grid {
        grid-template-columns: 52% 48% !important;
        gap: 50px !important;
    }
}

.product-main-image {
    background: #fff !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.05) !important;
    border: 1px solid #eee !important;
    padding: 30px !important;
}

.product-main-image img {
    max-height: 420px;
    object-fit: contain;
    width: 100%;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.thumbnail-item {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #eee;
    cursor: pointer;
    transition: border-color 0.2s;
}

.thumbnail-item.active, .thumbnail-item:hover {
    border-color: #ff6b00;
}

.thumbnail-item img { width: 100%; height: 100%; object-fit: cover; }

/* Product Info panel */
.product-info {
    background: #fff;
    border-radius: 20px;
    padding: 30px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #eee;
}

.product-info h1 {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #1a1a2e;
    line-height: 1.35;
    margin-bottom: 12px !important;
}

.product-info .product-category a {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ff6b00;
    background: rgba(255,107,0,0.08);
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 10px;
}

.product-info .price-current {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #ff6b00 !important;
}

.product-info .price-old {
    font-size: 18px !important;
    color: #bbb !important;
    text-decoration: line-through;
}

.product-info .price-discount {
    background: #10b981;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
}

/* Product action buttons */
.product-actions-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px !important;
}

.product-actions-group .btn-primary {
    flex: 1;
    min-width: 160px;
    padding: 15px 20px !important;
    font-size: 15px !important;
    border-radius: 50px !important;
}

.product-actions-group .btn-enquiry {
    flex: 1;
    min-width: 130px;
    padding: 15px 20px !important;
    border-radius: 50px !important;
    border: 2px solid #eee !important;
    background: #fff !important;
    color: #1a1a2e !important;
    font-weight: 700 !important;
    font-size: 15px !important;
}

.product-actions-group .btn-enquiry:hover {
    border-color: #ff6b00 !important;
    color: #ff6b00 !important;
}

.product-actions-group .btn-wishlist-detail {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 2px solid #eee !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #999;
    transition: 0.2s;
    flex-shrink: 0;
}

.product-actions-group .btn-wishlist-detail:hover,
.product-actions-group .btn-wishlist-detail.active {
    border-color: #e11d48;
    color: #e11d48;
    background: #fff5f7 !important;
}

/* Product meta chips */
.product-meta {
    background: #f9f9fb;
    border-radius: 12px;
    padding: 14px 16px !important;
    gap: 10px !important;
    margin-top: 20px !important;
}

.product-meta span {
    font-size: 13px !important;
    color: #555 !important;
    gap: 8px !important;
}

/* Quantity selector */
.quantity-selector {
    display: flex;
    align-items: center;
    background: #f5f5f7;
    border-radius: 50px;
    border: 1px solid #eee;
    padding: 6px;
    gap: 4px;
    width: fit-content;
}

.quantity-selector button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    transition: 0.2s;
}

.quantity-selector button:hover {
    background: #ff6b00;
    color: #fff;
}

.quantity-selector input {
    width: 44px !important;
    background: transparent !important;
    border: none !important;
    text-align: center;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Product Tabs */
.product-tabs {
    margin-top: 40px !important;
    background: #fff;
    border-radius: 16px;
    padding: 30px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #eee;
}

.product-tabs-nav {
    border-bottom: 2px solid #f0f0f0 !important;
    gap: 4px;
    margin-bottom: 24px !important;
}

.product-tabs-nav button {
    border-radius: 50px 50px 0 0 !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    background: #f9f9fb !important;
    border: 1px solid #eee !important;
    border-bottom: none !important;
    margin-bottom: -2px;
    color: #888 !important;
    transition: 0.2s;
}

.product-tabs-nav button.active {
    background: #fff !important;
    color: #ff6b00 !important;
    border-bottom-color: transparent !important;
    border-bottom: 3px solid #ff6b00 !important;
}

.product-tabs-content {
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

/* ===== SHOP PAGE ===== */
.shop-layout {
    gap: 30px !important;
}

.shop-sidebar {
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
    border: 1px solid #eee !important;
    padding: 24px !important;
}

.shop-sidebar .filter-section h4 {
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: #bbb !important;
    margin-bottom: 14px !important;
}

.category-item > label {
    border-radius: 10px !important;
    padding: 10px 12px !important;
}

.category-item.is-selected > label {
    background: rgba(255,107,0,0.08) !important;
}

.apply-btn {
    border-radius: 50px !important;
    padding: 13px !important;
    background: linear-gradient(135deg,#ff6b00,#e05500) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(255,107,0,0.2) !important;
}

.shop-toolbar-new {
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
    border: 1px solid #eee !important;
    padding: 16px 24px !important;
    margin-bottom: 24px !important;
}

.sort-select {
    border-radius: 50px !important;
    padding: 10px 20px !important;
    border: 1.5px solid #eee !important;
    background: #f9f9fb !important;
    font-weight: 700 !important;
}

/* ===== CHECKOUT PAGE ===== */
.checkout-form {
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
    border: 1px solid #eee !important;
    padding: 30px !important;
}

.checkout-order-summary {
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
    border: 1px solid #eee !important;
    padding: 28px !important;
}

.payment-method-card {
    border-radius: 14px !important;
    border: 2px solid #eee !important;
    padding: 16px !important;
    transition: 0.2s;
}

.payment-method-card:has(input:checked) {
    border-color: #ff6b00 !important;
    background: rgba(255,107,0,0.03) !important;
}

/* ===== ACCOUNT PAGE ===== */
.account-sidebar {
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
    border: 1px solid #eee !important;
}

.account-sidebar ul li a {
    border-radius: 12px !important;
}

.account-content {
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
    border: 1px solid #eee !important;
}

/* ===== FEATURES (Homepage Trust bars) ===== */
.feature-card {
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
    border: 1px solid #eee !important;
    transition: transform 0.25s, box-shadow 0.25s !important;
}

.feature-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 14px 35px rgba(0,0,0,0.09) !important;
    border-color: rgba(255,107,0,0.2) !important;
}

.feature-icon {
    border-radius: 16px !important;
    width: 64px !important;
    height: 64px !important;
}

/* ===== BANNER CARDS ===== */
.banner-card {
    border-radius: 20px !important;
    overflow: hidden;
}

/* ===== FOOTER ===== */
.footer {
    border-radius: 0 !important;
    overflow: hidden;
    margin-top: 40px;
}

/* ===== HERO SECTION ===== */
.hero {
    border-radius: 0 !important;
    overflow: hidden;
}

.hero-card {
    border-radius: 20px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08) !important;
}

/* ===== REVIEWS ===== */
.review-item {
    border-radius: 14px !important;
    border: 1px solid #eee !important;
    background: #fff !important;
    padding: 20px !important;
}

/* ===== TOAST / NOTIFICATIONS ===== */
.toast {
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

/* ===== MOBILE NAV (App Bottom Bar) ===== */
.app-bottom-nav {
    border-radius: 20px 20px 0 0 !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.07) !important;
}

/* ===== MOBILE RESPONSIVE OVERRIDES ===== */
@media (max-width: 768px) {
    /* Stack product detail */
    .product-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Product info get full width */
    .product-info {
        border-radius: 16px !important;
        padding: 20px !important;
    }

    .product-main-image {
        border-radius: 16px !important;
        padding: 20px !important;
    }

    .shop-layout {
        grid-template-columns: 1fr !important;
    }

    .checkout-layout, .cart-layout, .account-layout {
        grid-template-columns: 1fr !important;
    }

    /* Smaller headings */
    .product-info h1 {
        font-size: 22px !important;
    }

    /* Sticky action bar on product page */
    .product-actions-group {
        position: fixed !important;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 999;
        background: #fff;
        padding: 12px 16px !important;
        box-shadow: 0 -4px 16px rgba(0,0,0,0.07) !important;
        margin: 0 !important;
        border-radius: 20px 20px 0 0 !important;
    }

    /* Space at bottom for sticky product action bar */
    .product-detail-grid {
        padding-bottom: 90px !important;
    }

    /* Shop page filter as offscreen panel */
    .shop-sidebar {
        position: fixed !important;
        top: 0;
        left: -100%;
        height: 100vh;
        z-index: 1001;
        overflow-y: auto;
        width: 300px;
        border-radius: 0 16px 16px 0 !important;
        transition: left 0.3s !important;
    }

    .shop-sidebar.open {
        left: 0 !important;
    }

    .mobile-filter-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px !important;
        border-radius: 50px !important;
        border: 1.5px solid #eee !important;
        background: #fff !important;
        font-weight: 700 !important;
        cursor: pointer;
    }
}
