/* RESET */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}


.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 12px 20px;

    background: #fff;
    border-bottom: 1px solid #eee;

    position: sticky;
    top: 0;
    z-index: 9999;
}

/* LEFT */
.logo {
    flex-shrink: 0;
}

.logo img {
    width: 120px;
    display: block;
}

/* CENTER */
.search-wrapper {
    flex: 1;
    max-width: 650px;
    position: relative;
}

/* RIGHT */
.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* USER MENU WRAPPER */
.user-menu {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* TRIGGER */
.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #111;
    padding: 8px 10px;
    border-radius: 6px;
    transition: 0.2s;
}

.user-name:hover {
    background: #f3f4f6;
}

/* DROPDOWN (HIDDEN BY DEFAULT) */
.user-dropdown {
    position: absolute;
    right: 0;
    top: 110%;

    width: 180px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    padding: 8px 0;

    display: none;
    z-index: 9999;
}

/* SHOW WHEN ACTIVE */
.user-menu.active .user-dropdown {
    display: block;
}

/* LINKS */
.user-dropdown a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: #111;
    font-size: 14px;
}

.user-dropdown a:hover {
    background: #f5f5f5;
}

/* LOGOUT BUTTON */
.logout-btn {
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border: none;
    background: none;
    color: red;
    cursor: pointer;
    font-size: 14px;
}

.logout-btn:hover {
    background: #fef2f2;
}

/* divider */
.user-dropdown hr {
    margin: 6px 0;
    border: none;
    border-top: 1px solid #eee;
}


/* MOBILE */
@media (max-width: 768px) {

    .navbar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;

        padding: 10px 12px;
    }

    /* LOGO LEFT */
    .logo {
        order: 1;
    }

    .logo img {
        width: 100px;
    }

    /* CART + LOGIN RIGHT */
    .nav-links {
        order: 2;
        margin-left: auto;

        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* SEARCH BELOW */
    .search-wrapper {
        order: 3;

        width: 100%;
        max-width: 100%;

        flex-basis: 100%;
    }

    .search-form {
        width: 100%;
    }

    .search-form input {
        width: 100%;
    }
}


/*cart icon on home*/
.cart-icon {
    text-decoration: none;
    color: #111;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cart-wrapper {
    position: relative;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
}

/* hover effect */
.cart-icon:hover .cart-wrapper {
    transform: scale(1.1);
}

/* badge */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: red;
    color: white;
    font-size: 11px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* animation when updated */
.cart-badge.animate {
    animation: pop 0.3s ease;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/*Add to Cart */

.cart-bar {
    position: fixed;
    bottom: -120px;
    left: 0;
    width: 100%;
    background: #111;
    color: white;
    padding: 15px;
    transition: 0.3s;
    z-index: 9999;
}

.cart-bar.show {
    bottom: 0;
}

.cart-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.cart-bar img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}


.cart-bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* BUTTON STYLE */
.cart-bar-actions a {
    padding: 10px 14px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
}

/* VIEW CART */
.btn-view {
    background: #fff;
    color: #000;
}

/* CHECKOUT */
.btn-checkout {
    background: orange;
    color: #fff;
}

/* 📱 MOBILE FIX */
@media (max-width: 768px) {

    .cart-bar {
        padding: 12px;
    }

    .cart-bar-content {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 12px;
    }

    /* TEXT AREA */
    .cart-bar-text {
        flex: 1;
        padding-right: 10px;
    }

    /* STACK BUTTONS */
    .cart-bar-actions {
        display: flex;
        flex-direction: column;
        width: 120px;
        gap: 8px;
    }

    .cart-bar-actions a {
        width: 100%;
        padding: 10px;
        font-size: 13px;
    }

    /* SMALLER IMAGE */
    .cart-bar img {
        width: 45px;
        height: 45px;
    }

    /* TEXT CLEANUP */
    .cart-bar-text p {
        margin: 0 0 4px;
        font-size: 14px;
        font-weight: 600;
    }

    .cart-bar-text small {
        font-size: 12px;
        color: #ccc;
    }

    /* CLOSE BUTTON */
    .close-bar {
        font-size: 16px;
        margin-left: 5px;
    }
}

/*VIEW CART PAGE*/
/* CART PAGE */

.cart-page {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

.cart-title {
    font-size: 32px;
    margin-bottom: 30px;
}

.cart-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
}

.cart-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cart-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-product-title {
    font-size: 20px;
    margin-bottom: 8px;
}

.cart-qty {
    color: #666;
    margin-bottom: 5px;
}

.cart-price {
    font-weight: bold;
    color: #111;
}

.cart-total {
    font-size: 20px;
    font-weight: bold;
}

