/* ============================================
   COCO'S CAFÉ - SHOP STYLES
   ============================================ */

:root {
    --primary: #c4848b;
    --secondary: #00888c;
    --dark: #34252f;
    --accent: #244f26;
    --soft: #d19900;
    --white: #ffffff;
    --light: #f9f7f4;
    --gray: #666666;
    --font-main: 'Naiche', serif;
    --font-body: 'Lato', Arial, sans-serif;
    --radius: 30px;
    --transition: 0.3s ease;
    --shadow: 0 12px 35px rgba(52, 37, 47, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

@font-face {
    font-family: 'Naiche';
    src: url('../Fonts.woff/Naiche-Black.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Naiche', serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
}

body.cart-open,
body.modal-open { overflow: hidden; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
p { font-family: var(--font-body); font-weight: 400; }
h1,h2,h3,h4,h5,h6 { font-family: 'Naiche', serif; font-weight: 800; }
h1 { font-size: 3rem; } h2 { font-size: 2.5rem; } h3 { font-size: 1.5rem; }

/* ============================================
   HEADER
   ============================================ */
.shop-header {
    background: var(--light);
    border-bottom: 2px solid var(--secondary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 80px;
}

.shop-header .header-content {
    max-width: 1200px;
    padding: 0 1.25rem;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-toggle {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: var(--font-body);
    transition: all var(--transition);
    letter-spacing: 0.05em;
}

.lang-toggle:hover {
    background: var(--secondary);
    color: var(--white);
}

.cart-toggle {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    transition: background var(--transition);
}

.cart-toggle:hover { background: var(--secondary); }

.cart-count {
    background: var(--accent);
    color: var(--soft);
    border-radius: 50%;
    padding: 0.15rem 0.45rem;
    font-size: 0.75rem;
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    text-align: center;
    font-family: var(--font-body);
}

.shop-header .logo-link { display: flex; align-items: center; height: 100%; flex-shrink: 0; }
.logo-img { display: block; height: 64px; width: 64px; max-width: none; padding: 0; }

/* ============================================
   SHOP MAIN
   ============================================ */
.shop-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0;
}

.hero h1 {
    font-family: 'Naiche', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.hero p {
    color: var(--dark);
    font-size: 1.05rem;
    font-family: var(--font-body);
}

.order-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark);
    font-size: 0.9rem;
    font-family: var(--font-body);
}

.info-item i { color: var(--secondary); }

/* ============================================
   FILTERS — scrollable on mobile
   ============================================ */
.filters {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    /* hide scrollbar visually */
    scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }

.filter-btn {
    background: var(--white);
    border: 2px solid var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    transition: all var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: var(--font-body);
}

.filter-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

/* ============================================
   MENU ITEM CARDS
   ============================================ */
.menu-item {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid rgba(0, 136, 140, 0.14);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(44, 24, 16, 0.14);
}

.product-image {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, rgba(196, 132, 139, 0.2), rgba(0, 136, 140, 0.18));
    overflow: hidden;
}

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

.item-content {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem 1.25rem;
    flex: 1;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 0;
}

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

.product-badge {
    display: inline-block;
    background: rgba(0, 136, 140, 0.12);
    color: var(--secondary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-family: var(--font-body);
}

.item-name {
    font-family: 'Naiche', serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.3;
}

.product-description {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.4;
    font-family: var(--font-body);
}

.item-allergens {
    font-size: 0.78rem;
    color: var(--dark);
    font-style: italic;
    font-family: var(--font-body);
}

.item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
    min-width: 85px;
}

.item-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary);
    white-space: nowrap;
    font-family: var(--font-body);
}

.add-btn, .view-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 0.55rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: var(--font-body);
}

.add-btn:hover, .view-btn:hover { background: var(--secondary); }
.add-btn:active, .view-btn:active { transform: scale(0.96); }

.empty-products {
    grid-column: 1 / -1;
    padding: 2rem;
    text-align: center;
    color: var(--gray);
    background: var(--white);
    border-radius: 16px;
    border: 1px dashed rgba(0, 136, 140, 0.3);
    font-family: var(--font-body);
}

