/* ============================================
   BROTHERS MINI MART - VIP GROCERY STORE
   Premium Professional Theme
   ============================================ */

:root {
    --vip-primary: #000000;
    --vip-primary-dark: #1a1d1a;
    --vip-primary-light: #161616;
    --vip-accent: #FF6F00;
    --vip-accent-light: #FF8F00;
    --vip-white: #FFFFFF;
    --vip-black: #1A1A1A;
    --vip-gray: #6B6B6B;
    --vip-light: #F5F5F5;
    --vip-border: #E8E8E8;
    --vip-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --vip-shadow-hover: 0 15px 40px rgba(0,0,0,0.15);
    --vip-radius: 16px;
    --vip-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   VIP HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
}

.hero-item {
    position: relative;
    display: none;
    min-height: 550px;
}

.hero-item.active {
    display: block;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
    z-index: 2;
}

.min-vh-500 {
    min-height: 550px;
}

.hero-content-box {
    position: relative;
    z-index: 10;
    padding: 40px 0;
}

.hero-label {
    margin-bottom: 20px;
}

.hero-label span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 10px 22px;
    border-radius: 50px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-label i {
    color: #8BC34A;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-shop {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--vip-accent) !important;
    border: none !important;
    color: white !important;
    padding: 16px 36px !important;
    border-radius: 50px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    transition: var(--vip-transition) !important;
    box-shadow: 0 8px 25px rgba(255,111,0,0.35) !important;
}

.btn-shop:hover {
    background: var(--vip-accent-light) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255,111,0,0.45) !important;
}

.btn-shop i {
    transition: var(--vip-transition);
}

.btn-shop:hover i {
    transform: translateX(5px);
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent !important;
    border: 2px solid rgba(255,255,255,0.5) !important;
    color: white !important;
    padding: 14px 28px !important;
    border-radius: 50px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    transition: var(--vip-transition) !important;
}

.btn-contact:hover {
    background: white !important;
    color: var(--vip-primary) !important;
    border-color: white !important;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-floating-icon {
    width: 220px;
    height: 220px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 4s ease-in-out infinite;
    backdrop-filter: blur(20px);
}

.hero-floating-icon i {
    font-size: 80px;
    color: white;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-25px); }
}

.hero-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 100;
}

.hero-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    cursor: pointer;
    transition: var(--vip-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.hero-nav:hover {
    background: white;
    color: var(--vip-primary);
    border-color: white;
}

.hero-indicators {
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--vip-transition);
}

.indicator.active {
    background: white;
    transform: scale(1.3);
}

/* ============================================
   VIP PROMO SECTION
   ============================================ */
.promo-section {
    padding: 30px 0;
    margin-top: -40px;
    position: relative;
    z-index: 50;
}

.promo-card {
    position: relative;
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    overflow: hidden;
    transition: var(--vip-transition);
    height: 100%;
}

.promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.promo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
}

.promo-card.promo-2 {
    background: linear-gradient(135deg, #43A047 0%, #2E7D32 100%);
}

.promo-card.promo-3 {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
}

.promo-icon {
    width: 65px;
    height: 65px;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.promo-icon i {
    font-size: 28px;
    color: white;
}

.promo-text {
    position: relative;
    z-index: 2;
}

.promo-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.promo-text p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

.promo-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--vip-black);
    margin-bottom: 8px;
}

.section-desc {
    font-size: 1rem;
    color: var(--vip-gray);
}

.section-link {
    position: absolute;
    right: 0;
    top: 15px;
    color: var(--vip-primary);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--vip-transition);
}

.section-link:hover {
    color: var(--vip-accent);
    gap: 12px;
}

/* ============================================
   VIP CATEGORIES
   ============================================ */
.category-section {
    padding: 70px 0;
    background: var(--vip-light);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.vip-category-card {
    position: relative;
    background: white;
    border-radius: var(--vip-radius);
    padding: 30px 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--vip-transition);
    box-shadow: var(--vip-shadow);
    overflow: hidden;
    z-index: 1;
}

.vip-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--vip-primary) 0%, var(--vip-primary-light) 100%);
    opacity: 0;
    transition: var(--vip-transition);
    z-index: -1;
}

.vip-category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--vip-shadow-hover);
}

.vip-category-card:hover::before {
    opacity: 1;
}

.vip-category-card:hover .cat-icon-box {
    background: rgba(255,255,255,0.2);
}

