/* Easy Groceries Wireframe CSS */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    margin: 0;
    padding: 0;
}

body {
    background: #d8c2b5;
    font-family: 'Segoe UI', sans-serif;
}

/* HEADER */
.site-header {
    background: #f5f5f5;
    padding: 12px 0;
    border-bottom: none;
}

.nav-links {
    display: flex;
    gap: 25px;
    font-weight: 600;
}

.search-bar input {
    background: #e5e5e5;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
}

/* HERO */
.hero {
    background: #e6b29d;
    border-radius: 10px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-left h1 {
    font-size: 48px;
    color: #e53935;
    font-weight: 800;
}

.hero-left h2 {
    font-size: 24px;
}

.primary-btn {
    background: #e74c3c;
    color: white;
    border-radius: 30px;
    padding: 12px 24px;
    border: none;
}

/* CATEGORY GRID */
.categories {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    background: #e5c07b;
    padding: 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* PRODUCTS */

/* GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* CARD */
.product-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px;
    transition: all 0.25s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* HOVER */
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* IMAGE */
.product-image {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.product-image img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}

/* INFO */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-info .brand {
    font-size: 12px;
    color: #888;
}

.product-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

/* PRICE */
.price {
    font-size: 18px;
    font-weight: 700;
    color: #e53935;
    margin-top: 6px;
}

/* QTY + BUTTON */
.qty-cart {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* QTY BOX */
.qty-box {
    display: flex;
    align-items: center;
    background: #f1f1f1;
    border-radius: 999px;
    overflow: hidden;
}

.qty-box button {
    border: none;
    background: transparent;
    padding: 6px 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.qty-box button:hover {
    background: #ddd;
}

.qty-value {
    padding: 0 10px;
    font-weight: 600;
    font-size: 14px;
}

/* ADD BUTTON */
.add-to-cart {
    background: linear-gradient(135deg, #ff5a4f, #e53935);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.add-to-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(229,57,53,0.4);
}

/* OPTIONAL: ADDED STATE */
.add-to-cart.added {
    background: #2e7d32;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}
.products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: #eee;
    border-radius: 16px;
    padding: 20px;
}

.product-info h4 {
    font-size: 18px;
    font-weight: 700;
}

.product-info .price {
    color: #e53935;
    font-weight: bold;
}

/* ADD BUTTON */
.add-btn {
    background: #e74c3c;
    color: white;
    border-radius: 20px;
    width: 100%;
    height: 40px;
}

/* PRODUCT PAGE */
.product-detail {
    background: transparent;
    box-shadow: none;
}

.product-details h1 {
    font-size: 36px;
}

/* CART PAGE */
.cart-content {
    background: #eee;
    border-radius: 20px;
}

.checkout-btn {
    background: black;
    border-radius: 20px;
}

/* FOOTER */
.site-footer {
    background: #d97b82;
    text-align: center;
}

.hideAll {
    display: none;
}

.pointer {
    cursor: pointer;
}

/* Header Styles */
.site-header {
    background-color: var(--white);
    color: var(--text-dark);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.site-header .grid-container,
.site-main .grid-container,
.site-footer .grid-container {
    max-width: 1200px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.35rem;
    font-weight: bold;
    color: var(--primary-green);
    text-decoration: none;
    gap: 0.5rem;
}

.logo img{
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.8));
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.6rem;
}

.site-header .grid-x {
    align-items: center;
}

.site-header .logo {
    padding-right: 1.25rem;
    border-right: 1px solid var(--border-light);
    min-width: 170px;
}

.header-middle {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    justify-content: flex-start;
}

.location-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    /* background-color: #F6F7F8; */
    /* border: 1px solid var(--border-light); */
    /* border-radius: 999px; */
    padding: 0.1rem 0.25rem;
    height: 2.0rem;
    position: relative;
    /* background-color: #0E5A2A; */
}

.location-dropdown {
    background-color: white;
    border: solid 1px black;
    padding: 0.45rem 0.75rem 0.45rem 0.6rem;
    color: black; 
    background: #ffffff;
    border-radius: 12px;
    padding: 8px 0;
    min-width: 150px;
    font-weight: 600;
    appearance: none;
    background-image: none;
    position: absolute;
    top: 25px;
    left: 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    max-height: 260px;         
    overflow-y: auto;
    list-style-type: none;
    z-index: 1000;
    /* background-color: red; */
    display: none;
}

.location-dropdown li {
    padding: 10px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: 0.2s;
}

.location-dropdown > li:hover {
     background: #f5f5f5;
     color: #e74c3c;
     padding-left: 20px;
}

.location-wrap:hover .location-dropdown {
    display:block
}



.reduce {
    background-color: #4d4d4d;
    color: white;
    padding-bottom: 0.2rem;
    /* margin-left: 1.5rem; */
    font-weight: bold;
    width: 1rem;

    width: 25%;
    background-color: #E6F2E8;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;

}

.plus {
    background-color: #4d4d4d;
    color: white;
    padding-bottom: 0.2rem;
    font-weight: bold;
    /* width: 1rem; */

    width: 25%;
    background-color: #E6F2E8;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity {
    margin: 0 0.2rem;
    width: 2.0rem;
    font-size: 2.0rem;
}

.plus-container {
    margin-bottom: 1.0rem;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
}


.location-caret {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1rem;
    margin-left: -0.05rem;
    padding-right: 0.4rem;
}

.search-bar {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    max-width: 820px;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
}

.search-bar input {
    width: 100%;
    padding: 0.9rem 1.1rem 0.9rem 2.75rem;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    font-size: 1rem;
    background-color: #F1F3F4;
    height: 44px;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.header-actions a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
}



/* Main Content */
.site-main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    background-color: var(--background-light);
}

body.no-sidebar .site-main aside {
    display: none;
}

body.no-sidebar .site-main section.cell {
    flex: 0 0 100%;
    max-width: 100%;
}


/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.35rem;
    margin-top: 1.25rem;
}

.product-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.product-info {
    padding: 1rem;
}

.product-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.product-info .weight {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.product-info .price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-green);
    margin: 0 0 1rem 0;
}

