/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f5f5f5;
    color: #222;
}

.alert-error{
    background:#ffe5e5;
    color:#d60000;
    padding:12px;
    border-radius:10px;
    margin-bottom:15px;
    font-size:14px;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 30px;
    background: #ff6b00;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.logo {
    font-weight: 700;
    font-size: 20px;
}


/* =========================
   SEARCH WRAPPER
========================= */
.search-wrapper {
    flex: 1;
    max-width: 650px;
    position: relative;
}

/* FORM */
.search-form {
    display: flex;
    align-items: center;
    width: 100%;
}

/* INPUT */
.search-form input {
    flex: 1;
    padding: 11px 12px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 8px 0 0 8px;
    outline: none;
    font-size: 14px;
}

/* BUTTON */
.search-btn {
    padding: 11px 14px;
    border: none;
    background: #111;
    color: white;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    transition: 0.2s;
}

.search-btn:hover {
    background: #333;
}

/* =========================
   DROPDOWN (FLOATING OVERLAY)
========================= */
.search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;

    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);

    z-index: 99999;

    max-height: 320px;
    overflow-y: auto;

    display: none; /* hidden by default */
}

/* ACTIVE STATE */
.search-results.show {
    display: block;
}

/* ITEM */
.search-item {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
    transition: 0.2s;
}

.search-item span {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937; /* modern dark gray */
}

.search-item:hover {
    background: #f5f5f5;
}

/* IMAGE */
.search-thumb {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 8px;
}

/* TEXT */
.search-item span {
    font-size: 14px;
    font-weight: 500;
}

/* EMPTY */
.search-empty {
    padding: 12px;
    text-align: center;
    color: #777;
    font-size: 14px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.logo {
    font-weight: 700;
    font-size: 20px;
    color: white;
    text-decoration: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}



.nav-btn {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: 0.2s;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.15);
}

.nav-btn.primary {
    background: white;
    color: #ff6b00;
    font-weight: 600;
}

.nav-btn.primary:hover {
    background: #f2f2f2;
}

/* USER BOX */
.user-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hello {
    font-weight: 600;
    font-size: 14px;
}

