/* =============================================
   MamaCare - Maternity Store CSS
   Primary Color: #FFE3E0
   ============================================= */

:root {
    --primary: #FFE3E0;
    --primary-dark: #f5c4bf;
    --primary-deeper: #e8a09a;
    --accent: #d4627a;
    --accent-dark: #b84d63;
    --text-dark: #2d2d2d;
    --text-muted: #6c757d;
    --bg-light: #fff9f8;
    --white: #ffffff;
    --border: #f0d8d5;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --shadow: 0 2px 15px rgba(212, 98, 122, 0.12);
    --shadow-hover: 0 8px 25px rgba(212, 98, 122, 0.2);
    --radius: 12px;
    --font-main: 'Hind Siliguri', 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
}

.lang-en { font-family: 'Poppins', sans-serif; }
.lang-bn { font-family: 'Hind Siliguri', sans-serif; }

a { text-decoration: none; color: var(--accent); transition: color 0.2s; }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; }

/* =============================================
   ANNOUNCEMENT BAR
   ============================================= */
.announcement-bar {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    padding: 6px 0;
    font-size: 13px;
    font-weight: 500;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    z-index: 1030;
}

.header-top {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.header-top a { color: var(--text-muted); }
.header-top a:hover { color: var(--accent); }

.navbar { padding: 12px 0; }

.brand-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent);
    background: var(--primary);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 8px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.dropdown-item:hover { background: var(--primary); color: var(--accent); }

/* Search */
.search-form .form-control {
    border: 2px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    padding: 8px 16px;
    font-size: 14px;
    background: var(--bg-light);
    width: 220px;
    transition: border-color 0.2s;
}

.search-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: none;
}

.btn-search {
    background: var(--accent);
    color: white;
    border: 2px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 8px 16px;
}

.btn-search:hover { background: var(--accent-dark); color: white; }

/* Cart Button */
.cart-btn {
    position: relative;
    color: var(--text-dark);
    font-size: 1.4rem;
    background: var(--primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-btn:hover { background: var(--accent); color: white; }

.cart-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    background: #e63946;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 2px solid white;
    padding: 0 3px;
    line-height: 1;
    animation: badgePop 0.3s ease;
    transition: transform 0.15s;
    pointer-events: none;
}
@keyframes badgePop {
    0%   { transform: scale(0); }
    60%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.mobile-cart-btn {
    position: relative;
    color: var(--accent);
    font-size: 1.5rem;
}

.lang-toggle-btn, .lang-toggle-btn-sm {
    background: var(--primary);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--primary-dark);
    cursor: pointer;
    transition: all 0.2s;
}

.lang-toggle-btn:hover, .lang-toggle-btn-sm:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.lang-toggle-btn-sm { font-size: 1.2rem; padding: 4px 8px; }

.navbar-toggler {
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1.2rem;
    color: var(--accent);
    padding: 4px 10px;
}

.navbar-toggler:focus { box-shadow: none; }

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #ffd6d1 50%, var(--primary-dark) 100%);
    min-height: 520px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    right: 100px;
    bottom: -80px;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
}

.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 28px;
}

.btn-hero {
    background: var(--accent);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(212, 98, 122, 0.3);
}

.btn-hero:hover {
    background: var(--accent-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 98, 122, 0.4);
}

.btn-hero-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-hero-outline:hover {
    background: var(--accent);
    color: white;
}

.hero-img {
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    position: relative;
    z-index: 1;
    max-height: 420px;
    object-fit: cover;
    width: 100%;
}

/* =============================================
   SECTION TITLES
   ============================================= */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 32px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary-dark));
    border-radius: 2px;
    margin: 10px 0 30px;
}

/* =============================================
   PRODUCT CARDS
   ============================================= */
