/* GLOBAL RESET */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #222;
}

/* HERO BANNER */
.hb-hero {
    background: linear-gradient(135deg, #f7f9fc, #e8f0ff);
    padding: 120px 20px;
    text-align: center;
    color: #333;
}


.hb-hero h1 {
  font-size: 3rem;
  margin: 0 0 10px;
}
.hb-hero p {
  font-size: 1.2rem;
  margin: 0 0 20px;
}
.hb-hero a {
  display: inline-block;
  padding: 12px 28px;
  background: #d6006f;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: bold;
}

/* WEEKLY SPOTLIGHT SECTION */
.hb-weekly-spotlight {
  padding: 60px 20px;
  background: #faf7fb;
}
.hb-ws-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.hb-ws-header {
  text-align: center;
  margin-bottom: 40px;
}
.hb-ws-title {
  font-size: 2.4rem;
  margin: 0 0 10px;
}
.hb-ws-subtitle {
  font-size: 1.1rem;
  color: #7a7283;
  margin: 0 0 14px;
}
.hb-ws-description {
  max-width: 620px;
  margin: 0 auto;
  color: #8b8493;
  font-size: 0.98rem;
}

/* GRID */
.hb-ws-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* CARDS */
.hb-ws-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(15, 6, 43, 0.05);
  transition: 0.18s ease;
}
.hb-ws-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(15, 6, 43, 0.09);
}
.hb-ws-image {
  width: 100%;
  display: block;
}
.hb-ws-card-body {
  padding: 14px;
}
.hb-ws-card-title {
  margin: 0 0 6px;
  font-size: 1rem;
}
.hb-ws-card-price {
  color: #d6006f;
  font-weight: bold;
}

/* BUTTON */
.hb-ws-button-row {
  text-align: center;
  margin-top: 38px;
}
.hb-ws-button {
  padding: 12px 28px;
  background: #d6006f;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: bold;
}