/* CART */
.cart {
    position: relative;
    font-size: 20px;
    color: white;
    text-decoration: none;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: red;
    color: white;
    font-size: 11px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* =========================
   HERO
========================= */

.hero {
    background: linear-gradient(to right, #ff6b00, #ff8c42);
    color: white;
    padding: 70px 30px;
    text-align: center;
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.hero p {
    opacity: 0.9;
}

.hero button {
    margin-top: 18px;
    padding: 12px 22px;
    border: none;
    background: white;
    color: #ff6b00;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
}

/* =========================
   SECTION
========================= */
.section {
    padding: 35px;
}

.section h2 {
    margin-bottom: 18px;
}


/* FAQ SECTION */
.faq-section{
    padding: 80px 20px;
    background: #fafafa;
}

.section-header{
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-badge{
    display: inline-block;
    background: rgba(255,107,53,.1);
    color: #ff6b35;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-header h2{
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.section-header p{
    color: #666;
    line-height: 1.7;
}

.faq-grid{
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
    gap: 24px;
}

.faq-card{
    background: #fff;
    padding: 28px;
    border-radius: 20px;
    border: 1px solid #eee;
    transition: all .3s ease;
}

.faq-card:hover{
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

.faq-card h3{
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.faq-card p{
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* =========================
   CATEGORY GRID (MODERN)
========================= */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    color: #222;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.10);
}

.category-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff6b00, #ff944d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.category-info h3 {
    font-size: 15px;
    margin-bottom: 4px;
}

.category-info span {
    font-size: 12px;
    color: #888;
}

/* =========================
   PRODUCT GRID
========================= */

.products{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.card{
    background:#fff;
    border:1px solid #eee;
    display:flex;
    flex-direction:column;
    transition:.2s;
}

.card:hover{
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.card-link{
    text-decoration:none;
    color:#222;
    display:block;
}

.img-box{
    width:100%;
    height:220px;
    background:#f5f5f5;
    overflow:hidden;
}

.img-box img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.card h3{
    padding:12px 12px 5px;
    font-size:15px;
}

.card p{
    padding:0 12px;
    font-size:13px;
    color:#777;
    min-height:40px;
}

.card .price{
    display:block;
    padding:10px 12px;
    color:#ff6b00;
    font-weight:700;
}

.add-cart{
    width:100%;
    border:none;
    background:#ff6b00;
    color:#fff;
    padding:12px;
    cursor:pointer;
    font-weight:600;
    margin-top:auto;
}

.empty-state{
    grid-column:1/-1;
    text-align:center;
    padding:60px 20px;
}

.empty-icon{
    font-size:50px;
    margin-bottom:10px;
}

/* =========================
   PRODUCTS RESPONSIVE
========================= */

/* Tablet */
@media (max-width: 1024px) {
    .products {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .img-box {
        height: 160px;
    }

    .card h3 {
        font-size: 14px;
    }

    .card p {
        font-size: 12px;
        min-height: 32px;
    }

    .card .price {
        font-size: 14px;
    }

    .add-cart {
        padding: 10px;
        font-size: 13px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .products {
        grid-template-columns: repeat(2, 1fr); /* still 2 per row */
        gap: 10px;
    }

    .img-box {
        height: 140px;
    }

    .card h3 {
        font-size: 13px;
        line-height: 1.3;
    }

    .card .price {
        font-size: 13px;
    }
}

/* =========================
   AUTH
========================= */
.auth-container {
    width: 100%;
    max-width: 400px;
    margin: 80px auto;
    padding: 30px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: center;
}

.auth-container h2 {
    margin-bottom: 20px;
    font-size: 22px;
}

.auth-container input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
}

.auth-container button {
    width: 100%;
    padding: 12px;
    background: #ff6b00;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

/* OTP */
#otp {
    letter-spacing: 3px;
    text-align: center;
    font-size: 16px;
}


.auth-footer{
    margin-top: 25px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.auth-footer p{
    margin: 0 0 8px;
    color: #666;
    font-size: 14px;
}

.signup-link{
    display: inline-block;
    color: #ff6b35;
    font-weight: 600;
    text-decoration: none;
    transition: .3s;
}

.signup-link:hover{
    color: #e85a24;
    text-decoration: underline;
}

/* =========================
   RESPONSIVE
========================= */

/* Tablets */
@media (max-width: 1024px) {
    .category-grid,
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .search {
        width: 35%;
    }
}

/* Mobile large */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .search {
        width: 100%;
        order: 3;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
    }

    .category-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 26px;
    }
}

.category-emoji {
    font-size: 38px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: white;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: 0.2s ease;
}

.category-card:hover .category-emoji {
    transform: scale(1.1);
}


/* Mobile small */
@media (max-width: 480px) {
    .section {
        padding: 20px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding: 50px 20px;
    }

    .hero h1 {
        font-size: 22px;
    }
}




/* =========================
   BREADCRUMB
========================= */
.breadcrumb {
    padding: 20px 35px;
    font-size: 13px;
    color: #777;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #ff6b00;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb .active {
    color: #222;
    font-weight: 600;
}

/* =========================
   CATEGORY HEADER
========================= */
.category-header {
    padding: 10px 35px 25px;
}

.category-header h1 {
    font-size: 28px;
    margin-bottom: 6px;
}

.category-header p {
    color: #777;
    font-size: 14px;
}

/* =========================
   PRODUCT GRID (REUSE YOUR EXISTING)
========================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 35px;
}

/* =========================
   PRODUCT CARD (MODERN TOUCH)
========================= */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #222;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: 0.25s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.product-image {
    height: 180px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    font-size: 40px;
}

/* BODY */
.product-body {
    padding: 14px;
}

.product-body h3 {
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 600;
}

.price {
    color: #ff6b00;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
}

.view-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background: #ff6b00;
    color: white;
    border-radius: 10px;
    font-weight: 600;
}

/* =========================
   EMPTY STATE
========================= */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #777;
}

.empty-icon {
    font-size: 50px;
    margin-bottom: 10px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }

    .breadcrumb {
        padding: 15px 20px;
    }

    .category-header {
        padding: 10px 20px 20px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .category-header h1 {
        font-size: 22px;
    }
}




/* =========================
   PRODUCT PAGE 
========================= */

.product-page {
    background: #fff; 
    border-radius: 14px;
}

.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;

    height: calc(100vh - 120px); 
    overflow: hidden;

    padding: 15px 35px;
    background: #fff;
    border-radius: 14px;
}

/* =========================
   LEFT SIDE (GALLERY)
========================= */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    overflow: hidden;
}

/* MAIN IMAGE */
.main-image {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #f5f5f5;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* THUMBNAILS */
.thumbnails {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    max-height: 90px;
    overflow: hidden; /* prevents scroll */
}

.thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

/* =========================
   RIGHT SIDE (INFO)
========================= */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    justify-content: center;
    overflow: hidden;
}

/* NAME */
.product-info h1 {
    font-size: 22px;
    line-height: 1.2;
    margin: 0;
}

/* PRICE */
.product-info .price {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b00;
}

/* DESCRIPTION (LIMITED HEIGHT) */
.description {
    font-size: 13px;
    color: #555;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 4; /* limit lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* STOCK */
.stock {
    font-size: 13px;
}

/* BUTTON */
.add-cart-btn {
    margin-top: 5px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #ff6b00;
    color: white;
    font-weight: 600;
    cursor: pointer;
}
/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .product-page {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .main-image {
        height: 320px;
    }
}


/* =========================
   PRODUCT PAGE RESPONSIVE FIX (MOBILE)
========================= */
@media (max-width: 768px) {

    /* STACK LAYOUT */
    .product-page {
        grid-template-columns: 1fr;
        height: auto;          /* allow natural flow */
        overflow: visible;
        padding: 15px 20px;
        gap: 15px;
    }

    /* GALLERY AREA: IMAGE + THUMBNAILS SIDE BY SIDE */
    .gallery {
        display: flex;
        flex-direction: row;   /* KEY CHANGE */
        gap: 10px;
        height: 220px;         /* fixed mobile height */
    }

    /* MAIN IMAGE LEFT */
    .main-image {
        flex: 1;
        height: 100%;
    }

    /* THUMBNAILS RIGHT (VERTICAL) */
    .thumbnails {
        width: 70px;
        max-height: 100%;
        display: flex;
        flex-direction: column;  /* KEY CHANGE */
        flex-wrap: nowrap;
        overflow: hidden;
        gap: 8px;
    }

    .thumbnails img {
        width: 60px;
        height: 60px;
        object-fit: cover;
    }

    /* PRODUCT INFO UNDER IMAGE */
    .product-info {
        height: auto;
        justify-content: flex-start;
        overflow: visible;
    }

    .product-page {
        height: auto !important;
        overflow: visible !important;
    }

    /* OPTIONAL: make description slightly more visible */
    .description {
        -webkit-line-clamp: 6;
    }
}

/* SMALLER PHONES */
@media (max-width: 480px) {

    .gallery {
        height: 220px;
    }

    .thumbnails {
        width: 60px;
    }

    .thumbnails img {
        width: 50px;
        height: 50px;
    }
}




.footer {
    background: #111;
    color: #fff;
    margin-top: 60px;
    padding-top: 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 0 35px 30px;
}

.footer-logo {
    font-size: 22px;
    margin-bottom: 10px;
    color: #ff6b00;
}

.footer-box h3 {
    margin-bottom: 12px;
    font-size: 16px;
    color: #fff;
}

.footer-box p {
    font-size: 13px;
    color: #bbb;
    line-height: 1.5;
}

.footer-box a {
    display: block;
    color: #bbb;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 8px;
    transition: 0.2s;
}

.footer-box a:hover {
    color: #ff6b00;
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding: 15px;
    border-top: 1px solid #222;
    font-size: 13px;
    color: #888;
}

/* RESPONSIVE */
/* TABLET */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px 30px;
    }
}

/* MOBILE */
@media (max-width: 600px) {

    .footer {
        padding-top: 25px;
    }

    .footer-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px 25px;
    }

    /* Brand section full width */
    .footer-box:first-child {
        grid-column: 1 / -1;
    }

    .footer-box {
        background: #1a1a1a;
        border: 1px solid #222;
        border-radius: 16px;
        padding: 16px;
    }

    .footer-box h3 {
        margin-bottom: 10px;
        font-size: 15px;
    }

    .footer-box a {
        margin-bottom: 10px;
        font-size: 13px;
    }

    .footer-box p {
        font-size: 13px;
        line-height: 1.6;
    }

    .footer-bottom {
        padding: 20px 15px;
        font-size: 12px;
    }
}


.cart-link{
    position:relative;
}

#cartCount{
    background:#ff4d4d;
    color:#fff;
    border-radius:50%;
    min-width:22px;
    height:22px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    margin-left:5px;
}



