/* ======== BASIC STYLES ======== */
:root {
    --primary-color: #4caf50;
    --primary-dark: #388e3c;
    --primary-light: #c8e6c9;
    --secondary-color: #f8f4eb;
    --accent-color: #8bc34a;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --info-color: #2196f3;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: #f9f9f9;
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-success:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-success {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-success:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

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

.bg-light-green {
    background-color: var(--secondary-color);
}

/* ======== HEADER & NAVBAR ======== */
.navbar {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-light .navbar-brand {
    color: var(--primary-color);
    font-weight: bold;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-color);
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-light .navbar-nav .active > .nav-link {
    color: var(--primary-color);
}

/* Badge for cart and wishlist count */
.badge {
    padding: 0.25em 0.6em;
    font-size: 0.75rem;
}

/* ======== HOME PAGE ======== */
.hero-section {
    background-color: var(--secondary-color);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.section-title {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-padding {
    padding: 3rem 0;
}

.benefit-card {
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    color: var(--primary-color);
}

.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
}

/* ======== PRODUCT CARD ======== */
.product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.product-title a {
    color: var(--text-color);
}

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

.product-price {
    margin-bottom: 0.5rem;
}

.current-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

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

.discount-percentage {
    color: var(--danger-color);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

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

.btn-wishlist {
    background-color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: none;
    transition: all 0.3s ease;
}

.btn-wishlist:hover {
    transform: scale(1.1);
}

.btn-wishlist i {
    color: var(--danger-color);
}

/* ======== PRODUCT DETAIL PAGE ======== */
.product-detail-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-detail-info {
    padding: 1rem;
}

.stock-status {
    margin-bottom: 1rem;
}

.quantity-btn {
    width: 40px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-btn {
    background-color: #25d366;
    border-color: #25d366;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    border-color: #128c7e;
}

/* ======== CART & CHECKOUT ======== */
.table .product-title {
    font-size: 0.9rem;
}

.quantity-control .form-control {
    text-align: center;
}

.coupon-form .input-group {
    max-width: 100%;
}

/* ======== ORDER TRACKING ======== */
.order-track {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.order-track:before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--border-color);
    z-index: 1;
}

.order-track-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 25%;
}

.order-track-status {
    position: relative;
    margin-bottom: 15px;
}

.order-track-status-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--border-color);
    margin: 0 auto;
}

.order-track-status-line {
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 3px;
    background-color: var(--border-color);
}

.order-track-step.active .order-track-status-dot {
    background-color: var(--primary-color);
}

.order-track-text {
    margin-top: 10px;
}

.order-track-text-stat {
    font-weight: bold;
    margin-bottom: 5px;
}

.order-track-text-sub {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ======== FOOTER ======== */
.footer {
    background-color: var(--primary-color);
    color: white;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
    color: white;
}

/* ======== HORIZONTAL SCROLLING SECTIONS ======== */
.scroll-container {
    overflow-x: auto;
    display: flex;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #e9e9e9;
    padding: 10px 0;
    gap: 15px;
    position: relative;
}

.scroll-container::-webkit-scrollbar {
    height: 6px;
}

.scroll-container::-webkit-scrollbar-track {
    background: #e9e9e9;
    border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.scroll-container .product-card {
    min-width: 250px;
    max-width: 250px;
    margin-bottom: 10px;
    flex: 0 0 auto;
}

.category-card {
    min-width: 220px;
    max-width: 220px;
    height: 200px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

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

.category-card .category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
}

.category-card .category-info h5 {
    margin: 0;
    font-size: 1.1rem;
}

.scroll-controls {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 10px;
}

.scroll-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

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

/* ======== CATEGORY HERO BANNER ======== */
.category-hero-banner {
    margin-bottom: 2rem;
}

.hero-banner {
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* ======== FILTER SECTION ======== */
.filter-section {
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.filter-title {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

/* ======== PRODUCT LIST/GRID VIEW ======== */
.product-list-view {
    display: block;
}

.product-list-view .product-card {
    display: flex;
    flex-direction: row;
    height: auto;
    max-height: none;
    min-width: 100%;
    max-width: 100%;
}

.product-list-view .product-image {
    width: 200px;
    min-width: 200px;
}

.product-list-view .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-list-view .product-description {
    flex: 1;
    margin-bottom: 1rem;
}

.product-list-view .product-actions {
    align-self: flex-end;
}

/* ======== RESPONSIVE ADJUSTMENTS ======== */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
    
    .product-detail-info {
        margin-top: 1.5rem;
    }
    
    .order-track-step {
        font-size: 0.8rem;
    }
    
    .scroll-container .product-card {
        min-width: 180px;
        max-width: 180px;
    }
    
    .category-card {
        min-width: 160px;
        max-width: 160px;
        height: 160px;
    }
    
    .hero-banner {
        height: 180px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .product-list-view .product-card {
        flex-direction: column;
    }
    
    .product-list-view .product-image {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .product-image img {
        height: 150px;
    }
    
    .order-track:before {
        top: 20px;
    }
    
    .order-track-status-dot {
        width: 20px;
        height: 20px;
    }
    
    .order-track-status-line {
        top: 10px;
    }
    
    .order-track-text-stat {
        font-size: 0.8rem;
    }
    
    .order-track-text-sub {
        font-size: 0.7rem;
    }
}
