/* ---------- BLACK + SILVER + ROYAL BLUE THEME ---------- */
/* ---------- THEME COLORS ---------- */
:root {
    --dark-bg: #ffffff;
    --dark-card-bg: #ffffff;
    --text-light: #000000;
    --accent-silver: #C0C0C0;
    --highlight-blue: #1E3A8A;
    --green-dark: #0F3D2E;
}

/* ---------- GLOBAL ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
}

/* ---------- NAVBAR ---------- */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #66996f;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    border-radius: 0 0 10px 10px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left img.logo {
    height: 80px;
    width: auto;
    border-radius: 14px;
    object-fit: cover;
    padding: 4px;
    transition: all 0.35s ease-in-out;
    margin-left: 10px;
}

.nav-left img.logo:hover {
    transform: scale(1.1) rotate(-2deg);
    border-radius: 18px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-right a {
    color: white;
    padding: 8px 14px;
    border-radius: 25px;
    font-weight: 500;
    transition: 0.3s;
    text-decoration: none !important;
}

.nav-right a:hover {
    background: rgba(30, 58, 138, 0.15);
    color: var(--text-light);
}

.nav-right .cart {
    position: relative;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.nav-right .cart:hover {
    transform: scale(1.1);
}

/* ---------- BUTTONS ---------- */
.buttons {
    color: #ffffff;                    
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    border: none;                      
    outline: none;                     
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.buttons:hover{
    /* background-color: var(--highlight-blue);  */
    color: #ffffff;
    transform: translateY(-2px);
}

/* ---------- HERO SLIDER ---------- */
.slider {
    width: 100%;
    max-width: 1400px;
    height: 700px;
    margin: 15px auto;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}
.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ---------- HOME HEADER ---------- */
.home-header {
    text-align: center;
    padding: 50px 15px 20px;
    background-color: #599664;
}
.home-header h1 {
    font-size: 2rem;
    color: white;
}

.gradient-text {
    color: #ffffff;
}

/* ---------- PRODUCTS SECTION ---------- */
.products {
    padding: 50px 25px;
    text-align: center;
    width: 100%;
    max-width: 1300px;
    margin: auto;
}
.products h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

/* ---------- PRODUCT GRID ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 300px)); /* max width for single card */
    justify-content: center; /* center single product */
    gap: 25px;
    margin: auto;
}

/* ---------- PRODUCT CARD ---------- */
.product-card {
    background: var(--dark-card-bg);
    border-radius: 15px;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%; /* will respect grid minmax */
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.15);
}

/* ---------- IMAGE CONTAINER ---------- */
.image-container {
    width: 100%;
    aspect-ratio: 4/3; /* maintains height automatically */
    overflow: hidden;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
}
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* cover → cut hoti thi, contain → full dikhegi */
    object-position: center;
}

/* ---------- PRODUCT INFO ---------- */
.product-info {
    flex: 1;
    padding: 15px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}
.product-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
    text-align: left;
}
.product-info p {
    font-weight: bold;
    font-size: 0.9rem;
    color: #000000;
    line-height: 1.3;
    text-align: left;
}
.price {
    color: #000000;
    margin-top: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}
.original-price {
    text-decoration: line-through;
    margin-right: 5px;
    color: #8d8d8d;
}
.discounted-price {
    font-weight: 700;
    text-align: left;
    color: #000000;
}
.product-info button {
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    border: none;
    background: var(--green-dark);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}
.product-info button:hover {
    background: #0c2f23;
}

/* ---------- SALE BADGE ---------- */
.sale-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.8rem;
    background: #0F3D2E;
    color: #ffffff;
}

/* ---------- FOOTER ---------- */
footer {
    background: #0F3D2E;
    padding: 10px 10px;
    color: white;
    text-align: center;
}
.footer-container {
    padding: 15px 15px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}
.footer-container h3 {
    font-weight: 600;
    margin-bottom: 12px;
}
.footer-container a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
}
.footer-container a:hover {
    color: #76d7b1;
}
.footer-container p {
    color: white;
    font-size: 0.95rem;
    text-align: center;
}

.cart-icon {
    position: relative;
    display: inline-block;
    font-size: 1.5rem;
    color: var(--highlight-blue);
}
.cart-badge { 
    position: absolute; 
    top: -10px; 
    right: -10px; 
    background: black; 
    color: #fff; 
    font-size: 0.75rem; 
    font-weight: 700; 
    padding: 3px 7px; 
    border-radius: 50%; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.2); 
    transition: all 0.3s ease;
}

/* Responsive adjustments for cart badge */
/* Tablets */
@media (max-width: 992px) {
    .cart-badge {
        top: -8px;
        right: -8px;
        font-size: 0.7rem;
        padding: 3px 6px;
    }
}