.cart-bar{
    display:none;
    position:fixed;
    left:20px;
    right:20px;
    bottom:20px;
    background:#111;
    color:#fff;
    border-radius:12px;
    padding:15px;
    box-shadow:0 10px 30px rgba(0,0,0,.3);
    z-index:999999;
}

.cart-bar-content{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
}

.cart-bar-actions{
    display:flex;
    gap:10px;
}

.btn-view{
    background:#fff;
    color:#000;
    padding:8px 14px;
    border-radius:6px;
    text-decoration:none;
}

.btn-checkout{
    background:#ff6b00;
    color:#fff;
    padding:8px 14px;
    border-radius:6px;
    text-decoration:none;
}

.close-bar{
    cursor:pointer;
    font-size:20px;
}



/* =========================
   CART PAGE LAYOUT
========================= */
.cart-page {
    padding: 25px 35px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cart-header h2 {
    font-size: 24px;
}

/* =========================
   GRID LAYOUT
========================= */
.cart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

/* =========================
   CART ITEM CARD
========================= */
.cart-item {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 14px;
    margin-bottom: 15px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    align-items: center;
}

.cart-img img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-details {
    flex: 1;
}

.cart-details h3 {
    font-size: 15px;
    margin-bottom: 5px;
}

.price {
    color: #ff6b00;
    font-weight: 600;
}

/* =========================
   QUANTITY CONTROL
========================= */
.qty-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: #eee;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.qty-btn:hover {
    background: #ddd;
}