.cart-summary {
    margin-top: 40px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.grand-total {
    font-size: 22px;
}

.checkout-btn {
    display: block;
    width: 100%;
    margin-top: 25px;
    background: #111;
    color: #fff;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.checkout-btn:hover {
    opacity: 0.9;
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
}

/* MOBILE */

@media(max-width:768px) {

    .cart-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-image {
        width: 100%;
        height: 220px;
    }

    .cart-total {
        width: 100%;
        text-align: right;
    }
}


/*increase decrease css for cart*/
.qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.qty-controls button {
    padding: 5px 10px;
    border: none;
    background: #111;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
}

.remove-btn {
    background: red;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.cart-right {
    text-align: right;
}



/* BREADCRUMB */
.breadcrumb {
    font-size: 14px;
    margin-bottom: 15px;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.breadcrumb a {
    text-decoration: none;
    color: #111;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: orange;
}

.breadcrumb span {
    color: #999;
}

.breadcrumb .current {
    color: #555;
    font-weight: 600;
}

/* MOBILE */
@media (max-width: 600px) {
    .breadcrumb {
        font-size: 12px;
    }
}

/* HERO */


.top-bar {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #111827;
    color: white;
}

.top-bar input {
    width: 70%;
    padding: 10px;
    border-radius: 6px;
    border: none;
}

.hero-banner {
    background: linear-gradient(to right, #111827, #1f2937);
    color: white;
    padding: 60px;
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.cat {
    background: white;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    color: #111;
}

.product-row {
    display: flex;
    gap: 15px;
    overflow-x: auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.product-card {
    background: white;
    padding: 10px;
    border-radius: 10px;
}

.promo {
    background: #f59e0b;
    color: white;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.trust {
    display: flex;
    justify-content: space-around;
    padding: 30px;
    background: #f3f4f6;
}

.hero {
    background: orange;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

/* SECTION */
.section {
    padding: 20px;
}

/*SLIDER*/
.featured-slider {
    padding: 10px 20px;
}

.slider-box {
    width: 100%;
    height: 120px; 
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #eee;
}

/* slides */
.featured-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;
    transition: opacity 0.5s ease;
}

/* active slide */
.featured-slide.active {
    opacity: 1;
}


.feature-select {
    position: relative;
    width: 300px;
}

.feature-select__selected {
    background: white;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
}

.feature-select__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    background: white;
    border: 1px solid #ddd;
    max-height: 220px;
    overflow-y: auto;

    display: none;
    z-index: 9999;
}

.feature-select__list.show {
    display: block;
}

.feature-select__item {
    padding: 10px;
    cursor: pointer;
}

.feature-select__item:hover {
    background: #f5f5f5;
}
/* CATEGORIES */
.categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.categories div {
    background: white;
    padding: 20px;
    text-align: center;
    border: 1px solid #ddd;
}

/* PRODUCTS */
.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.card {
    background: white;
    padding: 15px;
    border: 1px solid #ddd;
    transition: 0.3s;
}

.card:hover {
    transform: scale(1.03);
}

.img-box {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 8px;
}

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

.img-box .prev,
.img-box .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
}

.img-box .prev { left: 5px; }
.img-box .next { right: 5px; }

.price {
    display: block;
    font-weight: bold;
    margin: 10px 0;
    color: orange;
}

.card button {
    width: 100%;
    padding: 10px;
    background: black;
    color: white;
    border: none;
    cursor: pointer;
}

.card button:hover {
    background: #333;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.image-input {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.image-input input {
    flex: 1;
}

.remove-btn {
    background: red;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}


/* =========================
   REVIEWS SECTION
========================= */

.reviews-section {
    padding: 20px;
}

.section-title {
    font-size: 22px;
    margin-bottom: 15px;
}

/* =========================
   DESKTOP LAYOUT
========================= */

.reviews-wrapper {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

/* LEFT: FORM (PRIMARY ACTION) */
.review-form-wrapper {
    flex: 1;
    position: sticky;
    top: 20px;
}

/* RIGHT: REVIEWS */
.reviews-list {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* =========================
   REVIEW CARD
========================= */

.review-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    padding: 14px;
    border-radius: 12px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
}

.rating {
    color: #f59e0b;
    font-weight: 600;
}

.review-text {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    margin: 0;
}

.no-reviews {
    color: #888;
}

/* =========================
   FORM STYLE
========================= */

#reviewForm {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 16px;
    border-radius: 12px;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

#reviewForm label {
    font-size: 13px;
    font-weight: 600;
}

#reviewForm select,
#reviewForm textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

* {
    box-sizing: border-box;
}

#reviewForm textarea {
    min-height: 100px;
    resize: none;
}

#reviewForm button {
    background: black;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* =========================
   ALERTS
========================= */

.alert-success {
    background: #e6ffed;
    color: #0a7a2f;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.alert-error {
    background: #ffe6e6;
    color: #a10000;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* =========================
   📱 MOBILE (IMPORTANT PART)
========================= */

@media (max-width: 768px) {

   

    .reviews-wrapper {
        flex-direction: column;
    }
    
    .reviews-list {
        order: 1;
        width: 100%;
    }

    
    .review-form-wrapper {
        order: 2;
        width: 100%;
        position: static;
    }

    /* optional spacing improvement */
    .reviews-list {
        margin-bottom: 15px;
    }

    

    /* FORM FIRST */
    .review-form-wrapper {
        position: static;
        width: 100%;
    }

    /* REVIEWS BELOW */
    .reviews-list {
        width: 100%;
    }

    /* MAKE FORM BIGGER */
    #reviewForm {
        padding: 20px;
    }

    #reviewForm textarea {
        min-height: 140px;
        font-size: 15px;
    }

    #reviewForm select {
        font-size: 15px;
    }

    #reviewForm button {
        padding: 14px;
        font-size: 15px;
    }

    /* REVIEW CARD BIGGER FEEL */
    .review-card {
        padding: 16px;
    }

    .review-text {
        font-size: 15px;
    }
}



/*Search CSS*/
.search-wrapper {
    position: relative;
    width: 300px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    z-index: 999;
    display: none;
    max-height: 250px;
    overflow-y: auto;
}

.search-results div {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
}

.search-results div:hover {
    background: #f5f5f5;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    cursor: pointer;
}

.search-thumb {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
}

.search-item span {
    font-size: 14px;
}

.search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px 0 0 6px;
    outline: none;
}

