/* Food Ordering System Shortcodes CSS */

/* Category Grid */
.food-categories-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.food-category-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.food-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #007cba;
}

.category-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.category-title {
    margin: 10px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.category-description {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
    line-height: 1.4;
}

.category-count {
    color: #999;
    font-size: 12px;
    font-style: italic;
}

/* Food Category Page Styles */
.food-category-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 124, 186, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Astra (and similar themes): hide sidebar on /food-category/<slug>/ endpoints */
body.food-ordering-no-sidebar #secondary,
body.food-ordering-no-sidebar .ast-left-sidebar #secondary,
body.food-ordering-no-sidebar .ast-right-sidebar #secondary,
body.food-ordering-no-sidebar .widget-area,
body.food-ordering-no-sidebar aside {
    display: none !important;
}

/* Make primary container take full width when sidebar is hidden */
body.food-ordering-no-sidebar #primary,
body.food-ordering-no-sidebar .ast-separate-container.ast-two-container #primary,
body.food-ordering-no-sidebar .ast-two-container #primary {
    width: 100% !important;
    max-width: none !important;
}

/* Avoid duplicated page titles (theme renders page-title + shortcode renders category-title) */
body.food-ordering-no-sidebar .page-header {
    display: none !important;
}

/* Prevent extra theme padding on our buttons (compact UI). */
body.food-ordering-no-sidebar button,
body.food-ordering-no-sidebar [type=button],
body.food-ordering-no-sidebar [type=submit] {
    padding: 0 !important;
}

.category-header {
    text-align: center;
    margin-bottom: 16px;
    padding: 14px 14px 16px 14px;
    border-bottom: none;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 124, 186, 0.10), rgba(0, 124, 186, 0.02) 55%, rgba(255, 255, 255, 0) 100%);
}

.category-header .category-title {
    font-size: 30px;
    color: #333;
    margin-bottom: 6px;
    font-weight: 700;
}

.category-header .category-description {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Horizontal Product Cards */
.horizontal-products-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 14px 0;
}

.horizontal-product-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 12px 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    gap: 10px;
    flex-wrap: nowrap;
}

.horizontal-product-card:hover {
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    border-color: #007cba;
}

.horizontal-product-card .product-info {
    flex: 2;
    min-width: 180px;
    max-width: 200px;
}

.horizontal-product-card .product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 3px 0;
    line-height: 1.3;
}

.horizontal-product-card .product-quantity {
    color: #666;
    font-size: 13px;
    margin: 0;
    font-style: italic;
}

.horizontal-product-card .product-pricing {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 80px;
    max-width: 100px;
    text-align: center;
}

.horizontal-product-card .base-price span {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.horizontal-product-card .counter-section {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
    max-width: none;
    flex: 1;
    justify-content: center;
}

.horizontal-product-card .member-selection,
.horizontal-product-card .guest-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 80px;
}

.horizontal-product-card .member-selection label,
.horizontal-product-card .guest-selection label {
    font-weight: bold;
    color: #333;
    font-size: 12px;
    margin: 0;
    text-align: center;
}

.horizontal-product-card .total-price-display {
    text-align: center;
    min-width: 90px;
    max-width: 110px;
    padding: 6px;
    background: #f7fbff;
    border-radius: 8px;
    border: 1px solid rgba(0, 124, 186, 0.18);
}

.horizontal-product-card .total-price-display strong {
    color: #333;
    font-size: 14px;
}

.horizontal-product-card .total-amount {
    color: #007cba;
    font-weight: bold;
    font-size: 16px;
}

.horizontal-product-card .add-to-cart-btn {
    background-color: #007cba;
    color: white;
    border: none;
    width: auto;
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.3s ease;
    min-width: 160px;
    max-width: none;
    white-space: nowrap;
    height: 34px;
}

.horizontal-product-card .add-to-cart-btn:hover {
    background-color: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 90, 135, 0.22);
}

.horizontal-product-card .add-to-cart-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Keep labels clean on horizontal cards (professional look). */
.horizontal-product-card .member-selection label::before,
.horizontal-product-card .guest-selection label::before,
.horizontal-product-card .member-selection.item-label label::before {
    content: "" !important;
}