/* Instacart-style add control */
.qty-control {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border: 2px solid var(--primary-green);
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
    background-color: #E6F2E8;
    transform: scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.qty-control.is-active {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.qty-btn {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

.qty-value {
    font-weight: 700;
    color: var(--primary-green);
    min-width: 20px;
    text-align: center;
}

.departments-list::-webkit-scrollbar {
    width: 8px;
}

.departments-list::-webkit-scrollbar-thumb {
    background-color: #C5C9CD;
    border-radius: 999px;
}

/* Department Header */
.department-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* CATEGORY SECTION GRID */
.categories {
    border-radius: 20px ;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* CARD */
.category-card {
    background-color: #e6b29d;
    padding: 10px;    
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid transparent;
}

/* HOVER EFFECT */
.category-card:hover {
    transform: translateY(-4px);
    border-color: #e74c3c;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* INNER LAYOUT (ICON + TEXT) */
.deptInner {
    display: flex;
    align-items: center;
    gap: 15px;
    
}

/* ICON BOX */
.deptIcon {
    width: 70px;
    height: 70px;
    background: #f5d2c5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deptIcon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* TEXT SIDE */
.deptDetails {
    flex: 1;
}

/* TITLE */
.deptName {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

/* DESCRIPTION */
.deptText {
    font-size: 13px;
    color: #444;
    line-height: 1.4;
}

.department-header h1 {
    margin: 0;
    color: var(--text-dark);
    font-size: 2.1rem;
}

.sort-dropdown {
    background-color: var(--white);
    border: 1px solid var(--border-light);
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    color: var(--text-dark);
}

/* Product Detail Page */
.product-detail {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
}

.product-image-large {
    text-align: center;
}

.product-image-large img {
    max-width: 100%;
    border-radius: 12px;
}

.product-details h1 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.product-meta {
    margin-bottom: 2rem;
}

.product-meta .weight {
    color: var(--text-light);
    font-size: 1.1rem;
}

.product-meta .price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-green);
    margin-top: 0.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.quantity-selector button {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
}

.quantity-selector input {
    width: 60px;
    text-align: center;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 0.5rem;
}

.add-to-cart-btn {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1.1rem;
}

/* Home Page Sections */


.hero-kicker {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.hero-sub {
    margin: 0 0 1rem 0;
    color: var(--text-dark);
}

.hero-btn {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.hero-media .media-placeholder {
    height: 160px;
}

.section-block {
    margin-top: 2.5rem;
}

.section-title {
    text-align: center;
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 120px;
    height: 3px;
    background-color: var(--primary-green);
    margin: 0.5rem auto 0;
    border-radius: 999px;
}

.category-grid.eight-grid {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
}


.category-card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1rem;
    text-align: center;
}


.promo-btn {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stars {
    color: var(--primary-green);
    font-weight: 700;
    margin: 0.5rem 0;
}


/* Placeholders */
.media-placeholder,
.thumb-placeholder,
.icon-placeholder,
.avatar-placeholder {
    background-color: #F1F3F5;
    border: 2px dashed #C5C9CD;
    color: #8C9196;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    padding: 1rem;
    min-height: 90px;
}

.thumb-placeholder {
    min-height: 70px;
}

.icon-placeholder {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem auto;
    border-radius: 50%;
}

.avatar-placeholder {
    width: 84px;
    height: 84px;
    margin: 0 auto 0.75rem auto;
    border-radius: 50%;
}

/* Product Page Extras */
.breadcrumb {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.item-code {
    color: var(--text-light);
    margin: 0 0 0.5rem 0;
}

/* Cart Page */
.cart-content {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.cart-summary {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-light);
}

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

.summary-row.total {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-green);
    margin-top: 1rem;
}

.checkout-btn {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
}

.form-container input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.submit-btn {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.auth-wrap {
    max-width: 520px;
    margin: 0 auto;
}

.auth-card {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    padding: 2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-title {
    margin: 0 0 0.4rem 0;
    font-size: 1.8rem;
}

.auth-subtitle {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.input-group {
    position: relative;
    margin-bottom: 1rem;
}

.input-group input {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 1rem;
    background-color: #F8F9FA;
}

.auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.auth-actions a {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
}

.auth-actions a:hover {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background-color: var(--border-light);
    flex: 1;
}

.auth-cta {
    text-align: center;
    margin-top: 0.5rem;
}

.auth-cta a {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
}

.auth-cta a:hover {
    text-decoration: underline;
}

.form-links {
    margin-top: 0.75rem;
    text-align: center;
}

.form-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-link:hover {
    text-decoration: underline;
}

/* Footer */
/* FOOTER */
.site-footer {
    background: #1f1f1f;
    color: #ddd;
    padding-top: 60px;
    margin-top: 60px;
}

/* GRID */
.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    padding: 0 20px 40px;
}

/* BRAND */
.footer-brand p {
    font-size: 14px;
    color: #aaa;
    margin: 12px 0 20px;
}

/* HEADINGS */
.footer-col h4 {
    color: #fff;
    margin-bottom: 14px;
    font-size: 16px;
}

/* LINKS */
.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    text-decoration: none;
    color: #aaa;
    font-size: 14px;
    transition: 0.2s;
}

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

/* SOCIAL */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons i {
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
}

.social-icons i:hover {
    color: #e74c3c;
}

/* NEWSLETTER */
.newsletter-box {
    display: flex;
    margin-top: 10px;
    background: #2a2a2a;
    border-radius: 30px;
    overflow: hidden;
}

.newsletter-box input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    background: transparent;
    color: #fff;
}

.newsletter-box input:focus {
    outline: none;
}

.newsletter-box button {
    background: #e74c3c;
    border: none;
    padding: 0 18px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.newsletter-box button:hover {
    background: #c0392b;
}

/* BOTTOM BAR */
.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #aaa;
}

.footer-links-bottom a {
    margin-left: 15px;
    color: #aaa;
    text-decoration: none;
}

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

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
/* Order Summary */
.order-summary {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.summary-item.total {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-green);
    border-top: 2px solid var(--border-light);
    padding-top: 1rem;
}

/* Locations */
.locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.location-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    text-align: center;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .category-grid.eight-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    .hero-card {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }
    
    .department-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .promo-band {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Legacy Classes for Compatibility */
.pink {
    background-color: pink;
}

.paleblue {
    background-color: paleturquoise;
}

.red {
    background-color: red;
}

.blue {
    background-color: blue;
}

.header_background {
    background-color: red;
}

.callout {
    border: none;
}

.splash {
    display: block;
}


@media (max-width: 900px) {
    .categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .categories {
        grid-template-columns: 1fr;
    }
}


/* PRODUCT PAGE */
.product-detail {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin-top: 20px;
}

/* breadcrumb */
.breadcrumb {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

/* layout spacing */
.product-layout {
    align-items: center;
}

/* image */
.product-image-large {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.product-image-large img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* details */
.product-details h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 10px 0;
}

.product-details .item-code {
    color: #888;
    font-size: 13px;
}

.product-details .price {
    font-size: 24px;
    font-weight: bold;
    color: #2ecc71;
    margin: 10px 0;
}

.product-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* actions */
.product-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* quantity */
.quantity-selector {
    display: flex;
    align-items: center;
    background: #f1f1f1;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-selector button {
    background: none;
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
}

.quantity-selector span {
    padding: 0 15px;
    font-weight: 600;
}

/* add to cart */
.add-to-cart-btn {
    background: #2ecc71;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.add-to-cart-btn:hover {
    background: #27ae60;
}


.product-detail {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.product-details h1 {
    font-size: 32px;
    font-weight: 600;
}

.product-details .price {
    font-size: 26px;
    color: #2ecc71;
    font-weight: bold;
}

.add-to-cart-btn {
    background: #2ecc71;
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    transition: 0.3s;
}

.add-to-cart-btn:hover {
    background: #27ae60;
}