.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: var(--bg-light);
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.badge-sale {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(231,76,60,0.3);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.badge-new {
    background: linear-gradient(135deg, #27ae60, #219a52);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    padding: 10px;
    display: flex;
    gap: 8px;
    justify-content: center;
    transition: bottom 0.3s;
    z-index: 2;
}

.product-card:hover .product-actions { bottom: 10px; }

.btn-quick-add {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(212, 98, 122, 0.4);
}

.btn-quick-add:hover { background: var(--accent-dark); transform: scale(1.03); }

.product-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    margin-bottom: 6px;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    flex: 1;
}

.product-name a { color: inherit; }
.product-name a:hover { color: var(--accent); }

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.price-current {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

.price-original {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-discount {
    background: #fff0ee;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.btn-add-cart {
    background: var(--primary);
    color: var(--accent);
    border: 2px solid var(--primary-dark);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-add-cart:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.out-of-stock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 0;
}

/* =============================================
   CATEGORY CARDS
   ============================================= */
.category-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-align: center;
    padding: 24px 16px;
    border: 1px solid var(--border);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    background: var(--primary);
}

.category-icon-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.8rem;
    color: var(--accent);
}

.category-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* =============================================
   WHY US SECTION
   ============================================= */
.why-us-section {
    background: white;
    padding: 50px 0;
}

.feature-card {
    text-align: center;
    padding: 24px 16px;
}

.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
    color: var(--accent);
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
}

.feature-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.feature-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

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

.product-gallery {
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow);
}

.main-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.product-detail-info h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.detail-price .price-current { font-size: 2rem; }

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--border);
    border-radius: 30px;
    overflow: hidden;
    width: fit-content;
}

.qty-btn {
    background: none;
    border: none;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--accent);
    transition: background 0.2s;
}

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

.qty-input {
    width: 60px;
    text-align: center;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    background: transparent;
}

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

.btn-buy-now {
    background: var(--accent);
    color: white;
    border: 2px solid var(--accent);
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-buy-now:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: white; }

.btn-add-to-cart-lg {
    background: var(--primary);
    color: var(--accent);
    border: 2px solid var(--primary-dark);
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-add-to-cart-lg:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.description-box {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.description-box img { max-width: 100%; border-radius: 8px; }

/* =============================================
   CART PAGE
   ============================================= */
.cart-table {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cart-table th {
    background: var(--primary);
    color: var(--text-dark);
    font-weight: 600;
    padding: 14px 16px;
    font-size: 0.9rem;
    border: none;
}

.cart-table td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}

.cart-product-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-qty-input {
    width: 70px;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 6px;
    font-weight: 600;
}

.cart-summary-box {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    border: 1px solid var(--border);
}

.cart-summary-box h5 {
    color: var(--text-dark);
    font-weight: 700;
    border-bottom: 2px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.summary-total {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--accent);
    border-top: 2px solid var(--border);
    padding-top: 12px;
    margin-top: 8px;
}

/* =============================================
   CHECKOUT PAGE
   ============================================= */
.checkout-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    border: 1px solid var(--border);
}

.checkout-card h5 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-control, .form-select {
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 98, 122, 0.1);
}

.payment-option {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.payment-option:hover, .payment-option.active {
    border-color: var(--accent);
    background: var(--bg-light);
}

.payment-option input[type="radio"] { accent-color: var(--accent); }

.payment-option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
}

.payment-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.payment-icon.cod { background: #e8f5e9; color: #27ae60; }
.payment-icon.bkash { background: #fce4ec; color: #e91e63; }

.bkash-details {
    background: #fce4ec;
    border: 1px solid #f8bbd0;
    border-radius: 10px;
    padding: 16px;
    margin-top: 12px;
    display: none;
}

.bkash-details.show { display: block; }

.bkash-number-display {
    font-size: 1.4rem;
    font-weight: 700;
    color: #c2185b;
    letter-spacing: 1px;
}

.btn-place-order {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    border: none;
    border-radius: 30px;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 1.05rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(212, 98, 122, 0.3);
}

.btn-place-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 98, 122, 0.4);
}

/* File Upload */
.upload-area {
    border: 2px dashed var(--accent);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    background: #fff0ee;
    transition: background 0.2s;
}

.upload-area:hover { background: var(--primary); }
.upload-area i { font-size: 2rem; color: var(--accent); }

/* =============================================
   ORDER SUCCESS
   ============================================= */