.vip-category-card:hover .cat-icon-box i,
.vip-category-card:hover .cat-name,
.vip-category-card:hover .cat-arrow {
    color: white;
}

.cat-icon-box {
    width: 70px;
    height: 70px;
    background: var(--vip-light);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: var(--vip-transition);
}

.cat-icon-box i {
    font-size: 28px;
    color: var(--vip-primary);
    transition: var(--vip-transition);
}

.cat-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--vip-black);
    margin-bottom: 8px;
    transition: var(--vip-transition);
}

.cat-arrow {
    color: var(--vip-gray);
    font-size: 14px;
    transition: var(--vip-transition);
}

.view-all-cat {
    background: linear-gradient(135deg, var(--vip-primary) 0%, var(--vip-primary-light) 100%);
}

.view-all-cat .cat-icon-box {
    background: rgba(255,255,255,0.2);
}

.view-all-cat .cat-icon-box i,
.view-all-cat .cat-name,
.view-all-cat .cat-arrow {
    color: white;
}

/* ============================================
   VIP SERVICES
   ============================================ */
.vip-services {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid var(--vip-border);
}

.vip-services-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-icon {
    width: 55px;
    height: 55px;
    background: #E8F5E9;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 24px;
    color: var(--vip-primary);
}

.service-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--vip-black);
    margin-bottom: 2px;
}

.service-text p {
    font-size: 0.85rem;
    color: var(--vip-gray);
    margin: 0;
}

.service-divider {
    width: 1px;
    height: 40px;
    background: var(--vip-border);
}

/* ============================================
   MOBILE PRODUCT GRID - 3 COLUMNS HORIZONTAL SCROLL
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
    scroll-snap-type: x mandatory;
}

/* Hide scrollbar but keep functionality */
.products-grid::-webkit-scrollbar {
    height: 6px;
}

.products-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.products-grid::-webkit-scrollbar-thumb {
    background: var(--vip-primary);
    border-radius: 10px;
}

/* Product card in horizontal scroll grid */
.products-grid .product-card {
    min-width: calc(33.333% - 8px);
    max-width: calc(33.333% - 8px);
    scroll-snap-align: start;
    margin-bottom: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.products-grid .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.products-grid .product-image {
    display: block;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 12px 12px 0 0;
    
    text-align: center;
}

.products-grid .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: inherit;
}

.products-grid .product-info {
    padding: 12px;
}

.products-grid .product-brand {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
}

.products-grid .product-name {
    font-size: 12px;
    margin: 5px 0;
    line-height: 1.3;
}

.products-grid .product-name a {
    color: #333;
    text-decoration: none;
}

.products-grid .product-rating {
    font-size: 10px;
    margin: 5px 0;
    color: #f5c518;
}

.products-grid .product-rating span {
    color: #999;
}

.products-grid .product-price {
    margin: 8px 0;
}

.products-grid .price-new {
    font-size: 14px;
    font-weight: 700;
    color: var(--vip-primary);
}

.products-grid .price-old {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
    margin-left: 5px;
}