.search-btn {
    padding: 10px 14px;
    border: none;
    background: black;
    color: white;
    cursor: pointer;
    border-radius: 0 6px 6px 0;
}

.search-btn:hover {
    background: #333;
}


/*  MOBILE (default improvements) */
.navbar {
    flex-wrap: wrap;
    gap: 10px;
}

.search-form {
    width: 100%;
}

.search-form input {
    width: 100%;
}

/* Categories & products stack */
.categories {
    grid-template-columns: repeat(2, 1fr);
}

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


.card {
    padding: 10px;
}


/* Smaller hero text */
.hero h2 {
    font-size: 20px;
}

.hero p {
    font-size: 14px;
}

@media (max-width: 600px) {
    .img-box {
        height: 180px;
    }
}

/* 📲 TABLET */
@media (min-width: 600px) {

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

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

    .search-form input {
        width: 100%;
    }
}

/* 💻 SMALL LAPTOP */
@media (min-width: 900px) {

    .navbar {
        flex-wrap: nowrap;
    }

    .search-form {
        width: 40%;
    }

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

    .categories {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 🖥️ LARGE SCREENS */
@media (min-width: 1200px) {

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

    .search-form input {
        width: 300px;
    }
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.cat {
    background: #fff;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    color: #111;
    font-weight: 600;
    transition: 0.2s;
}

.cat:hover {
    transform: translateY(-3px);
}

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

/* Mobile */
@media (max-width: 600px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


.hero-banner {
    background: linear-gradient(to right, #111827, #1f2937);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 36px;
}

.hero-content p {
    margin-top: 10px;
    font-size: 18px;
}

/* Tablet */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 28px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .hero-banner {
        padding: 50px 15px;
    }

    .hero-content h1 {
        font-size: 22px;
    }

    .hero-content p {
        font-size: 14px;
    }
}



.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.product-card {
    background: white;
    padding: 10px;
    border-radius: 10px;
}

/* Tablet */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


.promo {
    background: #f59e0b;
    color: white;
    padding: 25px;
    text-align: center;
    margin: 20px 0;
    font-weight: bold;
    border-radius: 8px;
}

@media (max-width: 600px) {
    .promo {
        font-size: 14px;
        padding: 18px;
    }
}

.trust {
    display: flex;
    justify-content: space-around;
    padding: 30px;
    background: #f3f4f6;
    text-align: center;
    font-size: 14px;
}

.trust div {
    flex: 1;
}

/* Tablet */
@media (max-width: 768px) {
    .trust {
        flex-wrap: wrap;
        gap: 15px;
    }

    .trust div {
        flex: 50%;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .trust div {
        flex: 100%;
    }
}


@media (max-width: 600px) {

    /* PRODUCTS GRID */
    .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* CARD */
    .card {
        padding: 8px;
        border-radius: 8px;
    }

    /* IMAGE BOX (VERY IMPORTANT) */
    .img-box {
        height: 140px; /* 🔥 reduce from 280px */
    }

    /* PRODUCT NAME */
    .card h3 {
        font-size: 13px;
        margin: 6px 0;
        line-height: 1.2;
    }

    /* DESCRIPTION */
    .card p {
        font-size: 11px;
        display: none; /* 🔥 hide on mobile for cleaner UI */
    }

    /* PRICE */
    .price {
        font-size: 13px;
        margin: 6px 0;
    }

    /* BUTTON */
    .card button {
        padding: 6px;
        font-size: 12px;
    }

    /* SLIDER BUTTONS */
    .img-box .prev,
    .img-box .next {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .products {
        padding: 0;
    }

    .section {
        padding: 10px;
    }
}


/* =========================
   PRODUCT PAGE LAYOUT (CLEAN)
========================= */

.product-page {
    padding: 20px;
}

/* MAIN CONTAINER */
.product-container {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    align-items: flex-start;
}

/* =========================
   LEFT: IMAGES
========================= */

.product-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0; /* IMPORTANT FIX */
}

/* MAIN IMAGE WRAPPER */
.main-image {
    width: 100%;
    height: 360px;
    background: #f5f5f5;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

/* MAIN IMAGE */
.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* shows full image */
}

/* THUMBNAILS */
.thumbnail-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}

.thumbnail:hover {
    border-color: orange;
    transform: scale(1.05);
}

/* =========================
   RIGHT: DETAILS
========================= */

.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* TEXT */
.product-title {
    font-size: 26px;
    font-weight: bold;
}

.product-price {
    font-size: 22px;
    color: orange;
}

.product-description {
    color: #555;
    line-height: 1.5;
}

/* STOCK */
.stock .in-stock {
    color: green;
    font-weight: bold;
}

.stock .out-stock {
    color: red;
    font-weight: bold;
}

/* =========================
   QUANTITY
========================= */

.quantity-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-box button {
    width: 35px;
    height: 35px;
    border: none;
    background: #eee;
    cursor: pointer;
}

.quantity-box input {
    width: 60px;
    text-align: center;
    padding: 5px;
}

/* =========================
   BUTTON
========================= */

.add-cart {
    background: black;
    color: white;
    padding: 12px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
}

.cart-form {
    width: 100%;
}

.add-cart:hover {
    background: #333;
}

/* =========================
   MOBILE FIX
========================= */

@media (max-width: 768px) {

    .product-container {
        flex-direction: column;
    }

    .main-image {
        height: 280px;
    }

    .product-title {
        font-size: 20px;
    }

    .product-price {
        font-size: 18px;
    }

    .thumbnail {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {

    /* MAIN CONTAINER */
    .product-container {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 10px;
    }

    /* IMAGE SECTION */
    .product-images {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }

    /* MAIN IMAGE */
    .main-image {
        width: calc(100% - 60px);
        height: 180px;
        flex: none;
        border-radius: 8px;
    }

    .main-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* THUMBNAILS */
    .thumbnail-list {
        width: 52px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        flex-shrink: 0;
    }

    .thumbnail {
        width: 50px;
        height: 50px;
        object-fit: cover;
        border-radius: 6px;
    }

    /* DETAILS */
    .product-details {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    /* TITLE */
    .product-title {
        font-size: 17px;
        line-height: 1.3;
        margin: 0;
    }

    /* PRICE */
    .product-price {
        font-size: 18px;
        margin: 0;
    }

    /* DESCRIPTION */
    .product-description {
        font-size: 13px;
        line-height: 1.4;

        max-height: 55px;
        overflow-y: auto;

        margin: 0;
    }

    /* STOCK */
    .stock {
        font-size: 13px;
        margin: 0;
    }

    /* QUANTITY */
    .quantity-box {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .quantity-box button {
        width: 30px;
        height: 30px;
    }

    .quantity-box input {
        height: 30px;
    }

    .add-cart {
        width: 100%;
        padding: 12px;
        font-size: 14px;
        border-radius: 8px;
        margin-top: 5px;
    }
}



/*FOOTER CSS*/
.footer {
    background: #0f172a;
    color: #fff;
    padding: 50px 20px;
    margin-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.footer-col h3 {
    margin-bottom: 15px;
    color: #fbbf24;
}

.footer-col a {
    display: block;
    color: #ddd;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-col a:hover {
    color: #fff;
}

.newsletter {
    text-align: center;
    margin-top: 40px;
}

.newsletter input {
    padding: 10px;
    width: 250px;
    border: none;
    border-radius: 5px;
}

.newsletter button {
    padding: 10px 15px;
    border: none;
    background: #f59e0b;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    font-size: 14px;
    color: #ccc;
}

.whatsapp-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px;
    background: #25D366;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    margin-right: 10px;
    color: #ccc;
    font-size: 14px;
}

.back-to-top {
    text-align: center;
    margin-top: 30px;
    cursor: pointer;
    color: #aaa;
}

.back-to-top:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #aaa;
}

.footer-brand {
    color: #fbbf24;
    text-decoration: none;
}

/* MOBILE */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .newsletter input {
        width: 100%;
        margin-bottom: 10px;
    }
}