/* =========================
   ACTIONS
========================= */
.cart-actions {
    text-align: right;
}

.total {
    font-weight: 700;
    margin-bottom: 10px;
}

.remove-btn {
    background: transparent;
    border: none;
    color: red;
    cursor: pointer;
    font-size: 13px;
}

.remove-btn:hover {
    text-decoration: underline;
}

/* =========================
   SUMMARY BOX
========================= */
.cart-summary {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    height: fit-content;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.cart-summary h3 {
    margin-bottom: 15px;
}

.summary-row,
.summary-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-total {
    font-weight: 700;
    font-size: 16px;
}

/* =========================
   CHECKOUT BUTTON
========================= */
.checkout-btn {
    width: 100%;
    padding: 12px;
    background: #ff6b00;
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 10px;
    margin-top: 15px;
    cursor: pointer;
}

.checkout-btn:hover {
    background: #e65f00;
}

/* =========================
   EMPTY STATE
========================= */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    color: #777;
}

.empty-icon {
    font-size: 50px;
    margin-bottom: 10px;
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 768px) {

    .cart-grid {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-actions {
        width: 100%;
        display: flex;
        justify-content: space-between;
        margin-top: 10px;
    }
}



/* =========================
   CHECKOUT PAGE
========================= */

.checkout-page{
    padding: 40px;
}

.checkout-grid{
    display:grid;
    grid-template-columns: 1.2fr 1fr;
    gap:25px;
}

.checkout-left,
.checkout-right{
    background:#fff;
    padding:20px;
    border-radius:14px;
    box-shadow:0 6px 20px rgba(0,0,0,0.06);
}

.checkout-left textarea{
    width:100%;
    padding:12px;
    border-radius:10px;
    border:1px solid #ddd;
    margin-top:10px;
    resize:none;
}

.pay-btn{
    width:100%;
    margin-top:20px;
    padding:14px;
    background:#ff6b00;
    color:#fff;
    border:none;
    border-radius:10px;
    font-weight:600;
    cursor:pointer;
}

.summary-item{
    display:flex;
    justify-content:space-between;
    font-size:13px;
    margin-bottom:8px;
}

.summary-row,
.summary-total{
    display:flex;
    justify-content:space-between;
    margin-top:10px;
}

.summary-total{
    font-weight:700;
    font-size:16px;
}

.checkout-btn-link{
    display:block;
    width:100%;
    text-align:center;
    padding:14px;
    background:#ff6b00;
    color:#fff;
    border-radius:10px;
    font-weight:600;
    text-decoration:none;
    transition:0.2s;
}

.checkout-btn-link:hover{
    background:#e85f00;
}



.checkout-grid{
    display:grid;
    grid-template-columns: 2fr 1fr;
    gap:25px;
    align-items:start;
}

.checkout-summary{
    background:#fff;
    padding:20px;
    border-radius:14px;
    box-shadow:0 6px 18px rgba(0,0,0,.06);
    position:sticky;
    top:20px;
}

.checkout-form{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.checkout-form input,
.checkout-form textarea{
    width:100%;
    padding:12px;
    border-radius:10px;
    border:1px solid #ddd;
    outline:none;
}

.checkout-form input:focus,
.checkout-form textarea:focus{
    border-color:#111827;
}

.summary-box{
    margin-top:10px;
    padding-top:10px;
    border-top:1px solid #eee;
}

.summary-row,
.summary-total{
    display:flex;
    justify-content:space-between;
    margin:6px 0;
}

.summary-total{
    font-weight:700;
    font-size:16px;
}

.pay-btn{
    margin-top:15px;
    background:#111827;
    color:white;
    padding:14px;
    border:none;
    border-radius:12px;
    font-weight:600;
    cursor:pointer;
}

.card-actions {
    padding: 10px 12px;
    border-top: 1px solid #eee;
}

.card-actions button {
    width: 100%;
}



/* =========================
   REVIEWS SECTION
========================= */

.reviews-section {
    padding: 20px;
    background: #fff;
}

/* WRAPPER: FORM + LIST SIDE BY SIDE */
.reviews-wrapper {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

/* =========================
   LEFT: FORM
========================= */

.review-form-wrapper {
    flex: 1;
    position: sticky;
    top: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 18px;
    border-radius: 12px;
}

/* FORM TITLE */
.review-form-wrapper h3 {
    margin-bottom: 12px;
    font-size: 18px;
}

/* FORM ELEMENTS */
#reviewForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#reviewForm label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

#reviewForm input,
#reviewForm select,
#reviewForm textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

#reviewForm textarea {
    min-height: 110px;
    resize: none;
}

/* SUBMIT BUTTON */
#reviewForm button {
    background: black;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

#reviewForm button:hover {
    background: #333;
}

/* =========================
   RIGHT: REVIEWS LIST
========================= */

.reviews-list {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reviews-list h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

/* REVIEW CARD */
.review-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 14px;
    border-radius: 10px;
    transition: 0.2s;
}

.review-card:hover {
    transform: translateY(-2px);
}

/* HEADER (NAME + RATING) */
.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
    color: #111;
}

