/**
 * Pixel-Perfect Storefront CSS
 * Exact match with reference site: shajgoj.laravelx.shop
 */

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* CSS Variables - Exact Reference Values */
:root {
    /* Primary Colors */
    --primary-color: #e2007c;
    --primary-color-rgb: 226, 0, 124;
    --secondary-color: #d1b3ff;
    
    /* Text Colors */
    --text-color: #050505;
    
    /* Button Colors */
    --btn-color: #5e308a;
    --btn-text-color: #ffffff;
    --buy-now-btn: #5f108c;
    --add-cart-btn: #e10077;
    --checkout-btn: #5c2c87;
    --btn-hover: #a30057;
    
    /* Header/Footer */
    --header-bg: #ffffff;
    --footer-bg: #5e308a;
    
    /* Menu Colors */
    --menu-bg: #e2097d;
    --menu-text: #ffffff;
    --menu-hover: #fbc2ff;
    
    /* Utility Colors */
    --call-btn: #00081f;
    --whatsapp-btn: #0b9301;
    
    /* Mobile Menu */
    --mobile-menu-bg: #252b3b;
}

/* Base Styles */
body {
    font-family: "Hind Siliguri", sans-serif;
    font-size: 14px;
    color: #000;
    overflow-x: hidden;
    line-height: 1.5;
    background: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Poppins", sans-serif;
    margin: 0;
}

/* Container */
.container {
    max-width: 1200px;
}

/* ============================================
   HEADER STYLES
   ============================================ */

/* Header Layout - 20%/55%/25% Grid */
.logo-header {
    display: grid;
    grid-template-columns: 20% 55% 25%;
    grid-gap: 0;
    align-items: center;
}

header {
    position: sticky;
    box-shadow: 0px 0px 10px #ddd;
    top: 0;
    width: 100%;
    z-index: 9999;
    background: var(--header-bg);
}

/* Search Bar */
.main-search form {
    border: 1px solid var(--primary-color);
    height: 39px;
    background: #f7f7f7;
    width: 80%;
    margin: 0 auto;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.main-search form input {
    height: 100%;
    padding: 0 15px;
    font-size: 12px;
    background: #f7f7f7;
    flex: 1;
    border: none;
    outline: none;
}

.main-search form button {
    height: 100%;
    background: var(--primary-color);
    width: 45px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.main-search form button svg {
    height: 20px;
    width: 20px;
    color: #ffffff;
}

/* Header Icons */
.header-list-items ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 0;
    gap: 15px;
}

.header-list-items ul li {
    list-style: none;
}

.header-list-items ul li a,
.header-list-items ul li button {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #000;
}

.header-list-items ul li i,
.header-list-items ul li svg {
    color: var(--primary-color);
    font-size: 22px;
    width: 22px;
    height: 22px;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--primary-color);
    color: #fff;
    height: 18px;
    width: 18px;
    line-height: 18px;
    font-size: 12px;
    border-radius: 50px;
    text-align: center;
}

/* ============================================
   HERO SLIDER STYLES
   ============================================ */

.home-slider-container {
    width: 100%;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
}

.slider-item {
    width: 100%;
    height: 100%;
}

.slider-item img.main-slider-style {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    display: block;
}

/* Right Side Banners */
.sm_baner .sm-banner-stack {
    height: 370px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sm_baner .sm-banner-item {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
}

.sm_baner .banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ============================================
   CATEGORY GRID STYLES
   ============================================ */

.category-grid-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

.category-grid-item {
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 14px;
    text-align: center;
    width: 12.5%; /* 8 per row on desktop */
}

.cat_img img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.category-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-top: 8px;
}

/* ============================================
   PRODUCT CARD STYLES
   ============================================ */

.product_item_inner {
    position: relative;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.product_item_inner:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Product Image */
.pro_img {
    position: relative;
    padding-top: 2px;
    overflow: hidden;
}

.pro_img img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product_item_inner:hover .pro_img img {
    transform: scale(1.05);
}

/* Wishlist Button - Top Left */
.wishlist-btn {
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    right: auto !important;
    bottom: auto !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    border: 1.5px solid var(--primary-color) !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 20 !important;
    padding: 0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10) !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    background: var(--primary-color) !important;
}