/* ============================================
   PRODUCT DETAIL MODAL
   ============================================ */
.product-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product-modal.open { display: flex; }

.product-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.product-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 22px;
    max-width: 520px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.product-modal-image {
    position: relative;
    height: 300px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(196,132,139,0.2), rgba(0,136,140,0.18));
    overflow: hidden;
}

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

.modal-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.product-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-modal-body h2 {
    font-family: 'Naiche', serif;
    font-size: 1.4rem;
    color: var(--dark);
    line-height: 1.3;
}

.modal-description {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.55;
    font-family: var(--font-body);
}

.modal-allergens {
    color: var(--dark);
    font-size: 0.82rem;
    font-style: italic;
    font-family: var(--font-body);
}

.modal-variant-section {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.modal-variant-section label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
    font-family: var(--font-body);
}

.variant-select {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 2px solid var(--primary);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    background: var(--light);
    cursor: pointer;
    appearance: auto;
}

.variant-select:focus { outline: none; border-color: var(--secondary); }

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,136,140,0.12);
}

.modal-price {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
}

.modal-actions {
    display: flex;
    gap: 0.6rem;
}

.modal-close-btn {
    background: var(--light);
    color: var(--dark);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.65rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background var(--transition);
}

.modal-close-btn:hover { background: #e8e3de; }

.modal-add-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background var(--transition);
    white-space: nowrap;
}

.modal-add-btn:hover { background: var(--secondary); }

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    max-width: 100%;
    height: 100%;
    background: var(--white);
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.35s ease;
}

.cart-sidebar.open { right: 0; }

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-header {
    padding: 1.1rem 1.25rem;
    background: var(--light);
    border-bottom: 2px solid var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-family: 'Naiche', serif;
    color: var(--primary);
    font-size: 1.3rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--dark);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
}

.close-cart:hover { background: rgba(0,0,0,0.06); }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.cart-empty {
    text-align: center;
    color: var(--dark);
    padding: 3rem 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: var(--light);
    border-radius: 14px;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(36,79,38,0.1);
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 700; font-size: 0.9rem; color: var(--dark); }
.cart-item-meta { font-size: 0.78rem; color: var(--gray); margin-top: 0.1rem; font-family: var(--font-body); }
.cart-item-price { font-size: 0.88rem; color: var(--secondary); font-weight: 700; margin-top: 0.15rem; font-family: var(--font-body); }

.cart-item-controls { display: flex; align-items: center; gap: 0.3rem; flex-shrink: 0; }

.qty-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.qty-btn:hover { background: var(--secondary); }
.qty-display { min-width: 22px; text-align: center; font-weight: 700; font-size: 0.9rem; }

.remove-item {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.25rem;
    border-radius: 4px;
}

.remove-item:hover { color: var(--primary); background: rgba(196,132,139,0.1); }

.cart-footer {
    padding: 1.1rem 1.25rem;
    border-top: 1px solid var(--light);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    font-family: var(--font-body);
}

.delivery-note { font-size: 0.78rem; color: var(--accent); text-align: center; font-family: var(--font-body); }

.checkout-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.85rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition);
    width: 100%;
    font-family: var(--font-body);
}

.checkout-btn:hover { background: var(--secondary); }
.checkout-btn:disabled { background: var(--gray); cursor: not-allowed; opacity: 0.6; }

.clear-cart-btn {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(209, 153, 0, 0.4);
    padding: 0.55rem;
    border-radius: var(--radius);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all var(--transition);
    width: 100%;
    font-family: var(--font-body);
}

.clear-cart-btn:hover { border-color: var(--secondary); color: var(--secondary); }

/* ============================================
   CHECKOUT MODAL
   ============================================ */
.checkout-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1002;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.checkout-modal.open { display: flex; }

.modal-content {
    background: var(--white);
    border-radius: 18px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--dark);
    padding: 0.25rem;
    border-radius: 4px;
}

.close-modal:hover { background: var(--light); }