/* STAR RATING */
.review-header span {
    color: #f59e0b;
    font-weight: 600;
}

/* TITLE */
.review-card h4 {
    margin: 5px 0;
    font-size: 15px;
    color: #111;
}

/* COMMENT TEXT */
.review-card p {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    margin: 0;
}

/* EMPTY STATE */
.reviews-list p {
    color: #888;
}

/* =========================
   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 RESPONSIVE
========================= */

@media (max-width: 768px) {

    .reviews-wrapper {
        flex-direction: column;
    }

    .review-form-wrapper {
        position: static;
        width: 100%;
    }

    .reviews-list {
        width: 100%;
    }

    #reviewForm button {
        padding: 14px;
        font-size: 15px;
    }

    .review-card {
        padding: 16px;
    }
}



/* =========================
   BLOG LIST (ROW STYLE)
========================= */

.blog-list {
    max-width: 900px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* SINGLE ROW CARD */
.blog-row {
    display: flex;
    gap: 18px;
    align-items: center;

    background: #fff;
    border-radius: 14px;
    overflow: hidden;

    text-decoration: none;
    color: inherit;

    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
}

.blog-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

/* IMAGE (SMALLER NOW) */
.blog-row-image {
    width: 180px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
}

.blog-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-row:hover .blog-row-image img {
    transform: scale(1.06);
}

/* CONTENT */
.blog-row-content {
    padding: 10px 5px;
}

.blog-row-content h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #111;
}