/* Subcategory Sections */
.subcategory-section {
    margin: 18px 0;
    background: #fbfdff;
    border: 1px solid rgba(0, 124, 186, 0.14);
    border-radius: 14px;
    padding: 14px 14px 6px 14px;
}

.subcategory-title {
    color: #007cba;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 124, 186, 0.35);
}

.no-products {
    text-align: center;
    color: #666;
    font-size: 16px;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Modal Styles */
#categoryModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-title {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.modal-close {
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #333;
}

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

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.product-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.product-title {
    margin: 10px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.product-quantity {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
    font-style: italic;
}

/* Pricing Styles */
.product-pricing {
    margin: 0px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.member-price {
    margin: 5px 0;
}

.member-price span {
    font-weight: bold;
    color: #007cba;
    font-size: 16px;
}

.member-price span::before {
    content: "👤 $";
}

.guest-price {
    margin: 5px 0;
}

.guest-price span {
    font-weight: bold;
    color: #d63638;
    font-size: 16px;
}

.guest-price span::before {
    content: "👥 ";
}

.base-price {
    margin: 5px 0;
}

.base-price span {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.base-price span::before {
    content: "$";
}

/* Add to Cart Section */
.add-to-cart-section {
    margin-top: 15px;
}

.guest-selection {
    margin-bottom: 10px;
}

.guest-selection label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.guest-number {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.guest-number:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 122, 186, 0.2);
}

.add-to-cart-btn {
    background-color: #007cba;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #005a87;
    transform: translateY(-1px);
}

.add-to-cart-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Subcategory Sections */
.subcategory-section {
    margin: 26px 0;
}

.subcategory-section h3 {
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.subcategory-section h4 {
    color: #007cba;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

/* Container Styles */
.food-products-container h2 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px solid #007cba;
    padding-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .food-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .food-category-page {
        padding: 16px;
    }
    
    .category-header {
        margin-bottom: 18px;
        padding: 14px 14px 16px 14px;
    }
    
    .subcategory-section {
        padding: 16px 14px 8px 14px;
        margin: 18px 0;
    }
    
    .horizontal-product-card {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 12px;
    }
    
    .horizontal-product-card .product-info {
        order: 1;
        text-align: center;
    }
    
    .horizontal-product-card .product-pricing {
        order: 2;
        min-width: auto;
    }
    
    .horizontal-product-card .counter-section {
        order: 3;
        justify-content: center;
        min-width: auto;
        width: 100%;
    }
    
    .horizontal-product-card .total-price-display {
        order: 4;
        min-width: auto;
        width: 100%;
    }
    
    .horizontal-product-card .add-to-cart-btn {
        order: 5;
        width: 100%;
        height: 38px;
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .food-products-container h2 {
        font-size: 24px;
    }
    
    .subcategory-section h3 {
        font-size: 18px;
    }
    
    .category-header .category-title {
        font-size: 24px;
    }
    
    .subcategory-title {
        font-size: 20px;
    }
}

@media (max-width: 600px) {
    .food-categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-card {
        padding: 12px;
    }
    
    .product-image img {
        height: 120px;
    }
    
    .add-to-cart-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .horizontal-product-card {
        /* Compact 3-line layout:
           1) Title | Price
           2) Description
           3) +- Qty | Add to Cart (+ Total badge) */
        padding: 10px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto auto;
        gap: 6px 10px;
        align-items: center;
    }
    
    .horizontal-product-card .product-title {
        font-size: 15px;
        margin: 0;
        line-height: 1.2;
    }
    
    .horizontal-product-card .add-to-cart-btn {
        grid-column: 2;
        grid-row: 4;
        width: auto !important;
        min-width: 0 !important;
        max-width: 140px;
        padding: 8px 12px !important;
        font-size: 12px;
        height: 34px;
        justify-self: end;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .horizontal-product-card .product-info {
        grid-column: 1;
        grid-row: 1;
        text-align: left;
        min-width: 0;
    }

    .horizontal-product-card .product-quantity {
        font-size: 12px;
        margin: 2px 0 0 0;
        color: #666;
        line-height: 1.2;
    }

    .horizontal-product-card .product-pricing {
        grid-column: 2;
        grid-row: 1;
        min-width: auto;
        max-width: none;
        justify-self: end;
    }

    .horizontal-product-card .counter-section {
        grid-column: 1;
        grid-row: 3;
        width: auto;
        min-width: 0 !important;
        max-width: none;
        justify-content: flex-start;
        gap: 6px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-self: start;
    }

    .horizontal-product-card .total-price-display {
        display: block !important;
        grid-column: 2;
        grid-row: 3;
        justify-self: end;
        min-width: auto;
        max-width: none;
    }

    /* Hide "Item:" / "Member:" labels to keep UI compact. */
    .horizontal-product-card .member-selection label,
    .horizontal-product-card .guest-selection label {
        display: block !important;
        padding: 0px 0px 5px 0px;
        text-align: justify;
    }

    .horizontal-product-card .counter-controls {
        margin: 0 !important;
        gap: 4px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        box-sizing: border-box;
    }

    .horizontal-product-card .counter-btn {
        width: 26px !important;
        height: 26px !important;
        font-size: 15px !important;
    }

    .horizontal-product-card .member-count,
    .horizontal-product-card .guest-count {
        width: 42px !important;
        height: 26px !important;
        font-size: 13px !important;
        margin: 0;
        flex: 0 0 auto;
    }

    .horizontal-product-card .member-selection,
    .horizontal-product-card .guest-selection {
        min-width: 130px !important;
        display: block !important;
        max-width: none !important;
        gap: 0;
    }
}

/* Loading States */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    border: 1px solid #f5c6cb;
}

/* Cart Count Badge */
.cart-count-badge {
    background-color: #d63638;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    text-align: center;
}

/* Hover Effects */
.food-category-card:hover .category-title {
    color: #007cba;
}

.product-card:hover .product-title {
    color: #007cba;
}

.horizontal-product-card:hover .product-title {
    color: #007cba;
}

/* Floating Checkout CTA */
.food-floating-checkout{
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 10px;
    background: #007cba;
    color: #fff;
    padding: 12px 16px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    font-weight: 700;
}

.food-floating-checkout.is-visible{
    display: flex;
}

.food-floating-cart-count{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 13px;
    line-height: 1;
}

.food-floating-cart-count::before{
    content: "+";
    font-weight: 900;
    margin-right: 4px;
}

.food-floating-checkout--shake{
    animation: foodFloatingShake 0.9s ease-in-out;
}

@keyframes foodFloatingShake{
    0%{ transform: translateY(0) rotate(0deg); }
    10%{ transform: translateY(-3px) rotate(-2deg); }
    20%{ transform: translateY(0) rotate(2deg); }
    30%{ transform: translateY(-2px) rotate(-1deg); }
    40%{ transform: translateY(0) rotate(1deg); }
    100%{ transform: translateY(0) rotate(0deg); }
}

.food-floating-checkout-text{
    font-size: 14px;
}

@media (max-width: 480px){
    .food-floating-checkout{
        right: 12px;
        bottom: 12px;
        padding: 10px 14px;
    }
    .food-floating-checkout-text{
        font-size: 13px;
    }
}

/* Focus States */
.add-to-cart-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 186, 0.3);
}

.guest-number:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 122, 186, 0.2);
}