.order-success-section { min-height: 60vh; display: flex; align-items: center; }

.success-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    padding: 50px 40px;
    text-align: center;
    border: 2px solid var(--primary-dark);
}

.success-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #27ae60;
    margin: 0 auto 24px;
    animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop-in {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.order-number-badge {
    background: var(--primary);
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 30px;
    display: inline-block;
    margin: 12px 0;
    border: 2px solid var(--primary-dark);
}

/* =============================================
   PRODUCTS PAGE
   ============================================= */
.products-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 40px 0;
    margin-bottom: 32px;
}

.filter-sidebar {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    border: 1px solid var(--border);
}

.filter-sidebar h6 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.filter-check .form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.filter-check .form-check-label { cursor: pointer; font-size: 0.9rem; }

.sort-bar {
    background: white;
    border-radius: var(--radius);
    padding: 12px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination .page-link {
    border: 2px solid var(--border);
    color: var(--text-dark);
    border-radius: 8px;
    margin: 0 3px;
    font-weight: 500;
}

.pagination .page-link:hover,
.pagination .page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: #2d2d2d; color: #ccc; }

.newsletter-section {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.btn-newsletter {
    background: white;
    color: var(--accent);
    font-weight: 700;
    border-radius: 0 8px 8px 0;
    white-space: nowrap;
}

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

.footer-main { background: #2d2d2d; }

.footer-brand {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 700;
}

.footer-heading {
    color: white;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: #bbb;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }

.footer-contact { list-style: none; padding: 0; }
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #bbb;
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.footer-contact li i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }

.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 1rem;
    transition: all 0.2s;
}
.social-links a:hover { background: var(--accent); color: white; }

.footer-bottom {
    background: #1a1a1a;
    border-top: 1px solid #333;
    color: #888;
}

/* =============================================
   FLOATING CART
   ============================================= */
.floating-cart {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(212, 98, 122, 0.4);
    z-index: 999;
    transition: all 0.2s;
}

.floating-cart:hover { background: var(--accent-dark); color: white; transform: scale(1.1); }

.floating-cart .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #333;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: var(--accent);
    border: 2px solid var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    z-index: 998;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
}

.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); color: white; }

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb-section {
    background: var(--primary);
    padding: 12px 0;
    border-bottom: 1px solid var(--primary-dark);
}

.breadcrumb-item a { color: var(--accent); }
.breadcrumb-item.active { color: var(--text-muted); }

/* =============================================
   TOAST
   ============================================= */
.toast {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
}

/* =============================================
   PAGE CONTENT
   ============================================= */
.page-content {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    line-height: 1.8;
}

.page-content h2, .page-content h3 { color: var(--accent); }
.page-content img { border-radius: 8px; margin: 12px 0; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
    .hero-title { font-size: 2rem; }
    .hero-img { margin-top: 24px; }
    .search-form { order: 3; width: 100%; margin-top: 12px; }
    .search-form .form-control { width: 100%; }
}

@media (max-width: 767px) {
    .hero-section { min-height: auto; padding: 40px 0; }
    .hero-title { font-size: 1.7rem; }
    .section-title { font-size: 1.4rem; }
    .product-card .product-actions { display: none; }
    .cart-table { display: block; overflow-x: auto; }
    .checkout-card { padding: 20px; }
    .success-card { padding: 30px 20px; }
    .floating-cart { bottom: 80px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.5rem; }
    .btn-hero { padding: 12px 24px; font-size: 0.9rem; }
}

/* =============================================
   UTILITIES
   ============================================= */
.bg-primary-light { background: var(--primary); }
.text-accent { color: var(--accent); }
.border-accent { border-color: var(--accent) !important; }

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.section-py { padding: 60px 0; }
.section-py-sm { padding: 40px 0; }