.blog-row-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* READ MORE */
.read-more {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #2b6cff;
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 768px) {

    .blog-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-row-image {
        width: 100%;
        height: 180px;
    }
}


.blog-hero {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid #eef0f3;
    position: relative;
    overflow: hidden;
}

/* subtle background glow effect */
.blog-hero::before {
    content: "";
    position: absolute;
    top: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(43,108,255,0.12), transparent 70%);
    border-radius: 50%;
}

.blog-hero::after {
    content: "";
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(0,200,150,0.10), transparent 70%);
    border-radius: 50%;
}

/* inner container */
.blog-hero-inner {
    max-width: 800px;
    margin: auto;
    position: relative;
    z-index: 2;
}

/* heading */
.blog-hero h1 {
    font-size: 40px;
    font-weight: 800;
    color: #111;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

/* paragraph */
.blog-hero p {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    max-width: 600px;
    margin: auto;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

    .blog-hero {
        padding: 60px 16px;
    }

    .blog-hero h1 {
        font-size: 28px;
    }

    .blog-hero p {
        font-size: 14px;
    }
}



.blog-container {
    max-width: 800px;
    margin: auto;
    padding: 30px;
}

.main-img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 20px;
}

.intro {
    font-size: 18px;
    color: #444;
    margin-bottom: 20px;
}

.paragraph {
    font-size: 16px;
    line-height: 1.8;
    margin: 20px 0;
}