.wishlist-btn:hover i,
.wishlist-btn:hover svg {
    color: #fff !important;
}

.wishlist-btn i,
.wishlist-btn svg {
    font-size: 14px !important;
    color: var(--primary-color) !important;
    margin: 0 !important;
    line-height: 1 !important;
    width: 14px;
    height: 14px;
}

/* Sale Badge - Top Right */
.sale-badge {
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 20 !important;
    border-radius: 10px;
    background: var(--primary-color);
    color: #fff;
    padding: 2px 8px;
}

.sale-badge .sale-badge-text {
    font-size: 11px !important;
    font-weight: 700 !important;
}

/* Product Info */
.product-info {
    padding: 12px;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
    margin-bottom: 8px;
}

/* Price Styling */
.details-price {
    font-size: 24px;
    font-weight: 600;
    color: #ff0a2a;
    margin: 10px 0;
    animation: textPulse 2s infinite ease-in-out;
}

.details-price del {
    color: #999;
    margin: 5px 0;
    font-size: 17px;
    text-decoration: line-through;
    font-weight: 400;
}

.product-price .original-price {
    color: #999;
    font-size: 17px;
    text-decoration: line-through;
    font-weight: 400;
}

.product-price .sale-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Product card sale price animation */
.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ============================================
   ORDER BUTTON STYLES
   ============================================ */

/* Keyframes for Animations */
@keyframes pulseZoom {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(63, 0, 81, 0.4);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 6px 15px rgba(63, 0, 81, 0.6);
    }
}

@keyframes textPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

.order_now_btn {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: var(--btn-color);
    border: 1px solid var(--btn-color);
    width: 100%;
    height: 48px;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Hind Siliguri", sans-serif;
    box-shadow: 0 4px 12px rgba(63, 0, 81, 0.4);
    animation: pulseZoom 2s infinite ease-in-out;
}

.order_now_btn:hover,
.order_now_btn:active {
    color: #ffffff !important;
    outline: none;
    box-shadow: 0 6px 15px rgba(117, 3, 119, 0.7);
    animation: none;
    transform: scale(1.06);
}

.add_cart_btn {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--add-cart-btn);
    border: 1px solid var(--add-cart-btn);
    width: 100%;
    height: 48px;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(117, 3, 119, 0.3);
}

.add_cart_btn:hover,
.add_cart_btn:active {
    outline: none;
    box-shadow: 0 6px 15px rgba(63, 0, 81, 0.5);
    transform: translateY(-2px);
}

/* ============================================
   BRAND CAROUSEL STYLES
   ============================================ */