.bg-pattern {
    background-color: var(--bg-light);
    background-image: radial-gradient(var(--primary-dark) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* =============================================
   WHATSAPP FLOAT BUTTON
   ============================================= */
.wa-float-btn {
    position: fixed;
    bottom: 160px;
    right: 24px;
    width: 54px;
    height: 54px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    z-index: 997;
    transition: all 0.3s;
    animation: wa-pulse 2.5s infinite;
}
.wa-float-btn:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,0.6);
}
@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
    50%       { box-shadow: 0 4px 30px rgba(37,211,102,0.7), 0 0 0 8px rgba(37,211,102,0.1); }
}
@media (max-width: 767px) {
    .wa-float-btn { bottom: 130px; right: 16px; width: 48px; height: 48px; }
    .wa-float-btn svg { width: 24px; height: 24px; }
}

/* =============================================
   PRODUCT IMAGE GALLERY
   ============================================= */
.product-thumb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}
.product-thumb {
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    width: 100%;
}
.product-thumb:hover,
.product-thumb.active {
    border-color: var(--accent);
    transform: scale(1.03);
}
.gallery-main-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: var(--radius);
    transition: opacity 0.2s;
    background: var(--bg-light);
    cursor: zoom-in;
}
.gallery-zoom-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.gallery-zoom-overlay.show { display: flex; }
.gallery-zoom-overlay img { max-width: 90vw; max-height: 90vh; border-radius: 8px; object-fit: contain; }

/* =============================================
   NEWSLETTER INPUT OVERRIDE
   ============================================= */
.newsletter-section .form-control {
    border-radius: 8px 0 0 8px;
    border: none;
    padding: 10px 16px;
}
.newsletter-section .form-control:focus { box-shadow: none; }

/* =============================================
   STAR RATINGS
   ============================================= */
.star-rating { color: #ffc107; font-size: 1rem; letter-spacing: 1px; }
.star-rating-sm { color: #ffc107; font-size: 0.8rem; }

/* =============================================
   LOW STOCK BADGE
   ============================================= */
.badge-low-stock {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffe0b2;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* =============================================
   REVIEW SECTION
   ============================================= */
.review-card {
    background: white;
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--border);
    margin-bottom: 12px;
}
.review-card .reviewer-name { font-weight: 700; color: var(--text-dark); }
.review-card .review-date   { font-size: 12px; color: var(--text-muted); }
.review-card .review-text   { color: #555; line-height: 1.7; margin-top: 8px; }

/* =============================================
   PRODUCT RATING STARS ON CARDS
   ============================================= */
.product-rating { line-height: 1; }
.product-rating .stars { color: #ffc107; }

/* =============================================
   VARIANT SELECTORS
   ============================================= */
.size-btn:hover      { border-color: var(--accent) !important; background: var(--primary) !important; }
.size-btn.selected   { border-color: var(--accent) !important; background: var(--primary) !important; color: var(--accent) !important; font-weight: 700 !important; }
.color-btn:focus     { outline: 3px solid var(--accent); }
.product-variants    { background: var(--bg-light); border-radius: var(--radius); padding: 16px; }

/* =============================================
   ORDER SUCCESS PAGE
   ============================================= */
.order-success-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes pop-in {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* =============================================
   CHECKOUT IMPROVEMENTS
   ============================================= */
.payment-method-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px;
}
.payment-method-card:hover,
.payment-method-card.active { border-color: var(--accent); background: var(--primary); }
.bkash-info { background: #fff0f5; border: 1px solid #ffd6e7; border-radius: 10px; padding: 14px; }
.bkash-number { font-size: 1.4rem; font-weight: 800; color: #d4627a; letter-spacing: 2px; }

/* =============================================
   ADMIN QUICK ACTIONS
   ============================================= */
.stock-quick-edit { font-size: 13px !important; text-align: center; }
.stock-quick-edit:focus { box-shadow: 0 0 0 3px rgba(212,98,122,0.2); }

/* =============================================
   MOBILE IMPROVEMENTS
   ============================================= */
@media (max-width: 576px) {
    .checkout-card { padding: 16px; }
    .product-thumb-grid { grid-template-columns: repeat(3, 1fr); }
    .wa-float-btn { bottom: 110px; }
    .detail-price .price-current { font-size: 1.5rem; }
    .btn-buy-now, .btn-add-to-cart-lg { padding: 12px 16px; font-size: 14px; }
    .review-card { padding: 12px; }
    .breadcrumb-section { padding: 8px 0; }
    .breadcrumb-section .breadcrumb { font-size: 12px; }
}

/* =============================================
   PAGE TRANSITIONS (subtle)
   ============================================= */
.product-card { animation: card-in 0.3s ease both; }
@keyframes card-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   FORM IMPROVEMENTS
   ============================================= */
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212,98,122,0.15);
}
.form-label { font-weight: 600; font-size: 14px; color: var(--text-dark); margin-bottom: 5px; }
.required-star::after { content: ' *'; color: var(--accent); }

/* =============================================
   PAGINATION IMPROVEMENTS
   ============================================= */
.pagination .page-link {
    color: var(--accent);
    border-color: var(--border);
    border-radius: 8px !important;
    margin: 0 2px;
    min-width: 36px;
    text-align: center;
}
.pagination .page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}
.pagination .page-link:hover { background: var(--primary); color: var(--accent); }

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
    header, footer, .wa-float-btn, .back-to-top, .print-bar, .print-controls { display: none !important; }
    body { background: white !important; }
    .invoice-wrapper, .label { box-shadow: none !important; }
}

/* =============================================
   SECTION DIVIDER ANIMATION
   ============================================= */
.section-divider {
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary-dark), transparent);
    border-radius: 2px;
    margin-bottom: 24px;
    width: 60px;
}

