/* ============================================================
   JahinMart — Main Stylesheet
   Vibrant Orange Theme | Bengali + English UI
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');



/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-bn);
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 15px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ======================================================
   HEADER
====================================================== */
.site-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smart Sticky Header States */
.site-header.header-shrunk {
    transform: translateY(-108px);
    /* Hide Top Bar (38px) + Main Header (70px) */
    box-shadow: var(--shadow-md);
}

.site-header.header-revealed {
    transform: translateY(-38px);
    /* Hide only Top Bar (38px), Show Search/Logo */
    box-shadow: var(--shadow-md);
}

.header-top {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
    padding: 6px 0;
    height: 38px;
    /* Fixed height for consistent sliding */
}

.header-top a {
    color: rgba(255, 255, 255, .85);
}

.header-top a:hover {
    color: white;
}

.header-main {
    padding: 10px 0;
    background: var(--bg-white);
    height: 70px;
    /* Fixed height for consistent sliding */
}

/* Logo */
.site-logo img,
.site-logo-text {
    height: 48px;
    width: auto;
}

.site-logo-text {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -1px;
    font-family: var(--font-en);
    height: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-logo-text span {
    color: var(--secondary);
}

/* Search Bar */
.search-form {
    position: relative;
    flex: 1;
    max-width: 600px;
}

.search-form input {
    width: 100%;
    padding: 12px 55px 12px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    font-family: var(--font-bn);
    outline: none;
    transition: var(--transition);
}

.search-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, .15);
}

.search-form button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: var(--bg-white);
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    font-weight: 600;
}

.search-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 5px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    max-height: 400px;
    overflow-y: auto;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--bg-light);
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background: var(--bg-faint);
    color: var(--primary);
}

.search-suggestion-item img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--bg-faint);
    padding: 3px;
    border: 1px solid var(--border-light);
}

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

.suggestion-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-meta {
    font-size: 11px;
    color: var(--text-silver);
    font-weight: 500;
}

.suggestion-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 13px;
    margin-left: auto;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.header-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 700;
    gap: 2px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    text-decoration: none;
    min-width: 75px;
    height: 50px;
    line-height: 1;
}

.header-btn i {
    font-size: 18px;
    margin-bottom: 1px;
    transition: var(--transition);
}

/* Specific Colors for Action Buttons - More Subtle */
.btn-account,
.btn-wishlist {
    background: #fff5ec;
    color: #e65100;
}

.btn-account i,
.btn-wishlist i {
    color: #e65100;
}

.btn-track {
    background: #fff8f0;
    color: #bf360c;
}

.btn-track i {
    color: #bf360c;
}

.btn-cart {
    background: #e65100;
    color: #fff !important;
    flex-direction: row !important;
    padding: 0 15px !important;
    min-width: 100px !important;
    gap: 8px !important;
    box-shadow: 0 4px 12px rgba(230, 81, 0, .25);
}

.btn-cart i {
    color: #fff;
    font-size: 20px;
}

.btn-cart .cart-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Hover States */
.header-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.btn-account:hover,
.btn-wishlist:hover {
    background: #ffe8d6;
    border: 1px solid rgba(230, 81, 0, 0.15);
}

.btn-track:hover {
    background: #ffdcc2;
    border: 1px solid rgba(191, 54, 12, 0.1);
}

.btn-cart:hover {
    background: #bf360c;
    box-shadow: 0 6px 15px rgba(191, 54, 12, .3);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--secondary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ======================================================
   NAVIGATION
====================================================== */
.main-nav {
    background: var(--primary);
    padding: 0;
    height: 48px;
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-item>a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    color: rgba(255, 255, 255, .9);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}

.nav-item>a:hover,
.nav-item.active>a {
    color: var(--bg-white);
    background: rgba(255, 255, 255, .15);
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: 999;
    display: none;
    padding: 20px 0;
}

.nav-item:hover .mega-menu {
    display: block;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding: 15px 30px;
}

.mega-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 500;
}

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

.mega-cat-item .cat-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: var(--transition);
}

.mega-cat-item:hover .cat-icon {
    background: var(--primary);
}

/* ======================================================
   HERO SLIDER
====================================================== */
.hero-section {
    background: var(--primary-dark);
}

.swiper-hero {
    width: 100%;
    height: 420px;
}

.swiper-hero .swiper-slide {
    position: relative;
    overflow: hidden;
}

.swiper-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, transparent 70%);
    display: flex;
    align-items: center;
    padding: 0 60px;
}

.hero-content {
    color: var(--bg-white);
    max-width: 500px;
}