.products-grid .add-to-cart {
    width: 100%;
    padding: 8px;
    font-size: 11px;
    background: var(--vip-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.products-grid .add-to-cart:hover {
    background: var(--vip-accent);
}

.products-grid .product-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    z-index: 5;
}

.products-grid .product-discount {
    background: #ff4757;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
}

.products-grid .product-new-badge,
.products-grid .product-hot-badge {
    background: var(--vip-primary);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
}

.products-grid .product-wishlist {
    background: #fff;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    font-size: 12px;
    color: #999;
}

.products-grid .product-wishlist:hover {
    color: #ff4757;
}

/* Desktop - back to normal grid */
@media (min-width: 992px) {
    .products-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
        overflow-x: visible;
        padding-bottom: 0;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
        scroll-snap-type: none;
    }
    
    .products-grid .product-card {
        min-width: auto;
        max-width: none;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .products-grid .product-card {
        min-width: calc(33.333% - 10px);
        max-width: calc(33.333% - 10px);
    }
}

/* Large Mobile - Landscape */
@media (min-width: 576px) and (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin: 0 -10px;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .products-grid .product-card {
        min-width: calc(33.333% - 7px);
        max-width: calc(33.333% - 7px);
    }
}

/* Small Mobile - Portrait */
@media (max-width: 575px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin: 0 -8px;
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .products-grid .product-card {
        min-width: calc(33.333% - 5px);
        max-width: calc(33.333% - 5px);
    }
    
    /* Smaller product card elements for very small screens */
    .products-grid .product-info {
        padding: 8px;
    }
    
    .products-grid .product-name {
        font-size: 10px;
    }
    
    .products-grid .price-new {
        font-size: 12px;
    }
    
    .products-grid .add-to-cart {
        padding: 6px;
        font-size: 10px;
    }
}

/* ============================================
   VIP PRODUCT CARDS
   ============================================ */
.products-vip-section {
    padding: 70px 0;
}

.products-vip-section.bg-light {
    background: var(--vip-light);
}

.vip-product-card {
    position: relative;
    background: white;
    border-radius: var(--vip-radius);
    overflow: hidden;
    transition: var(--vip-transition);
    box-shadow: var(--vip-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.vip-badge-box {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.vip-discount {
    background: var(--vip-accent);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.vip-new {
    background: var(--vip-primary);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.vip-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: white;
    box-shadow: var(--vip-shadow);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--vip-transition);
}

.vip-wishlist:hover {
    background: var(--vip-accent);
    color: white;
}

.vip-product-image {
    padding: 25px;
    background: #FAFAFA;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.vip-product-image img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    transition: var(--vip-transition);
}

.vip-product-card:hover .vip-product-image img {
    transform: scale(1.08);
}

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

.vip-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--vip-black);
    margin-bottom: 10px;
    line-height: 1.4;
}

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

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

.vip-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 12px;
}

.vip-rating i {
    font-size: 13px;
    color: #DDD;
}

.vip-rating i.active {
    color: #FFC107;
}

.vip-rating span {
    font-size: 13px;
    color: var(--vip-gray);
    margin-left: 5px;
}

.vip-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.vip-current {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--vip-primary);
}

.vip-old {
    font-size: 0.95rem;
    color: var(--vip-gray);
    text-decoration: line-through;
}

.vip-add-cart {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--vip-primary);
    background: transparent;
    color: var(--vip-primary);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--vip-transition);
    margin-top: auto;
}

.vip-add-cart:hover {
    background: var(--vip-primary);
    color: white;
}

/* VIP Grid Products */
.vip-grid-products {
    margin: -12px;
}

.vip-grid-products .row > div {
    padding: 12px;
}

.vip-grid-products .vip-product-card {
    margin-bottom: 0;
}

/* View All Button */
.vip-btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--vip-primary);
    color: white;
    padding: 16px 42px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--vip-transition);
    box-shadow: 0 8px 25px rgba(27,94,32,0.3);
}

.vip-btn-view-all:hover {
    background: var(--vip-primary-dark);
    color: white;
    gap: 18px;
}

/* ============================================
   WHY VIP SECTION
   ============================================ */
.vip-why-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--vip-primary-dark) 0%, var(--vip-primary) 100%);
}

.vip-why-section .section-title {
    color: white;
}

.vip-why-section .section-desc {
    color: rgba(255,255,255,0.8);
}

.vip-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.vip-why-card {
    background: rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--vip-transition);
}

.vip-why-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-10px);
}

.vip-why-icon {
    width: 85px;
    height: 85px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.vip-why-icon i {
    font-size: 36px;
    color: var(--vip-primary);
}

.vip-why-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.vip-why-card p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   SWIPER STYLES
   ============================================ */
.swiper-button-next,
.swiper-button-prev {
    color: var(--vip-primary) !important;
    background: white;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50%;
    box-shadow: var(--vip-shadow);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1199px) {
    .hero-title { font-size: 3.2rem; }
    .min-vh-500 { min-height: 480px; }
}

@media (max-width: 991px) {
    .hero-title { font-size: 2.6rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-link { position: static; display: inline-flex; margin-top: 15px; }
    .section-header { display: flex; flex-direction: column; align-items: center; }
    .vip-services-inner { flex-direction: column; gap: 25px; }
    .service-divider { display: none; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-item { min-height: 450px; }
    .min-vh-500 { min-height: 400px; }
    .hero-controls { bottom: 20px; }
    .hero-nav { width: 40px; height: 40px; }
    .btn-shop { padding: 14px 28px !important; font-size: 14px !important; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .promo-card { padding: 22px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.7rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-label span { font-size: 12px; padding: 8px 16px; }
    .section-title { font-size: 1.7rem; }
    .vip-product-image { min-height: 160px; }
    .vip-add-cart { padding: 12px; font-size: 14px; }
}