/* =============================================
   FLOATING CART BADGE (updated)
   ============================================= */
.cart-badge-count {
    position: absolute;
    top: -6px; right: -6px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    width: 18px; height: 18px;
    font-size: 10px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid white;
}

/* =============================================
   CART COUNT BADGE
   ============================================= */
.cart-count-badge {
    position: absolute;
    top: -7px; right: -7px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    min-width: 18px; height: 18px;
    font-size: 10px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid white;
    padding: 0 3px;
    line-height: 1;
    transition: transform 0.2s;
}
.cart-count-badge.bump { transform: scale(1.4); }

/* =============================================
   HERO BANNER — AUTO SLIDE NAVIGATION
   ============================================= */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
    width: 46px; height: 46px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}
.hero-nav-btn:hover { background: rgba(255,255,255,0.45); transform: translateY(-50%) scale(1.1); }
.hero-nav-btn.hero-prev { left: 16px; }
.hero-nav-btn.hero-next { right: 16px; }
.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.hero-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}
.hero-dot.active { background: white; width: 28px; border-radius: 5px; }
.hero-slide { position: relative; }
.hero-title  { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; color: var(--text-dark); line-height: 1.2; margin-bottom: 16px; }
.hero-subtitle { font-size: clamp(0.95rem, 2vw, 1.15rem); color: #555; line-height: 1.6; }

/* =============================================
   CATEGORY CARDS — LARGE HOMEPAGE VERSION
   ============================================= */
.category-card-large {
    padding: 20px 12px;
    border-radius: 20px;
    border: 2px solid transparent;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
}
.category-card-large:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(212,98,122,0.18);
}
.cat-icon-wrap {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    overflow: hidden;
    transition: transform 0.3s;
}
.category-card-large:hover .cat-icon-wrap { transform: scale(1.08); }
.cat-img-large {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.cat-emoji-large { font-size: 2.5rem; line-height: 1; }
.cat-name-large {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}
.cat-count-label {
    font-size: 12px;
    color: var(--text-muted);
}
@media (max-width: 767px) {
    .cat-icon-wrap { width: 70px; height: 70px; }
    .cat-emoji-large { font-size: 2rem; }
    .cat-name-large { font-size: 0.85rem; }
}

/* =============================================
   BRAND SLIDER
   ============================================= */
.brand-slider-wrap { position: relative; padding: 0 40px; }
.brand-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 12px 0;
}
.brand-slider::-webkit-scrollbar { display: none; }
.brand-card {
    flex: 0 0 160px;
    height: 80px;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    transition: all 0.25s;
    filter: grayscale(60%);
    opacity: 0.7;
}
.brand-card:hover {
    border-color: var(--accent);
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212,98,122,0.15);
}
.brand-logo {
    max-height: 48px;
    max-width: 120px;
    object-fit: contain;
}
.brand-name-text {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
    text-align: center;
}
.brand-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid var(--border);
    color: var(--accent);
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    z-index: 5;
}
.brand-nav:hover { background: var(--accent); color: white; border-color: var(--accent); }
.brand-nav.prev { left: 0; }
.brand-nav.next { right: 0; }