.hero-content h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 16px;
    opacity: .9;
    margin-bottom: 20px;
}

.btn-hero {
    display: inline-block;
    padding: 13px 30px;
    background: var(--secondary);
    color: var(--bg-white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.btn-hero:hover {
    background: var(--primary-light);
    color: var(--bg-white);
    transform: translateY(-2px);
}

/* Swiper Pagination Override */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, .6);
}

.swiper-pagination-bullet-active {
    background: var(--bg-white);
}

/* ======================================================
   SECTION HEADERS
====================================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 4px;
}

.section-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-link:hover {
    color: var(--secondary);
}

/* ======================================================
   CATEGORY CARDS
====================================================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    .header-main {
        padding: 15px 0;
        background: var(--bg-white);
        height: 82px;
        /* Fixed height for consistent sliding */
    }

    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    color: var(--text-dark);
    text-decoration: none;
    border: 1px solid var(--border);
}

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

.category-card .cat-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: var(--transition);
    overflow: hidden;
}

.category-card .cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card:hover .cat-icon {
    background: var(--primary);
}

.category-card span {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

/* ======================================================
   PRODUCT CARDS
====================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--danger);
    color: var(--bg-white);
    font-size: 13px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
}

.product-badge.badge-new {
    background: var(--accent);
}

.product-badge.badge-out {
    background: var(--out-of-stock);
    box-shadow: none;
}

.product-wish-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: var(--text-gray);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    z-index: 2;
}

.product-wish-btn:hover,
.product-wish-btn.active {
    color: var(--danger);
}

.product-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-faint);
}

.product-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    transition: var(--transition);
}

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

.product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    margin-top: auto;
}

.product-price {
    font-size: 20px;
    font-weight: 800;
    color: #e65100; /* Prominent Orange for better visibility */
}

.product-old-price {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 4px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--star);
    margin-bottom: 10px;
}

.product-rating span {
    color: var(--text-gray);
}

/* Quantity Selector inside card */
.product-qty-row {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.product-qty-selector {
    display: flex;
    align-items: center;
    background: var(--bg-faint);
    border: 1px solid var(--border-light);
    border-radius: 30px;
    padding: 4px;
    gap: 15px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all .2s;
}

.qty-btn:hover {
    background: var(--bg-light);
    border-color: var(--text-light);
}

.qty-val {
    font-weight: 700;
    font-size: 16px;
    min-width: 15px;
    text-align: center;
    color: var(--text-main);
}

.btn-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: var(--bg-white);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    font-family: var(--font-bn);
}

.btn-add-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 83, 148, .2);
}

.btn-add-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-add-cart i {
    font-size: 18px;
}

/* ======================================================
   BUTTONS
====================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    font-family: var(--font-bn);
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--bg-white);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--bg-white);
}

.btn-secondary:hover {
    background: var(--admin-orange);
    color: var(--bg-white);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-white);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

/* ======================================================
   OFFER BANNER
====================================================== */
.offer-banner {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--admin-orange) 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.offer-banner::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
    right: -50px;
    top: -50px;
}

.offer-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}

.offer-content p {
    opacity: .9;
    font-size: 16px;
}

/* ======================================================
   FOOTER
====================================================== */
.site-footer {
    background: var(--admin-sidebar-bg);
    color: rgba(255, 255, 255, .8);
    margin-top: 0px;
}

.footer-main {
    padding: 50px 0 30px;
}

.footer-bottom {
    background: rgba(0, 0, 0, .2);
    padding: 15px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
}

.footer-brand .footer-logo {
    color: var(--bg-white);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: var(--font-en);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .65);
}

.footer-heading {
    color: var(--bg-white);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, .65);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-contact p {
    font-size: 14px;
    color: rgba(255, 255, 255, .65);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact i {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: var(--bg-white);
}

/* ======================================================
   CART & CHECKOUT
====================================================== */
.cart-table {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.cart-table table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.cart-table th {
    background: var(--bg-light);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-gray);
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-product img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--bg-light);
    padding: 4px;
}

.cart-product-name {
    font-weight: 600;
    font-size: 14px;
}

.cart-product-meta {
    font-size: 12px;
    color: var(--text-light);
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    width: 32px;
    height: 32px;
    background: var(--bg-light);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
}

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

.qty-input {
    width: 40px;
    height: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
}

.order-summary {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    position: sticky;
    top: 80px;
}

.order-summary h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 12px;
}

.summary-row.discount {
    color: #e53935;
}

.summary-row.free {
    color: var(--primary);
}

.coupon-form {
    display: flex;
    gap: 8px;
    margin: 15px 0;
}