.checkout-header h2 {
    font-family: 'Naiche', serif;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    text-align: center;
}

.checkout-header p {
    text-align: center;
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-body);
}

.form-section { margin-bottom: 1.1rem; }

.form-section h3 {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 0.65rem;
    font-weight: 700;
    font-family: var(--font-body);
}

.form-group { margin-bottom: 0.65rem; }

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark);
    font-family: var(--font-body);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 2px solid rgba(196,132,139,0.4);
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    background: var(--light);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary);
    background: var(--white);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }

.order-type-toggle { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }

.type-btn {
    flex: 1;
    padding: 0.6rem;
    border: 2px solid var(--light);
    background: var(--white);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray);
    transition: all var(--transition);
    font-family: var(--font-body);
}

.type-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.type-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

.pickup-details, .delivery-details { display: none; }
.pickup-details.active, .delivery-details.active { display: block; }

.pickup-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light);
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    font-size: 0.88rem;
    font-family: var(--font-body);
    color: var(--dark);
}

.delivery-fee-display {
    background: var(--light);
    border-radius: 12px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.88rem;
    font-family: var(--font-body);
}

.fee-breakdown {
    display: flex;
    justify-content: space-between;
    padding: 0.2rem 0;
    color: var(--gray);
}

.fee-total {
    display: flex;
    justify-content: space-between;
    padding-top: 0.4rem;
    margin-top: 0.25rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    font-weight: 700;
    color: var(--dark);
}

.order-summary {
    background: var(--light);
    border-radius: 12px;
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.summary-items { margin-bottom: 0.5rem; }

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-size: 0.85rem;
    color: var(--dark);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-family: var(--font-body);
}

.summary-totals { margin-top: 0.5rem; }

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    padding: 0.2rem 0;
    font-family: var(--font-body);
}

.summary-row.total {
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark);
    border-top: 2px solid var(--secondary);
    margin-top: 0.35rem;
    padding-top: 0.4rem;
}

.submit-order-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.9rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background var(--transition);
    font-family: var(--font-body);
    margin-top: 0.5rem;
}

.submit-order-btn:hover { background: var(--dark); }

/* ============================================
   SUCCESS MODAL
   ============================================ */
.success-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1004;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.success-modal.open { display: flex; }

.success-content {
    background: var(--white);
    border-radius: 18px;
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 380px;
    width: 100%;
}

.success-icon {
    font-size: 3.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    animation: popIn 0.4s ease;
}

@keyframes popIn {
    0% { transform: scale(0); }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.success-content h2 {
    font-family: 'Naiche', serif;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

.success-content p {
    color: var(--gray);
    font-size: 0.9rem;
    font-family: var(--font-body);
    margin-bottom: 0.5rem;
}

.order-confirmation { font-weight: 600; color: var(--dark) !important; }

.close-success-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition);
    font-family: var(--font-body);
    margin-top: 1rem;
}

.close-success-btn:hover { background: var(--secondary); }

/* ============================================
   LOADING
   ============================================ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(249,247,244,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    flex-direction: column;
    gap: 1rem;
    font-family: var(--font-body);
}

.loading-overlay.active { display: flex; }

.loading-spinner {
    font-size: 2rem;
    color: var(--primary);
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   CART NOTIFICATION TOAST
   ============================================ */
.cart-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    font-family: var(--font-body);
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   SCROLLBARS
   ============================================ */
.cart-items::-webkit-scrollbar { width: 4px; }
.cart-items::-webkit-scrollbar-track { background: var(--light); }
.cart-items::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 3px; }

/* ============================================
   RESPONSIVE — tablet 1100px
   ============================================ */