/* Large Mobiles */
@media (max-width: 768px) {
    .cart-badge {
        top: -7px;
        right: -7px;
        font-size: 0.65rem;
        padding: 3px 6px;
    }
}

/* Mobile fix */
@media (max-width: 576px) {
    .cart-icon {
        font-size: 1.3rem;
    }
    .cart-badge {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        /*top: -30%;*/
        /*right: -30%;*/
    }
}

/* Extra Small Mobiles */
@media (max-width: 375px) {
    .cart-badge {
        top: -5px;
        right: -5px;
        font-size: 0.55rem;
        padding: 2px 4px;
    }
}

/* ============================================ */
/*           KEYFRAMES */
/* ============================================ */
@keyframes fadeUp { from {opacity:0; transform:translateY(40px);} to {opacity:1; transform:translateY(0);} }
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }
@keyframes gradientShift { 0% { background-position:0% 50%; } 50% { background-position:100% 50%; } 100% { background-position:0% 50%; } }
@keyframes cartBounce { 0%,100%{transform:scale(1);} 50%{transform:scale(1.3);} }
.bounce { animation: cartBounce 0.6s ease; }

/* ============================================ */
/*           RESPONSIVE DESIGN */
/* ============================================ */

/* Large tablets & small desktops */
@media (max-width: 1200px) {
    .slider { height: 600px; }
    .home-header h1 { font-size: 1.8rem; }
    /*.image-container { aspect-ratio: 16/9; }*/
    .image-container { aspect-ratio: 16/9; }
}

/* Tablets */
@media (max-width: 992px) {
    nav { flex-wrap: wrap; padding: 10px 15px; }
    .nav-links { gap: 5px; justify-content: center; overflow-x: auto; }
    .nav-links a { padding: 6px 12px; font-size: 0.9rem; }
    .slider { height: 500px; }
    .home-header h1 { font-size: 1.6rem; }
    .products { padding: 40px 15px; }
    .product-info p { font-size: 0.85rem; }
    .product-grid { gap: 20px; }
    .image-container { aspect-ratio: 4/3; }
    .footer-container { text-align: center; }
    .footer-container .social-column { text-align: center; }
}

@media (max-width: 992px) {
    footer p,
    .footer-container p,
    .footer-container,
    .footer-container div {
        text-align: center !important;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }
}

/* Large mobile devices */
@media (max-width: 768px) {
    .slider { height: 400px; }
    .home-header h1 { font-size: 1.5rem; }
    .product-grid { gap: 15px; }
    .image-container { aspect-ratio: 4/3; }
}

/* Mobile devices */
@media (max-width: 576px) {
    .nav { padding: 8px 12px; }
    .nav-left img.logo { height: 60px; }
    .slider { height: 300px; }
    .home-header h1 { font-size: 1.3rem; }
    .products h2 { font-size: 1.5rem; }
    .product-info h3 { font-size: 1rem; }
    .product-info p { font-size: 0.8rem; }
    /*.image-container { aspect-ratio: 1/1; }*/
    .product-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 220px)); }
    .image-container { aspect-ratio: 1/1; }
}

/* Extra small devices */
@media (max-width: 400px) {
    .nav { padding: 8px 12px; }
    .nav-left img.logo { height: 50px; }
    .slider { height: 250px; }
    .home-header h1 { font-size: 1.2rem; }
    .products h2 { font-size: 1.3rem; }
    .product-info button { font-size: 0.85rem; padding: 8px; }
    .product-grid { grid-template-columns: 1fr; }
    .image-container { aspect-ratio: 1/1; }
}

/* Extra extra small devices */
@media (max-width: 375px) {
    .nav { padding: 8px 12px; flex-wrap: wrap; }
    .nav-left img.logo { height: 50px; border-radius: 14px; }
    .nav-links { gap: 4px; overflow-x: auto; justify-content: center; }
    .nav-links a { padding: 5px 8px; font-size: 0.75rem; gap:15px }
    .slider { height: 200px; }
    .products { width: 100%; padding: 20px 10px; }
    .products h2 { font-size: 1.2rem; margin-bottom: 20px; }
    .product-grid { gap: 10px; grid-template-columns: 1fr; }
    .product-info h3 { font-size: 0.95rem; }
    .product-info p { font-size: 0.75rem; }
    .product-info button { font-size: 0.8rem; padding: 8px; }
    footer p { font-size: 0.7rem; }
}

@media (max-width: 768px) {
    .nav {
        padding: 8px 12px;
    }

    .nav-left img.logo {
        height: 45px;
        border-radius: 14px;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-links a {
        font-size: 13px;
        padding: 5px 8px;
    }

    .cart-icon {
        font-size: 18px;
    }
}