/* =============================================
   ARTICLES / BLOG
   ============================================= */
.article-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border);
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(212,98,122,0.15);
}
.article-img-wrap {
    height: 200px;
    overflow: hidden;
}
.article-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.article-card:hover .article-img-wrap img { transform: scale(1.05); }
.article-body { padding: 20px; }
.article-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-excerpt {
    font-size: 13.5px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}
.btn-read-more {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    transition: gap 0.2s;
}
.article-content img { max-width: 100%; border-radius: 10px; margin: 16px 0; }
.article-content h2 { font-size: 1.4rem; margin: 28px 0 12px; color: var(--text-dark); }
.article-content h3 { font-size: 1.15rem; margin: 20px 0 10px; }
.article-content p  { margin-bottom: 16px; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 16px; }
.article-content blockquote { border-left: 4px solid var(--accent); padding: 12px 20px; background: var(--primary); border-radius: 0 8px 8px 0; margin: 20px 0; }

/* =============================================
   SHIPPING METHOD SELECTOR (Checkout)
   ============================================= */
.shipping-method-option {
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.shipping-method-option:hover  { border-color: var(--accent); background: var(--primary); }
.shipping-method-option.selected { border-color: var(--accent); background: var(--primary); }
.shipping-method-option input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; }
.shipping-est { font-size: 12px; color: var(--text-muted); }
.shipping-cost-badge { margin-left: auto; font-weight: 700; color: var(--accent); }

/* =============================================
   PRODUCT VARIANT SECTIONS (refinements)
   ============================================= */
.product-youtube-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
    margin-top: 16px;
}
.product-youtube-wrap iframe {
    width: 100%; height: 100%;
    border: none;
}

/* =============================================
   SEARCH INPUT GROUP — ICON INSIDE
   ============================================= */
.search-input-group {
    border-radius: 30px;
    overflow: hidden;
    border: 2px solid var(--border);
    background: white;
    transition: border-color 0.2s;
    max-width: 380px;
    width: 100%;
}
.search-input-group:focus-within { border-color: var(--accent); }
.search-input-group .form-control {
    border: none;
    background: transparent;
    padding-left: 16px;
    font-size: 14px;
    box-shadow: none !important;
}
.search-input-group .btn-search {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 0 28px 28px 0;
    padding: 0 18px;
    font-size: 15px;
    transition: background 0.2s;
}
.search-input-group .btn-search:hover { background: var(--accent-dark); }
.search-wrapper { position: relative; flex: 1; max-width: 420px; }
@media (max-width: 991px) {
    .search-wrapper { display: none; }
}
/* Mobile search bar (inside collapsed nav) */
.mobile-search-bar {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}
.mobile-search-bar .search-input-group { max-width: 100%; }

/* =============================================
   IMPROVED NAV LAYOUT
   ============================================= */
.navbar-collapse .search-wrapper {
    display: block;
    max-width: 100%;
    padding: 8px 0 4px;
}

/* =============================================
   HEADER SOCIAL ICONS
   ============================================= */
.header-social-icons { gap: 4px !important; }