.coupon-form input {
    flex: 1;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: var(--font-bn);
}

/* ======================================================
   AUTH PAGES
====================================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}

.auth-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo h1 {
    font-size: 28px;
    color: var(--primary);
    font-family: var(--font-en);
    font-weight: 700;
}

.auth-logo span {
    color: var(--secondary);
}

.auth-logo p {
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 4px;
}

.auth-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

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

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

.form-control {
    width: 100%;
    padding: 11px 15px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-bn);
    outline: none;
    transition: var(--transition);
    color: var(--text-dark);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, .1);
}

/* ======================================================
   ADMIN PANEL
====================================================== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--admin-sidebar-bg);
    color: var(--bg-white);
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.admin-brand {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    font-size: 18px;
    font-weight: 700;
    color: var(--bg-white);
    font-family: var(--font-en);
}

.admin-brand span {
    color: var(--secondary);
}

.admin-nav-section {
    padding: 10px 0;
}

.admin-nav-title {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, .4);
    padding: 8px 20px 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: rgba(255, 255, 255, .75);
    font-size: 14px;
    transition: var(--transition);
}

.admin-nav-link i {
    width: 18px;
    color: rgba(255, 255, 255, .5);
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: rgba(255, 255, 255, .1);
    color: var(--bg-white);
}

.admin-nav-link.active i {
    color: var(--primary-light);
}

.admin-content {
    margin-left: 260px;
    flex: 1;
    min-width: 0;
}

.admin-topbar {
    background: var(--bg-white);
    padding: 14px 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 99;
}

.admin-page {
    padding: 24px;
}

.admin-page-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Stat Cards */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-card.orange {
    border-color: var(--secondary);
}

.stat-card.blue {
    border-color: var(--admin-blue);
}

.stat-card.purple {
    border-color: var(--admin-purple);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
}

.stat-card.orange .stat-icon {
    background: var(--admin-orange-soft);
    color: var(--secondary);
}

.stat-card.blue .stat-icon {
    background: var(--admin-blue-soft);
    color: var(--admin-blue);
}

.stat-card.purple .stat-icon {
    background: var(--admin-purple-soft);
    color: var(--admin-purple);
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-info p {
    font-size: 13px;
    color: var(--text-gray);
}

/* Admin Table */
.admin-table-wrap {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: var(--bg-light);
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 2px solid var(--border);
}

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

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

.admin-table tr:hover td {
    background: var(--bg-light);
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.pending {
    background: var(--admin-orange-soft);
    color: var(--admin-orange);
}

.status-badge.confirmed {
    background: var(--admin-blue-soft);
    color: var(--admin-blue);
}

.status-badge.processing {
    background: var(--admin-green-soft);
    color: var(--primary);
}

.status-badge.out_for_delivery {
    background: var(--admin-purple-soft);
    color: var(--admin-purple);
}

.status-badge.delivered {
    background: var(--admin-green-soft);
    color: var(--primary-dark);
}

.status-badge.cancelled {
    background: var(--admin-red-soft);
    color: var(--danger-dark);
}

.status-badge.returned {
    background: var(--bg-light);
    color: #616161;
}

/* Admin Form */
.admin-form-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 28px;
}

.admin-form-section {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.admin-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.admin-form-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary);
}

/* ======================================================
   PRODUCT DETAIL PAGE
====================================================== */
.product-detail {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.product-detail-images .main-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-light);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-images .main-img img {
    max-height: 380px;
    object-fit: contain;
    padding: 20px;
}