/* Counter Controls Styles - Update: Remove background color, improve digit visibility */
.counter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    justify-content: center;
}

.counter-btn {
    width: 38px;
    height: 38px;
    border: 2px solid #007cba;
    background: transparent;
    color: #222;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: border 0.2s, color 0.2s, transform 0.1s;
    outline: none;
}

.counter-btn:hover, .counter-btn:focus {
    border-color: #005a87;
    color: #005a87;
    background: transparent;
    transform: scale(1.08);
}

.counter-btn:active {
    color: #003d5c;
    border-color: #003d5c;
    background: transparent;
    transform: scale(0.96);
}

.counter-btn:disabled {
    border-color: #e0e0e0;
    color: #aaa;
    background: transparent;
    cursor: not-allowed;
    box-shadow: none;
}

.member-count,
.guest-count {
    width: 56px;
    height: 38px;
    text-align: center;
    border: 2px solid #007cba;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    background: #fff;
    color: #222;
    margin: 0 4px;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: none;
    padding: 0 8px;
    box-sizing: border-box;
    vertical-align: middle;
}

.member-count:focus,
.guest-count:focus {
    outline: none;
    border-color: #005a87;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.18);
    background: #fff;
    color: #222;
}

/* Make counters compact specifically for horizontal cards (desktop). */
@media (min-width: 769px) {
    .horizontal-product-card .counter-controls {
        gap: 8px;
        margin: 6px 0;
    }

    .horizontal-product-card .counter-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .horizontal-product-card .member-count,
    .horizontal-product-card .guest-count {
        width: 46px;
        height: 34px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .counter-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    .member-count,
    .guest-count {
        width: 38px;
        height: 32px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .counter-btn {
        width: 28px;
        height: 28px;
        font-size: 15px;
    }
    .member-count,
    .guest-count {
        width: 30px;
        height: 28px;
        font-size: 13px;
    }
}

/* Member and Guest Selection Styles */
.member-selection,
.guest-selection {
    margin: 10px 0;
    text-align: center;
}

.member-selection label,
.guest-selection label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.member-selection label::before {
    content: "👤 ";
}

.guest-selection label::before {
    content: "👥 ";
}

/* Add this after the above for item label override */
.member-selection.item-label label::before {
    content: "\1F4E6 "; /* 📦 */
}

/* Total Price Display */
.total-price-display {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
}

.total-price-display strong {
    color: #007cba;
}

.total-amount {
    color: #d63638;
    font-weight: bold;
    font-size: 18px;
}

/* Updated Add to Cart Section */
.add-to-cart-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
}

/* Product Card Specific Styles */
.product-card .counter-controls {
    justify-content: center;
}

.product-card .member-selection,
.product-card .guest-selection {
    width: 100%;
}

.product-card .total-price-display {
    width: 100%;
    max-width: 200px;
}

/* Horizontal Product Card Specific Styles */
.horizontal-product-card .counter-controls {
    justify-content: center;
    gap: 2px;
}

.horizontal-product-card .member-selection,
.horizontal-product-card .guest-selection {
    display: block;
    min-width: 120px;
    max-width: 90px;
}

.horizontal-product-card .total-price-display {
    min-width: 90px;
    max-width: 110px;
    margin: 5px 0;
    padding: 6px;
}

/* Responsive Design for Counters */
@media (max-width: 768px) {
    .counter-controls {
        gap: 2px;
    }
    
    .counter-btn {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .member-count,
    .guest-count {
        width: 38px;
        height: 24px;
        font-size: 11px;
    }
    
    .total-price-display {
        font-size: 13px;
    }
    
    .total-amount {
        font-size: 15px;
    }
    
    .horizontal-product-card .counter-section {
        gap: 15px;
        min-width: 160px;
        max-width: 200px;
    }
    
    .horizontal-product-card .member-selection,
    .horizontal-product-card .guest-selection {
        min-width: 65px;
        max-width: 80px;
    }
}

@media (max-width: 480px) {
    .counter-btn {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    
    .member-count,
    .guest-count {
        width: 35px;
        height: 22px;
        font-size: 10px;
    }
    
    .member-selection label,
    .guest-selection label {
        font-size: 11px;
    }
    
    .total-price-display {
        display: block !important;
        font-size: 12px;
        padding: 5px;
    }
    
    .total-amount {
        font-size: 14px;
    }
    
    .horizontal-product-card {
        gap: 1px;
        padding: 10px;
    }
    
    .horizontal-product-card .counter-section {
        gap: 10px;
        min-width: 140px;
        max-width: 180px;
    }
    
    .horizontal-product-card .member-selection,
    .horizontal-product-card .guest-selection {
        min-width: 130px !important;
        max-width: none !important;
        display: block !important;
        margin-bottom: 0px;
    }
}

input[type=number].member-count,
input[type=number].guest-count {
    border: 1px solid #666;
    border-radius: 3px;
    padding: 0;
    font-size: 15px;
    width: 56px;
    transition: all .3s;
    box-sizing: border-box;
    color: #222;
    font-weight: 700;
    background: #fff;
    text-align: center;
    vertical-align: middle;
}

input[type=number].member-count:focus,
input[type=number].guest-count:focus {
    border-color: #005a87;
    outline: none;
    background: #fff;
    color: #222;
} 