/* Base icon style */
.social-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    background: rgba(255,255,255,0.1);
}
.social-header-icon:hover {
    color: white;
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* Colored style */
.social-header-icon.social-icon_colored {
    background: transparent;
    font-size: 15px;
    width: auto;
    padding: 0 4px;
}
.social-header-icon.social-icon_colored:hover { background: rgba(255,255,255,0.1); }

/* Pill style */
.social-header-icon.social-pill {
    border-radius: 20px;
    width: auto;
    padding: 0 10px;
    height: 26px;
    font-size: 12px;
    border: 1px solid rgba(255,255,255,0.3);
}

/* WhatsApp — always green tint */
.social-header-icon.social-whatsapp { color: #25D366; }
.social-header-icon.social-whatsapp:hover { color: white; background: #25D366; }

/* Responsive — hide some on mobile */
@media (max-width: 575px) {
    .header-social-icons { display: none !important; }
}
@media (min-width: 576px) and (max-width: 991px) {
    .social-header-icon:not(.social-whatsapp):not([title="Facebook"]):not([title="Instagram"]) {
        display: none !important;
    }
}

/* =============================================
   THEME COLOR FULL CASCADE
   All major colored areas use CSS variables
   so theme color change updates everything
   ============================================= */

/* Announcement bar inherits accent */
.announcement-bar {
    background: linear-gradient(90deg, var(--accent), var(--accent-dark, #b84d63));
    color: white;
}

/* Hero section background */
.hero-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

/* Category icon wrappers */
.cat-icon-wrap {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

/* Product card accent on hover */
.product-card:hover {
    border-color: var(--accent);
}

/* Section headings accent line */
.section-title::after {
    background: var(--accent);
}

/* Flash sale timer */
.flash-timer { color: var(--accent); }

/* Checkout card border */
.checkout-card { border-top: 3px solid var(--primary-dark); }

/* Cart summary border */
.cart-summary-box { border-top: 4px solid var(--accent); }

/* Order status badges */
.status-badge-delivered { background: var(--accent); }

/* Admin accent color button */
.btn-accent {
    background: var(--accent) !important;
    color: white !important;
}
.btn-accent:hover {
    background: var(--accent-dark, #b84d63) !important;
}

/* Price color */
.price-current, .text-accent { color: var(--accent) !important; }

/* Input focus ring */
.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 212,98,122), 0.15);
}

/* Product image badge */
.badge-sale {
    background: var(--accent);
}

/* Hero CTA buttons */
.btn-hero {
    background: var(--accent);
    color: white;
}
.btn-hero:hover {
    background: var(--accent-dark, #b84d63);
    color: white;
}
.btn-hero-outline {
    border: 2px solid var(--accent);
    color: var(--accent);
}
.btn-hero-outline:hover {
    background: var(--accent);
    color: white;
}

/* Nav active underline */
.nav-link:hover { color: var(--accent) !important; }

/* Footer gradient */
footer .footer-bottom {
    background: var(--accent);
}

/* Placeholder text color */
::placeholder {
    color: var(--accent);
    opacity: 0.4;
}

/* Scrollbar theme */
::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* =============================================
   PERSONALIZED CHAT SUGGESTIONS
   ============================================= */
.ai-chip-personal {
    background: var(--accent) !important;
    color: white !important;
    border-color: var(--accent) !important;
    font-weight: 700;
}
.ai-chip-personal::before { content: '⭐ '; }

/* =============================================
   CATEGORY SHOWCASE CARDS (homepage)
   ============================================= */
.cat-showcase-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    margin-bottom: 16px;
}
.cat-showcase-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(var(--accent-rgb, 212,98,122), 0.22);
}

.cat-showcase-img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--accent-rgb,212,98,122),.08), rgba(var(--accent-rgb,212,98,122),.04));
}

.cat-showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.cat-showcase-card:hover .cat-showcase-img {
    transform: scale(1.08);
}

.cat-showcase-emoji {
    font-size: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 140px;
    transition: transform 0.3s;
}
.cat-showcase-card:hover .cat-showcase-emoji {
    transform: scale(1.15);
}

.cat-showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(var(--accent-rgb,212,98,122),.85) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cat-showcase-card:hover .cat-showcase-overlay { opacity: 1; }