@media (max-width: 1100px) {
    .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================
   RESPONSIVE — mobile 768px
   ============================================ */
@media (max-width: 768px) {
    .shop-header { height: 64px; }
    .logo-img { height: 50px; width: 50px; }

    .shop-main { padding: 1rem; }

    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 0.95rem; }

    .order-info { flex-direction: column; gap: 0.5rem; align-items: center; }

    .products { grid-template-columns: 1fr 1fr; gap: 0.85rem; }

    .product-image { height: 140px; }

    .item-content { flex-direction: column; padding: 0.85rem; gap: 0.5rem; }
    .item-actions { flex-direction: row; align-items: center; justify-content: space-between; min-width: 0; width: 100%; }

    .cart-sidebar { width: 100%; right: -100%; }

    .modal-content { padding: 1.25rem; }
    .form-row { grid-template-columns: 1fr; }
    .order-type-toggle { flex-direction: column; }

    /* Product modal full screen on mobile */
    .product-modal { padding: 0; align-items: flex-end; }
    .product-modal-content {
        max-width: 100%;
        border-radius: 22px 22px 0 0;
        max-height: 88vh;
    }
    .product-modal-image { height: 200px; }
}

/* ============================================
   RESPONSIVE — small mobile 480px
   ============================================ */
@media (max-width: 480px) {
    .hero h1 { font-size: 1.5rem; }

    .products { grid-template-columns: 1fr; }

    .filter-btn { font-size: 0.82rem; padding: 0.42rem 1rem; }

    .cart-toggle { padding: 0.55rem 0.9rem; font-size: 0.9rem; }

    .cart-item { flex-wrap: wrap; }

    .modal-footer { flex-direction: column; align-items: stretch; }
    .modal-price { text-align: center; }
    .modal-actions { flex-direction: row; justify-content: center; }
}

/* ---- Several photos per product ---- */
.photo-count {
    position: absolute; right: 10px; bottom: 10px; background: rgba(52, 37, 47, 0.75); color: #fff;
    font-size: 0.78rem; font-weight: 700; padding: 3px 9px; border-radius: 50px; display: inline-flex; gap: 5px; align-items: center;
}
.modal-photo-nav {
    position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
    border: none; background: rgba(255, 255, 255, 0.9); color: var(--dark); font-size: 1.6rem; line-height: 1;
    cursor: pointer; display: grid; place-items: center; padding-bottom: 3px; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.modal-photo-nav:hover { background: #fff; color: var(--secondary); }
.modal-photo-nav--prev { left: 10px; }
.modal-photo-nav--next { right: 10px; }
.modal-photo-nav[hidden], .modal-photo-dots[hidden] { display: none; }
.modal-photo-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.modal-photo-dots button {
    width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
    background: rgba(255, 255, 255, 0.6); box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
}
.modal-photo-dots button.active { background: #fff; transform: scale(1.25); }
@media (max-width: 768px) { .product-modal-image { height: 240px; } }

/* ---- Swipeable photos on product cards ---- */
.product-image--multi .card-photos {
    display: flex; height: 100%; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.product-image--multi .card-photos::-webkit-scrollbar { display: none; }
.product-image--multi .card-photos img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.card-photo-nav {
    position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%;
    border: none; background: rgba(255, 255, 255, 0.92); color: var(--dark); font-size: 1.4rem; line-height: 1;
    display: grid; place-items: center; padding-bottom: 3px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    opacity: 0; transition: opacity 0.2s;
}
.card-photo-nav--prev { left: 8px; }
.card-photo-nav--next { right: 8px; }
.product-image--multi:hover .card-photo-nav, .card-photo-nav:focus-visible { opacity: 1; }
.card-photo-nav:hover { color: var(--secondary); }
.card-photo-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.card-photo-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.6); box-shadow: 0 0 0 1px rgba(0,0,0,0.12); transition: transform 0.2s; }
.card-photo-dots span.active { background: #fff; transform: scale(1.3); }
/* phones: swipe instead of arrows */
@media (hover: none) { .card-photo-nav { display: none; } }

.product-modal-price.price-pending, #modalPrice.price-pending { font-size: 0.95rem; font-weight: 600; color: var(--gray, #777); }
#modalAddBtn[disabled] { opacity: 0.5; cursor: not-allowed; }
.product-image img, .product-modal-image img { background: #f3ecea; }
section[hidden] { display: none !important; }
