/* ==========================================================================
   Shop / Menu Page Styles
   ========================================================================== */

/* ---------- Breadcrumb ---------- */

.shop-breadcrumb {
    padding: var(--space-sm) 0;
    background-color: #F8F6EF;
}

/* ---------- Page Layout ---------- */

.shop-page {
    padding: 40px 0 80px;
}

.shop-title {
    font-size: var(--text-h1);
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 32px;
}

/* ---------- Category Tabs ---------- */

.shop-tabs {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #fff;
    border-radius: 12px;
    padding: 24px 24px 0;
    margin-bottom: 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* On mobile the header is fixed — push sticky tabs below it */
@media (max-width: 1100px) {
    .shop-tabs {
        top: 70px;
    }
}

.shop-tabs-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    white-space: nowrap;
}

.shop-tab {
    position: relative;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-dark);
    padding-bottom: 24px;
    text-decoration: none;
    transition: color 0.3s ease;
    flex-shrink: 0;
}
.shop-tab:last-child {
    border-right: 16px solid transparent;
}

.shop-tab:hover {
    color: var(--color-primary);
}

.shop-tab.active {
    color: var(--color-primary);
    font-weight: 700;
}

.shop-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 37px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: var(--radius-pill);
}

/* Hide scrollbar on tabs */
.shop-tabs::-webkit-scrollbar {
    display: none;
}

.shop-tabs {
    scrollbar-width: none;
}

/* ---------- Category Section ---------- */

.shop-category-section {
    margin-bottom: 40px;
    padding-top: 20px;
}

.shop-category-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: 24px;
}

.shop-category-count {
    font-weight: 400;
}

.shop-category-section + .shop-category-section {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 40px;
}

/* ---------- Products Grid ---------- */

.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ---------- Product Card ---------- */

.shop-product-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-card-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.shop-product-image-link {
    display: block;
    width: 100%;
}

.shop-product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
}

.shop-product-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.shop-product-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.shop-product-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.4;
    text-decoration: none;
}

.shop-product-name:hover {
    color: var(--color-primary);
}

.shop-product-desc {
    font-size: 12px;
    font-weight: 300;
    color: #5b5b5b;
    line-height: 1.4;
}

/* ---------- Price + Cart Button Row ---------- */

.shop-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shop-product-prices {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
}

.shop-product-price-old {
    font-size: 12px;
    font-weight: 300;
    color: #5b5b5b;
    text-decoration: line-through;
}

/* ---------- Add to Cart Button ---------- */

.shop-add-to-cart {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    padding: 13px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    background: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-add-to-cart:hover {
    border-color: var(--color-primary);
    background-color: rgba(181, 211, 52, 0.1);
}

.shop-add-to-cart.adding {
    opacity: 0.5;
    pointer-events: none;
}

.shop-add-to-cart.added {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
}

.shop-add-to-cart.added svg path {
    fill: #fff;
}

.shop-add-to-cart svg {
    width: 32px;
    height: 32px;
}

/* ==========================================================================
   Responsive — Tablet (max-width: 1100px)
   ========================================================================== */

@media (max-width: 1100px) {
    .shop-title {
        font-size: 36px;
    }

    .shop-tabs-inner {
        gap: 28px;
    }

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

    .shop-product-card {
        padding: 16px;
    }

    .shop-add-to-cart {
        width: 48px;
        height: 48px;
        padding: 10px;
    }

    .shop-add-to-cart svg {
        width: 26px;
        height: 26px;
    }
}

/* ==========================================================================
   Responsive — Mobile (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
    .shop-page {
        padding: 24px 0 40px;
    }

    .shop-title {
        font-size: var(--text-h1-mobile);
        margin-bottom: 20px;
    }

    .shop-tabs {
        padding: 16px 16px 0;
        margin-bottom: 24px;
        border-radius: 10px;
    }

    .shop-tabs-inner {
        gap: 24px;
    }

    .shop-tab {
        font-size: 13px;
        padding-bottom: 16px;
    }

    .shop-category-section {
        margin-bottom: 24px;
        padding-top: 16px;
    }

    .shop-category-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .shop-category-section + .shop-category-section {
        padding-top: 24px;
    }

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

    .shop-product-card {
        padding: 12px;
        border-radius: 12px;
        gap: 10px;
    }

    .shop-product-image {
        border-radius: 12px;
    }

    .shop-product-name {
        font-size: 12px;
    }

    .shop-product-desc {
        font-size: 11px;
    }

    .shop-product-price {
        font-size: 14px;
    }

    .shop-product-price-old {
        font-size: 10px;
    }

    .shop-add-to-cart {
        width: 44px;
        height: 44px;
        padding: 8px;
    }

    .shop-add-to-cart svg {
        width: 24px;
        height: 24px;
    }

    .shop-product-info {
        gap: 8px;
    }

    .shop-product-text {
        gap: 4px;
    }
}

/* ==========================================================================
   Responsive — Small Mobile (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {
    .shop-title {
        font-size: 28px;
    }

    .shop-tabs-inner {
        gap: 20px;
    }

    .shop-tab {
        font-size: 12px;
    }
}

/* Snackbar styles moved to components.css for cross-page reuse. */