.cat-showcase-btn {
    background: white;
    color: var(--accent);
    font-weight: 700;
    font-size: 11px;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cat-showcase-info {
    padding: 10px 12px 12px;
}
.cat-showcase-name {
    font-weight: 700;
    font-size: 13.5px;
    color: #333;
    margin-bottom: 2px;
    line-height: 1.3;
}
.cat-showcase-count {
    font-size: 11.5px;
    color: var(--accent);
    font-weight: 600;
}

@media (max-width: 576px) {
    .cat-showcase-card { border-radius: 12px; }
    .cat-showcase-emoji { font-size: 2.8rem; min-height: 110px; }
    .cat-showcase-name { font-size: 12px; }
}

/* =============================================
   BUTTON HOVER — WHITE TEXT (Global Fix)
   All outline buttons show white text on hover
   ============================================= */

/* Bootstrap outline button overrides */
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-success:hover,
.btn-outline-danger:hover,
.btn-outline-warning:hover,
.btn-outline-info:hover,
.btn-outline-dark:hover {
    color: white !important;
}

/* Custom accent outline buttons */
.btn-outline-accent:hover,
.btn[style*="border"]:hover,
a.btn:hover {
    color: white !important;
}

/* Product action buttons */
.btn-quick-add:hover,
.btn-add-cart:hover,
.btn-wishlist:hover,
.btn-buy-now:hover,
.btn-add-to-cart-lg:hover,
.btn-add-to-wishlist:hover,
.add-to-cart-btn:hover {
    color: white !important;
}

/* Category, feature, nav action buttons */
.cat-showcase-card:hover .cat-showcase-btn { color: var(--accent) !important; }

/* Filter/sort buttons */
.filter-btn:hover,
.sort-btn:hover,
.tag-btn:hover {
    color: white !important;
    background: var(--accent) !important;
    border-color: var(--accent) !important;
}

/* Rounded pill buttons */
.btn.rounded-pill:hover:not(.btn-accent):not([style*="background:#"]) {
    color: white !important;
}

/* Admin panel outline buttons */
.admin-card .btn:hover,
.admin-table .btn:hover {
    color: white !important;
}

/* Ensure text stays white on solid accent buttons always */
.btn-accent,
.btn-accent:hover,
.btn-accent:focus,
.btn-accent:active {
    color: white !important;
}

/* Fix ghost/transparent buttons */
a[class*="btn"]:not(.btn-link):hover {
    color: white !important;
}

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

/* Product page warranty banner */
.warranty-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb,212,98,122),.1), rgba(var(--accent-rgb,212,98,122),.04));
    border: 1.5px solid rgba(var(--accent-rgb,212,98,122),.3);
    border-radius: 14px;
    padding: 14px 18px;
    position: relative;
    overflow: hidden;
}
.warranty-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
}
.warranty-icon { font-size: 2rem; flex-shrink: 0; }
.warranty-headline { font-size: 14px; font-weight: 600; color: #333; line-height: 1.5; }
.warranty-headline strong { color: var(--accent); }
.warranty-terms-toggle { margin-top: 4px; }
.warranty-terms {
    background: rgba(255,255,255,0.7);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: #555;
    line-height: 1.6;
    border: 1px solid rgba(var(--accent-rgb,212,98,122),.15);
}

/* Admin order items warranty badge */
.warranty-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
}
.warranty-admin-badge.active   { background: #e8f5e9; color: #2e7d32; }
.warranty-admin-badge.expiring { background: #fff8e1; color: #f57f17; }
.warranty-admin-badge.expired  { background: #ffebee; color: #c62828; }
.warranty-admin-badge.pending  { background: #e3f2fd; color: #1565c0; }
.w-progress {
    height: 4px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-top: 3px;
    overflow: hidden;
}
.w-progress div { height: 100%; border-radius: 4px; }
.wbadge-status { font-weight: 400; opacity: 0.85; }

/* Customer order history warranty countdown card */
.warranty-countdown-card {
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 6px;
    font-size: 13px;
}
.warranty-active   { background: #e8f5e9; border: 1px solid #c8e6c9; }
.warranty-expiring { background: #fff8e1; border: 1px solid #ffe082; }
.warranty-expired  { background: #ffebee; border: 1px solid #ffcdd2; opacity: 0.75; }
.warranty-label { font-size: 13px; }
.warranty-pending-badge {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
    color: #1565c0;
    margin-top: 6px;
    display: inline-block;
}