.product-detail-info h1 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.product-price-big {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.product-price-old {
    font-size: 18px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 10px;
}

/* Qty Selector */
.qty-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.qty-large {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
}

.qty-large button {
    width: 40px;
    height: 42px;
    background: var(--bg-light);
    border: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    color: var(--primary);
    transition: var(--transition);
}

.qty-large button:hover {
    background: var(--primary);
    color: white;
}

.qty-large input {
    width: 55px;
    height: 42px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-size: 16px;
    font-weight: 700;
}

/* ======================================================
   ORDER TRACKING
====================================================== */
.order-timeline {
    position: relative;
    padding-left: 30px;
}

.order-timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.order-timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 8px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.order-timeline-item:last-child::before {
    display: none;
}

.order-timeline-dot {
    position: absolute;
    left: -29px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid var(--bg-white);
}

.order-timeline-item.done .order-timeline-dot {
    background: var(--primary);
}

.order-timeline-title {
    font-weight: 600;
    font-size: 14px;
}

.order-timeline-info {
    font-size: 12px;
    color: var(--text-gray);
}

/* ======================================================
   FLASH MESSAGES
====================================================== */
.flash-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.flash-msg {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    animation: slideIn .3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-success {
    background: var(--admin-green-soft);
    color: var(--primary-dark);
    border-left: 4px solid var(--primary);
}

.flash-error,
.flash-danger {
    background: var(--admin-red-soft);
    color: var(--danger-dark);
    border-left: 4px solid var(--danger-dark);
}

.flash-warning {
    background: var(--admin-orange-soft);
    color: var(--admin-orange);
    border-left: 4px solid var(--secondary);
}

/* ======================================================
   UTILITIES
====================================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 40px 0;
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-muted {
    color: var(--text-gray) !important;
}

.bg-primary {
    background: var(--primary) !important;
}

.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 6px;
}

.gap-2 {
    gap: 12px;
}

.gap-3 {
    gap: 18px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.p-0 {
    padding: 0;
}

.rounded {
    border-radius: var(--radius-sm);
}

.rounded-md {
    border-radius: var(--radius-md);
}

.w-100 {
    width: 100%;
}

/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width: 992px) {
    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: var(--transition);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
    }

    .swiper-hero {
        height: 280px;
    }

    .hero-content h2 {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .d-md-none {
        display: none;
    }

    .header-main .search-form {
        display: none;
    }

    .stat-cards {
        grid-template-columns: 1fr 1fr;
    }

    .mega-menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .auth-card {
        padding: 24px 20px;
    }

    .swiper-hero {
        height: 220px;
    }

    .hero-content h2 {
        font-size: 18px;
    }

    .hero-overlay {
        padding: 0 20px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ======================================================
   LOADING / SPINNER
====================================================== */
.spinner {
    width: 38px;
    height: 38px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

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

.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: .8;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: var(--bg-white);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

/* ======================================================
   BREADCRUMB
====================================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 20px;
    padding: 12px 0;
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb .sep {
    color: var(--border);
}

/* ======================================================
   PAGINATION
====================================================== */
.pagination {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

/* ======================================================
   TESTIMONIALS
====================================================== */
.testimonial-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
    border: 1px solid var(--bg-light);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.quote-icon {
    font-size: 24px;
    color: var(--admin-green-soft);
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 25px;
    flex: 1;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-white);
}

.user-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-main);
}

.user-pos {
    font-size: 12px;
    color: var(--text-silver);
    margin-bottom: 5px;
}

.user-stars {
    color: var(--star);
    font-size: 11px;
}

/* ======================================================
   NEWSLETTER
====================================================== */
.input-group-modern {
    display: flex;
    background: var(--bg-white);
    padding: 6px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.input-group-modern input {
    flex: 1;
    border: none;
    padding: 0 25px;
    font-size: 15px;
    border-radius: 50px;
    outline: none;
}

.input-group-modern button {
    background: #2e7d32; /* Rich Green for subscription */
    color: var(--bg-white);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: all .3s;
    white-space: nowrap;
}

.input-group-modern button:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.input-group-modern button:disabled {
    background: var(--text-silver);
}

/* ======================================================
   HERO SLIDER (Premium Redesign)
====================================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    background: #f4f7f4;
    min-height: 480px;
}

.swiper-hero {
    width: 100%;
    height: 480px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    align-items: center;
    padding-left: 8%;
    z-index: 2;
}

.hero-content {
    max-width: 650px;
    padding: 45px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 35px;
    color: white;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    opacity: 1;
    text-align: left;
}

.hero-content h2 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.hero-action {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.swiper-slide-active .hero-content h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.swiper-slide-active .hero-content p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.swiper-slide-active .hero-action {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--secondary) 0%, #fb8c00 100%);
    color: white !important;
    font-weight: 700;
    font-size: 17px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(251, 140, 0, 0.4);
}

.btn-hero:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 30px rgba(251, 140, 0, 0.5);
}

.swiper-pagination-bullet {
    background: white !important;
    opacity: 0.4;
    width: 10px;
    height: 10px;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 10px;
    background: var(--secondary) !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: white !important;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--secondary);
    transform: scale(1.1);
}


/* Floating WhatsApp Button */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.wa-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #fff;
}

.wa-float-icon {
    margin-top: 2px;
}

@keyframes wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.wa-float {
    animation: wa-pulse 2s infinite;
}

@media screen and (max-width: 767px) {
    .wa-float {
        width: 50px;
        height: 50px;
        bottom: 85px;
        right: 20px;
        font-size: 25px;
        z-index: 2000;
    }
}