.blog-img {
    width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

/* =========================
   BLOG POST PAGE (MODERN)
========================= */

.blog-container{
    max-width: 780px;
    margin: 40px auto;
    padding: 0 20px;
}

/* TITLE */
.blog-title{
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    color: #111;
    margin-bottom: 10px;
}

/* META */
.blog-meta{
    font-size: 13px;
    color: #777;
    margin-bottom: 20px;
}

/* MAIN IMAGE (SMALL + CONTROLLED) */
.blog-main-image{
    width: 100%;
    height: 360px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 25px;
    background: #f5f5f5;
}

.blog-main-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* INTRO */
.blog-intro{
    font-size: 18px;
    line-height: 1.7;
    color: #444;
    font-weight: 500;
    margin-bottom: 25px;
}

/* TEXT BLOCKS */
.blog-text{
    font-size: 16px;
    line-height: 1.9;
    color: #333;
    margin: 22px 0;
}

/* IMAGE BLOCKS */
.blog-image{
    margin: 28px 0;
}

.blog-image img{
    width: 100%;
    border-radius: 12px;
    max-height: 420px;
    object-fit: cover;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px){

    .blog-title{
        font-size: 26px;
    }

    .blog-main-image{
        height: 220px;
    }

    .blog-intro{
        font-size: 16px;
    }
}

.blog-text{
    font-size:17px;
    line-height:1.9;
    color:#333;
    margin-bottom:24px;
}

.blog-text p{
    margin-bottom:18px;
}

.blog-text h2{
    font-size:30px;
    margin:40px 0 15px;
    color:#111;
}

.blog-text h3{
    font-size:24px;
    margin:30px 0 12px;
    color:#111;
}

.blog-text strong,
.blog-text b{
    font-weight:700;
    color:#111;
}

.blog-text a{
    color:#ff6b00;
    text-decoration:none;
    font-weight:600;
}

.blog-text a:hover{
    text-decoration:underline;
}

.blog-text ul,
.blog-text ol{
    padding-left:25px;
    margin:20px 0;
}

.blog-text li{
    margin-bottom:10px;
}

.blog-text blockquote{
    border-left:4px solid #ff6b00;
    padding-left:20px;
    margin:25px 0;
    color:#555;
    font-style:italic;
}


/* =========================
   HOME BLOG SECTION
========================= */

.section-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.view-all-btn{
    text-decoration:none;
    color:#ff6b00;
    font-weight:600;
}

.blog-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.blog-card{
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    text-decoration:none;
    color:inherit;
    border:1px solid #eee;
    transition:.25s;
}

.blog-card:hover{
    transform:translateY(-4px);
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.blog-card-image{
    aspect-ratio:16/9;
    overflow:hidden;
}

.blog-card-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.blog-card-content{
    padding:15px;
}

.blog-card-content h3{
    font-size:17px;
    margin-bottom:8px;
    line-height:1.4;

    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.blog-card-content p{
    font-size:14px;
    color:#666;

    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

@media(max-width:992px){
    .blog-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:576px){
    .blog-grid{
        grid-template-columns:1fr;
    }
}



/* ===========================
   CONTACT PAGE
=========================== */

.page-banner{
    background:#f8fafc;
    padding:70px 20px;
    text-align:center;
}

.page-banner h1{
    font-size:42px;
    margin-bottom:15px;
    color:#222;
}

.page-banner p{
    max-width:700px;
    margin:auto;
    color:#666;
    line-height:1.8;
    font-size:17px;
}

.contact-section{
    padding:70px 20px;
}

.contact-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
    margin-bottom:60px;
}

.contact-card{
    background:#fff;
    border:1px solid #eee;
    border-radius:15px;
    padding:35px;
    text-align:center;
    transition:.3s;
}

.contact-card:hover{
    transform:translateY(-6px);
    box-shadow:0 12px 35px rgba(0,0,0,.08);
}

.contact-card .icon{
    font-size:45px;
    margin-bottom:20px;
}

.contact-card h3{
    margin-bottom:15px;
    font-size:22px;
}

.contact-card p{
    color:#666;
    line-height:1.8;
    margin-bottom:18px;
}

.contact-card a{
    color:#0d9488;
    font-weight:600;
    text-decoration:none;
}

.contact-card a:hover{
    text-decoration:underline;
}

.contact-info{
    max-width:850px;
    margin:auto;
    text-align:center;
}

.contact-info h2{
    margin-bottom:20px;
    font-size:34px;
}

.contact-info p{
    color:#666;
    line-height:2;
    margin-bottom:20px;
}

/* Tablet */

@media(max-width:900px){

.contact-grid{
    grid-template-columns:repeat(2,1fr);
}

}

/* Mobile */

@media(max-width:650px){

.page-banner{
    padding:55px 20px;
}

.page-banner h1{
    font-size:32px;
}

.contact-grid{
    grid-template-columns:1fr;
}

.contact-card{
    padding:28px;
}

.contact-info h2{
    font-size:28px;
}

}



/* ==========================
   FAQ PAGE
========================== */

.faq-page{

    padding:70px 20px;

}

.faq-wrapper{

    max-width:900px;
    margin:auto;

}

.faq-item{

    border:1px solid #e5e7eb;
    border-radius:12px;
    margin-bottom:18px;
    overflow:hidden;
    background:#fff;

}

.faq-question{

    width:100%;
    border:none;
    background:#fff;
    cursor:pointer;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:22px 28px;

    font-size:18px;
    font-weight:600;

    text-align:left;

    transition:.3s;

}

.faq-question:hover{

    background:#f8fafc;

}

.faq-question span{

    font-size:28px;
    color:#0d9488;
    transition:.3s;

}

.faq-answer{

    max-height:0;
    overflow:hidden;

    transition:max-height .35s ease;

    background:#fafafa;

}

.faq-answer p{

    padding:0 28px 25px;

    color:#555;

    line-height:1.9;

}

.faq-item.active .faq-answer{

    max-height:300px;

}

.faq-item.active .faq-question span{

    transform:rotate(45deg);

}

/* Tablet */

@media(max-width:900px){

.faq-question{

    font-size:17px;

}

}

/* Mobile */

@media(max-width:600px){

.faq-page{

    padding:50px 15px;

}

.faq-question{

    padding:18px;
    font-size:16px;

}

.faq-answer p{

    padding:0 18px 18px;

}

}


/* ==========================
   POLICY PAGES
========================== */

.policy-page{

    padding:70px 20px;

}

.policy-box{

    background:#fff;

    border:1px solid #ececec;

    border-radius:14px;

    padding:35px;

    margin-bottom:30px;

    transition:.3s;

}

.policy-box:hover{

    box-shadow:0 12px 30px rgba(0,0,0,.06);

}

.policy-box h2{

    margin-bottom:18px;

    color:#111827;

    font-size:28px;

}

.policy-box p{

    color:#555;

    line-height:2;

}

.policy-box ul{

    padding-left:20px;

}

.policy-box li{

    margin-bottom:14px;

    color:#555;

    line-height:1.8;

}

@media(max-width:768px){

.policy-page{

    padding:50px 15px;

}

.policy-box{

    padding:25px;

}

.policy-box h2{

    font-size:24px;

}

}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 55px;   /* Adjust as needed */
    width: auto;
    display: block;
}


/* ==========================
   CHECKOUT RESPONSIVE
========================== */

@media (max-width: 768px) {

    .checkout-page {
        padding: 20px 15px;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Make order summary flow normally */
    .checkout-summary {
        position: static;
        top: auto;
        width: 100%;
        padding: 18px;
    }

    .checkout-form {
        gap: 14px;
    }

    .checkout-form input,
    .checkout-form textarea {
        font-size: 16px; /* Prevent iPhone zoom */
    }

    /* Cart items */
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .cart-img {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .cart-img img {
        width: 120px;
        height: 120px;
    }

    .cart-details {
        width: 100%;
    }

    .cart-actions {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
    }

    .qty-box {
        margin-top: 12px;
    }

    .summary-box {
        margin-top: 18px;
    }

    .pay-btn {
        padding: 15px;
        font-size: 16px;
    }
}

/* Small phones */
@media (max-width: 480px) {

    .checkout-page {
        padding: 15px 10px;
    }

    .cart-header h2 {
        font-size: 22px;
    }

    .cart-header p {
        font-size: 14px;
    }

    .cart-item {
        padding: 14px;
    }

    .cart-img img {
        width: 100px;
        height: 100px;
    }

    .cart-details h3 {
        font-size: 15px;
    }

    .price,
    .total {
        font-size: 15px;
    }

    .qty-btn {
        width: 34px;
        height: 34px;
    }

    .checkout-summary {
        padding: 16px;
    }

    .summary-row,
    .summary-total {
        font-size: 14px;
    }

    .summary-total {
        font-size: 17px;
    }

    .pay-btn {
        font-size: 15px;
    }
}