.brand-slide-card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.brand-slide-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.brand-slide-img img {
    max-width: 120px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ============================================
   BLOG CARD STYLES
   ============================================ */

.blog-card {
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-card-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-title a {
    text-decoration: none;
    color: #222;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-title a:hover {
    color: var(--primary-color);
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.footer-main {
    background-color: var(--footer-bg);
    padding: 40px 0 20px;
}

.footer-main,
.footer-main h3,
.footer-main h4,
.footer-main h5,
.footer-main p,
.footer-main a,
.footer-main span {
    color: #fff;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 14px;
}

/* ============================================
   MOBILE MENU STYLES
   ============================================ */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-container {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: var(--mobile-menu-bg);
    z-index: 9999;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-container.active {
    left: 0;
}

.mobile-menu-header {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: var(--primary-color);
}

.mobile-menu-items {
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-menu-items li a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.mobile-menu-items li a:hover {
    background: var(--primary-color);
    padding-left: 25px;
}

/* Submenu Flyout */
.wsit-subcategory-list {
    background: var(--mobile-menu-bg);
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    min-width: 260px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 9999999;
    color: #ffffff;
}


/* ============================================
   SECTION HEADER STYLES
   ============================================ */

.section-title-header {
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    font-family: "Poppins", sans-serif;
    padding-bottom: 10px;
    position: relative;
    text-transform: capitalize;
    display: inline-block;
}

.section-title-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40%;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title-name i {
    font-size: 14px;
    margin-left: 8px;
    color: var(--primary-color);
}

.see-more-link {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.see-more-link:hover {
    background-color: var(--btn-hover);
    color: #fff;
}

/* ============================================
   QUANTITY SELECTOR STYLES
   ============================================ */

.qty-cart {
    width: auto;
    display: flex;
    align-items: center;
    column-gap: 25px;
}

.qty-cart .quantity {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    height: 44px;
    overflow: hidden;
    width: 140px;
    margin-top: 10px;
    background-color: #fff;
    transition: border-color 0.2s ease-in-out;
}

.qty-cart .quantity:focus-within {
    border-color: #007bff;
}

.quantity input {
    position: relative;
    text-align: center;
    font-size: 17px;
    height: 100%;
    width: 100%;
    border: none;
    outline: none;
    padding: 0 45px;
    pointer-events: none;
    font-weight: 500;
    color: #333;
}

.quantity .minus,
.quantity .plus {
    position: absolute;
    bottom: 0;
    z-index: 2;
    height: 100%;
    line-height: 44px;
    width: 44px;
    text-align: center;
    font-size: 20px;
    cursor: pointer;
    background-color: transparent;
    color: #222;
    transition: background-color 0.2s, color 0.2s;
    user-select: none;
    border: none;
}

.quantity .minus {
    left: 0;
    border-right: 1px solid #eee;
}

.quantity .plus {
    right: 0;
    border-left: 1px solid #eee;
    font-size: 24px;
}

.quantity .minus:hover,
.quantity .plus:hover {
    background-color: #f5f5f5;
    color: #007bff;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet - max-width: 991px */
@media (max-width: 991px) {
    .home-slider-container {
        height: 300px;
    }
    
    .sm_baner .sm-banner-stack {
        height: 300px;
    }
    
    .logo-header {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
}

/* Small Tablet - max-width: 767px */
@media (max-width: 767px) {
    .category-grid-item {
        width: 25%; /* 4 per row */
    }
    
    /* Hide categories beyond 8th on mobile */
    .category-item {
        display: none;
    }
    
    .category-item:nth-child(-n+8) {
        display: block;
    }
    
    .category-item.show-all {
        display: block !important;
    }
    
    .sm_baner .sm-banner-stack {
        height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .sm_baner .sm-banner-item {
        height: 120px;
    }
}

/* Mobile - max-width: 575px */
@media (max-width: 575px) {
    .home-slider-container {
        height: auto !important;
    }
    
    .slider-item {
        height: auto;
    }
    
    .slider-item img.main-slider-style {
        height: auto;
        aspect-ratio: 16/9;
    }
    
    .product-title {
        font-size: 13px;
    }
    
    .product-price .sale-price {
        font-size: 16px;
    }
    
    .order_now_btn,
    .add_cart_btn {
        height: 44px;
        font-size: 14px;
    }
    
    .blog-card-image-wrapper {
        height: 150px;
    }
}

/* Desktop - min-width: 768px */
@media (min-width: 768px) {
    .category-item {
        display: block !important;
    }
    
    #toggleCategoriesBtn {
        display: none;
    }
    
    .category-grid-item {
        width: 12.5%; /* 8 per row */
    }
}

/* Large Desktop - min-width: 1200px */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Touch targets - minimum 44px */
.touch-target {
    min-width: 44px;
    min-height: 44px;
}

/* Will-change for animated elements */
.will-animate {
    will-change: transform, box-shadow;
}

/* Line clamp utilities */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Scrollbar hide */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Bengali font class */
.font-bengali {
    font-family: "Hind Siliguri", sans-serif;
}

/* Primary color utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Button color utilities */
.bg-btn-color {
    background-color: var(--btn-color) !important;
}

.bg-footer {
    background-color: var(--footer-bg) !important;
}

.bg-menu {
    background-color: var(--menu-bg) !important;
}
