/* ================================================
   ROLLS & BOWLS — SHOP PAGE SPECIFIC STYLES
   ================================================ */

/* ---- 1. HERO SECTION ---- */
.shop-hero {
    position: relative;
    height: 700px;
    /* Requested 600-750px */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-text-dark);
    margin-top: 88px;
}

.shop-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.shop-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-hero-content {
    position: relative;
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    padding: 0 var(--spacing-lg);
}

.shop-hero h1 {
    font-size: clamp(3.5rem, 10vw, 6rem);
    color: white !important;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.shop-hero .title-script {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* ---- 2. SHOP CONTROLS ---- */
.shop-controls {
    background: white;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

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

.shop-stats {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.shop-stats strong {
    color: var(--color-text-dark);
}

.filter-trigger-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: var(--color-bg-cream);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s var(--ease-bounce);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.filter-trigger-btn:hover {
    background: var(--color-primary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ---- 3. MENU GRID (SECTIONED) ---- */
.shop-menu-container {
    padding: 60px 0 120px;
    background: #fdfdfa;
}

.menu-section {
    margin-bottom: 80px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    position: relative;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -5px;
    width: 100px;
    height: 12px;
    background: var(--color-primary-green);
    opacity: 0.8;

    /* Hand-drawn "Handmade" SVG Effect */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 50' preserveAspectRatio='none'%3E%3Cpath d='M0,25 C150,10 350,40 500,25 L500,45 C350,55 150,25 0,45 Z' fill='black' /%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 50' preserveAspectRatio='none'%3E%3Cpath d='M0,25 C150,10 350,40 500,25 L500,45 C350,55 150,25 0,45 Z' fill='black' /%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    transform: rotate(-1.5deg);
}

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

/* Tablet: 3 columns */
@media (max-width: 1200px) {
    .products-premium-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

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

    .section-title {
        font-size: 2.2rem;
    }
}

/* Mobile: 1 column */
@media (max-width: 600px) {
    .products-premium-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ---- 4. FILTER SIDEBAR (Uber Style) ---- */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-overlay.active {
    opacity: 1;
    visibility: visible;
}

.filter-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    /* Requested 450-550px */
    height: 100%;
    background: white;
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
}

.filter-overlay.active .filter-sidebar {
    transform: translateX(0);
}

.filter-header {
    padding: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-header h2 {
    font-size: 2.2rem;
    margin: 0;
    color: var(--color-text-dark);
}

.close-filter {
    background: var(--color-bg-cream);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-filter:hover {
    background: #eee;
    transform: rotate(90deg);
}

.filter-body {
    flex-grow: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px !important;
}

.filter-group {
    margin-bottom: 48px;
}

.filter-group-title {
    font-family: var(--font-sans);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--color-accent-orange);
    margin-bottom: 24px;
    display: block;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 4px 0;
}

.filter-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

/* Custom Checkbox Design */
.filter-checkbox {
    width: 28px;
    height: 28px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: #f9f9f9;
}

.filter-option input:checked+.filter-checkbox {
    background: var(--color-primary-green);
    border-color: var(--color-primary-green);
    transform: scale(1.1);
}

.filter-option input:checked+.filter-checkbox::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 2px;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.filter-footer {
    padding: 40px;
    background: #fdfdfd;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.filter-footer .btn {
    /* flex: 1; */
    padding: 20px;
    font-size: 1rem;
    border-radius: 100px;
}

/* Cart badge styles are now global in style.css */

/* ---- 5. PRODUCT CARD REFINEMENTS (REQUESTED STYLE) ---- */
.p-card {
    background: transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Removed transition: all here because it conflicts with GSAP */
}

/* Hover removed */
.p-card:hover {
    transform: none;
}

.p-card-top {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 32px;
    background: #f8f8f8;
}

.p-card-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

/* Hover image zoom removed */
.p-card:hover .p-card-top img {
    transform: none;
}

.p-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    background: var(--color-primary-green);
    color: var(--c-off-white);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 10;
}

.p-badge--green {
    background: var(--color-green-fresh);
    color: white;
}

.p-badge--orange {
    background: var(--color-accent-orange);
    color: white;
}

.p-card-info {
    padding: 10px 0;
}

.p-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.p-card-info h4 {
    font-size: var(--fs-xl);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-text-dark);
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin: 0;
}

.p-add-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-forest-green);
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-bounce);
    flex-shrink: 0;
}

.p-add-btn:hover {
    background: var(--c-bright-orange);
    transform: scale(1.15);
}

.p-add-btn:hover img {
    filter: invert(0);
}

.p-add-btn img {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    filter: invert(1);
}

.p-card-info p {
    font-size: var(--fs-md);
    line-height: 1.6;
    font-family: var(--font-body);
    color: var(--c-almost-black-brown);
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Removal of price/order link CSS as requested */
.p-card-footer,
.p-price-box,
.p-price,
.p-price-cutted,
.order-link {
    display: none !important;
}

.add-btn:hover {
    background: var(--ghost-color);
    color: var(--color-primary-green);
    transform: scale(1.1);
}

/* new css added on 4-5-2026 for "cart-empty woocommerce-info" */
.cart-empty.woocommerce-info {
    background-color: var(--brand-white);
    color: var(--brand-green-dark);
    font-family: var(--font-sans);

    font-size: clamp(1rem, 1.1vw, 1.2rem);
    text-align: center;

    padding: clamp(24px, 5vw, 40px) clamp(16px, 4vw, 30px);
    margin: clamp(20px, 6vw, 40px) auto;
    max-width: 700px;

    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);

    position: relative;
    line-height: 1.6;
}

/* Accent line */
.cart-empty.woocommerce-info::before {
    content: "";
    display: block;
    width: clamp(40px, 8vw, 60px);
    height: 4px;
    background: var(--brand-yellow);
    margin: 0 auto clamp(12px, 3vw, 20px);
    border-radius: 2px;
}

/* Optional headline */
.cart-empty.woocommerce-info strong {
    display: block;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-family: var(--font-serif);
    color: var(--brand-green);
    margin-bottom: 10px;
}

/* Icon */
.cart-empty.woocommerce-info::after {
    content: "🛒";
    display: block;
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-top: 15px;
    opacity: 0.7;
}

/* Small devices (phones) */
@media (max-width: 480px) {
    .cart-empty.woocommerce-info {
        border-radius: 12px;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.04);
    }
}

/* Tablets */
@media (max-width: 768px) {
    .cart-empty.woocommerce-info {
        max-width: 90%;
        margin-top: 50px;
    }
}