/* CATEGORY BLOCKS */
.hb-categories {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.hb-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.hb-cat-card {
  background: #f7f7f7;
  padding: 40px 20px;
  text-align: center;
  border-radius: 12px;
  transition: 0.18s ease;
}
.hb-cat-card:hover {
  background: #ececec;
}
.hb-cat-card a {
  text-decoration: none;
  color: #222;
  font-size: 1.2rem;
  font-weight: bold;
}

/* FOOTER */
footer {
  background: #222;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  margin-top: 60px;
}

/* QUICK NAV */
.quick-nav {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.quick-btn {
    padding: 10px 18px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.25s ease, transform 0.2s ease;
}

.quick-btn:hover {
    background: #555;
    transform: translateY(-2px);
}
.homepage-layout {
    display: flex;
    gap: 20px;
}

       .main-content {
        width: 100% !important;
        max-width: 500px;
        margin: 0 auto;
    }

.spotlight-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.spotlight-card {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 45px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.spotlight-card img {
    width: 350px;
    border-radius: 10px;
}

.spotlight-info h2 {
    margin-top: 0;
}

.spotlight-price {
    font-size: 22px;
    font-weight: bold;
    margin: 15px 0;
}

.spotlight-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #007bff;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}
/* Desktop layout stays the same */
.homepage-layout {
    display: flex;
    gap: 20px;
}

    .main-content {
        width: 100% !important;
        max-width: 500px;
        margin: 0 auto;
    }

.quick-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    }
 
    .quick-links {
    display: flex;
    gap: 12px;
}

.header-cart {
    position: relative;
}

.cart-icon {
    cursor: pointer;
    font-size: 22px;
    position: relative;
}
.hidden {
    display: none;
}
.mini-cart {
    position: absolute;
    right: 0;
    top: 40px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    width: 260px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
}
.mini-cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.mini-cart-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.mini-cart-info {
    flex: 1;
}

.mini-cart-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.mini-cart-price,
.mini-cart-qty {
    font-size: 13px;
    margin: 2px 0;
}

.mini-cart-variants {
    font-size: 12px;
    margin: 2px 0;
    padding-left: 14px;
}
.mini-cart-thumb {
    width: 50px !important;
    height: 50px !important;
    object-fit: cover;
}

.subcat-buttons {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.subcat-btn {
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #ddd;
}
.page-layout {
    display: flex;
    gap: 25px;
    padding: 20px;
}


/* SIDEBAR CATEGORY LIST */
.cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cat-item {
    margin-bottom: 8px;
    list-style: none;
}

/* MAIN CATEGORY BUTTON */
.cat-toggle {
    width: 100%;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 16px;
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px;
    color: #333;
}

/* ARROW ROTATION */
.cat-item .arrow {
    transition: transform 0.2s ease;
}

.cat-item.open .arrow {
    transform: rotate(90deg);
}

/* SUBCATEGORY LIST */
.sub-list {
    list-style: none;
    padding-left: 15px;
    margin: 5px 0 0;
    display: none;
}

.cat-item.open .sub-list {
    display: block;
}

.sub-list a {
    font-size: 14px;
    display: block;
    padding: 4px 0;
    color: #333;
}
 .homepage-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.main-content {
    width: auto !important;
    max-width: 1200px !important;
    margin: 0 auto;
}
/* Desktop layout */
@media (min-width: 769px) {
    .homepage-layout {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }

    .sidebar {
        width: 180px;
        flex-shrink: 0;
    }

    .main-content {
        flex-grow: 1;
    }
}
/* CATEGORY PAGE PRODUCT GRID — DESKTOP FIX */
@media (min-width: 769px) {

    .product-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
        gap: 20px !important;
        align-items: start !important;
    }

    .product-card {
        max-width: 250px !important;
        margin: 0 auto !important;
    }

    .product-card img {
        width: 100% !important;
        max-width: 250px !important;
        height: auto !important;
        object-fit: cover !important;
    }
}

/* Sidebar button styling */
.sidebar .cat-toggle {
    width: 100%;
    background-color: #42A5F5;
    color: #fff;
    border: none;
    padding: 12px;
    text-align: left;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* ============================
   MOBILE LAYOUT (max-width: 768px)
   ============================ */
@media (max-width: 768px) {

    /* Stack layout */
    .homepage-layout {
        display: block !important;
        width: 100% !important;
    }

    .sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }

    .main-content {
        width: 100% !important;
        margin: 0 auto !important;
    }

    /* Product buttons */
    .product-card a,
    .product-card button,
    .product-card .btn,
    .product-card .button,
    .product-card input[type="submit"],
    .product-card input[type="button"] {
        font-size: 16px !important;
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        margin: 10px auto !important;
        padding: 12px 0 !important;
    }

    /* MAIN CATEGORY BUTTONS */
    .cat-toggle {
        font-size: 18px !important;
        text-align: center !important;
        width: 100% !important;
        padding: 14px 0 !important;
        margin: 8px 0 !important;
        display: block !important;
    }

    /* SUBCATEGORY LINKS */
    .sub-list a {
        font-size: 16px !important;
        text-align: center !important;
        padding: 10px 0 !important;
        display: block !important;
    }

    /* Arrow spacing */
    .cat-toggle .arrow {
        margin-left: 8px;
    }
/* ============================
   DESKTOP LAYOUT (min-width: 769px)
   ============================ */
@media (min-width: 769px) {

    .homepage-layout {
        display: flex !important;
    }

    .sidebar {
        width: 250px !important;
        max-width: 250px !important;
    }

    .main-content {
        width: calc(100% - 250px) !important;
    }

    /* Desktop category buttons */
    .cat-toggle {
        text-align: left !important;
        font-size: 16px !important;
        padding: 10px 12px !important;
    }

    /* Desktop dropdown behavior */
    .sub-list {
        display: none;
    }

    .sub-list.open {
        display: block;
    }

    .cat-toggle .arrow {
        float: right;
        cursor: pointer;
    }
}
 END DESKTOP */


 /* Kill flex layout on mobile */
    .homepage-layout {
        display: block !important;
        width: 100% !important;
    }

    /* Sidebar full width */
    .sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Main content full width */
    .main-content {
        width: 100% !important;
        margin: 0 auto !important;
    }

    /* Product card stacks vertically */
    .product-card {
        display: block !important;
        text-align: center !important;
        width: 100% !important;
    }

    /* Title text */
    .product-card h3 {
        font-size: 16px !important;
        line-height: 1.3 !important;
        text-align: center !important;
        margin: 10px 0 5px 0 !important;
    }

    /* Price / description text */
    .product-card p {
        font-size: 14px !important;
        text-align: center !important;
        margin: 0 0 10px 0 !important;
    }

    /* Buttons */
    .product-card a,
    .product-card button {
        font-size: 16px !important;
        text-align: center !important;
        display: block !important;
        margin: 0 auto !important;
    }

    /* Product images */
    .product-card img {
        max-width: 150px !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 auto !important;
    }

} /* ← THIS MUST BE HERE */

.cat-toggle:hover {
    background-color: #1E88E5;
}

/* Subcategory links */
.sub-list a {
    display: block;
    padding: 6px 10px;
    color: #007bff;
    text-decoration: none;
    font-size: 15px;
}

.sub-list a:hover {
    text-decoration: underline;
}
.cat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f2f2f2;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 5px;
    cursor: pointer;
}

.cat-name {
    flex: 1;
    cursor: pointer;
    font-weight: 600;
}

.arrow {
    cursor: pointer;
    padding-left: 10px;
    font-size: 14px;
}

.sub-list {
    display: none;
    margin-left: 15px;
}

.sub-list.open {
    display: block;
}
.product-card img {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}
.product-card img {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .cat-toggle {
        width: 80% !important;
        margin: 0 auto 10px !important;
        display: block !important;
    }
}

