/* =============================================
   Catalog Page Specific Styles
   Only styles unique to catalog page
   ============================================= */

/* Navigation (catalog-specific) */
.nav {
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    background: rgba(10, 10, 15, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Match nav width with main content on larger screens */
@media (min-width: 1200px) {
    .nav-container {
        max-width: 1600px;
        padding: 16px 40px;
    }
}

@media (min-width: 1600px) {
    .nav-container {
        max-width: 1800px;
        padding: 16px 48px;
    }
}

@media (min-width: 1920px) {
    .nav-container {
        max-width: 1800px;
        padding: 16px 48px;
    }

    /* Increase navigation element sizes on large screens - slightly larger */
    .nav-container .header-hours {
        padding: 10px 20px !important;
        font-size: 14px !important;
        gap: 10px !important;
    }

    .nav-container .header-hours span {
        font-size: 14px !important;
    }

    .nav-container .header-hours svg {
        width: 18px !important;
        height: 18px !important;
    }

    .nav-container .social-link {
        padding: 10px 20px !important;
        font-size: 15px !important;
        gap: 10px !important;
    }

    .nav-container .social-link svg {
        width: 20px !important;
        height: 20px !important;
    }

    .nav-container .cart-button {
        padding: 10px 20px !important;
        font-size: 15px !important;
        gap: 10px !important;
    }

    .nav-container .cart-button svg {
        width: 20px !important;
        height: 20px !important;
    }

    .nav-container .cart-badge {
        width: 22px !important;
        height: 22px !important;
        font-size: 12px !important;
        top: -7px !important;
        right: -7px !important;
    }
}

.nav-container .logo {
    margin-bottom: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.logo-text {
    text-align: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.cart-button {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.cart-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.cart-button svg {
    width: 20px;
    height: 20px;
}

.cart-badge {
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    position: absolute;
    top: -6px;
    right: -6px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.social-link.maps:hover {
    background: #EA4335;
    border-color: #EA4335;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(234, 67, 53, 0.4);
}

.logo-text {
    font-family: 'Coolpbl', sans-serif;
    font-size: 24px;
    background: linear-gradient(135deg, var(--accent), #0096ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-hours {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
}

.header-hours svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

@media (max-width: 1024px) {
    .header-hours {
        padding: 8px;
    }
}

/* Main Content Container */
main {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Product Grid Layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    padding-bottom: 60px;
    max-width: 100%;
}

/* Optimize for larger screens */
@media (min-width: 1200px) {
    main {
        max-width: 1600px;
        padding: 0 40px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 280px));
        gap: 28px;
    }
}

@media (min-width: 1600px) {
    main {
        max-width: 1800px;
        padding: 0 48px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 300px));
        gap: 32px;
    }

    /* Slightly increase navigation elements */
    .header-hours {
        padding: 9px 18px;
        font-size: 14px;
    }

    .header-hours svg {
        width: 18px;
        height: 18px;
    }

    .social-link {
        padding: 9px 18px;
        font-size: 15px;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }

    .cart-button {
        padding: 9px 18px;
        font-size: 15px;
    }

    .cart-button svg {
        width: 20px;
        height: 20px;
    }
}

@media (min-width: 1920px) {
    main {
        max-width: 1800px;
        padding: 0 48px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
        gap: 32px;
    }

    /* Increase navigation element sizes on large screens */
    .header-hours {
        padding: 10px 20px;
        font-size: 15px;
        gap: 10px;
    }

    .header-hours svg {
        width: 20px;
        height: 20px;
    }

    .social-link {
        padding: 10px 20px;
        font-size: 16px;
        gap: 10px;
    }

    .social-link svg {
        width: 22px;
        height: 22px;
    }

    .cart-button {
        padding: 10px 20px;
        font-size: 16px;
        gap: 10px;
    }

    .cart-button svg {
        width: 22px;
        height: 22px;
    }

    .cart-badge {
        width: 24px;
        height: 24px;
        font-size: 13px;
        top: -8px;
        right: -8px;
    }
}

.product-grid .loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 300px;
}

/* Product Card - Catalog specific styles */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-glow);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.product-image-container {
    width: 100%;
    height: 200px;
    background: #000;
    overflow: hidden;
    position: relative;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.badge-stock {
    background: rgba(0, 212, 170, 0.2);
    color: var(--accent);
}

.badge-out {
    background: rgba(255, 71, 87, 0.2);
    color: var(--error);
}

/* Add to cart button style for catalog */
.btn-card.add-cart-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border: 1px solid var(--accent);
    color: var(--bg-primary);
    font-weight: 700;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-card.add-cart-btn:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-card.add-cart-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px var(--accent-glow);
}

.btn-card:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Product Info Section */
.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.card-header {
    margin-bottom: 0;
}

.card-category {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-category.hardware {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.card-category.juices {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.card-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    min-height: 2lh;
    overflow-wrap: anywhere;
}

.product-card .card-details {
    margin-top: auto;
}

.card-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin: 0;
    max-width: 100%;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.detail-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.detail-value.price {
    color: var(--accent);
}

.detail-value.low-stock {
    color: var(--error);
}

.card-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.btn-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
}

.btn-card:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent);
}

/* Modal Product View Layout */
.modal-product-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.modal-image-container {
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    height: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-image-container img {
    width: 100%;
    flex: 1;
    object-fit: contain;
    min-height: 0;
}

/* When thumbnails are present */
.modal-image-container.with-thumbnails {
    gap: 12px;
}

.modal-image-container.with-thumbnails img {
    flex: 1;
    min-height: 0;
}

/* When no thumbnails */
.modal-image-container:not(.with-thumbnails) {
    gap: 0;
}

.modal-image-container:not(.with-thumbnails) img {
    height: 100%;
    flex: none;
}

.modal-thumbnails {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    overflow-x: auto;
    flex-wrap: nowrap;
}

.modal-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.modal-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.modal-thumbnails::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.modal-thumbnail {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modal-thumbnail:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

.modal-thumbnail.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

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

.modal-details h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.modal-details .description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 24px 0;
}

.stock-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}

/* Privacy Consent Modal Styles */
#privacyConsentModal .modal {
    max-width: 820px !important;
    width: 100%;
    border-radius: 20px;
}

.privacy-consent-content {
    max-height: 75vh;
    overflow-y: auto;
    padding-right: 8px;
}

.privacy-notice {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.privacy-details {
    margin-bottom: 16px;
}

.privacy-details p {
    margin-bottom: 6px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
}

.privacy-details ul {
    margin-left: 20px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.privacy-details li {
    margin-bottom: 4px;
    line-height: 1.4;
    font-size: 15px;
}

.privacy-assurance {
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 10px;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.5;
}

.privacy-consent-checkbox {
    margin-bottom: 12px;
}

.privacy-consent-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
}

.privacy-consent-checkbox input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.privacy-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    width: 100%;
}

.privacy-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
}

/* Checkout Form Actions */
.form-actions {
    display: flex !important;
    gap: 12px;
    justify-content: flex-start !important;
    align-items: center;
    margin-top: 12px;
    width: 100%;
}

#checkoutForm .form-actions {
    justify-content: flex-start !important;
}

#checkoutForm .form-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 20px;
    font-size: 14px;
    white-space: nowrap;
}

.checkout-total {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 15px;
    text-align: left;
}

.checkout-total strong {
    color: var(--accent);
}

/* Order Success Modal */
.order-success-content {
    text-align: center;
}

.success-message {
    font-size: 18px;
    color: var(--accent);
    margin-bottom: 24px;
    font-weight: 600;
}

.qr-instruction {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    margin: 24px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.order-info {
    text-align: left;
    margin-top: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.order-info p {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.order-info strong {
    color: var(--accent);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .nav-container {
        padding: 12px 12px;
    }

    .logo-text {
        font-size: 20px;
    }

    .nav-links {
        gap: 12px;
    }

    .social-link {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 8px;
    }

    .social-link svg {
        width: 16px;
        height: 16px;
    }

    .cart-button {
        padding: 6px 12px;
        font-size: 12px;
    }

    .cart-button svg {
        width: 16px;
        height: 16px;
    }

    .cart-badge {
        width: 18px;
        height: 18px;
        font-size: 10px;
        top: -4px;
        right: -4px;
    }

    .header-hours {
        padding: 6px 10px;
        font-size: 11px;
        border-radius: 8px;
    }

    .header-hours span {
        display: inline;
    }

    .header-hours svg {
        width: 14px;
        height: 14px;
    }
}

/* Tablet Portrait (800x1145) - align logo to left */
@media (width: 800px) and (height: 1145px) and (orientation: portrait),
(min-width: 798px) and (max-width: 802px) and (min-height: 1143px) and (max-height: 1147px) and (orientation: portrait) {
    .nav-container {
        justify-content: flex-start !important;
        position: relative;
    }

    .nav-container .logo {
        position: relative !important;
        left: auto !important;
        transform: none !important;
        margin-right: auto;
        flex-shrink: 0;
    }

    .nav-links {
        margin-left: auto !important;
        margin-right: 0;
    }
}

/* Tablet portrait (including 820x1180): keep logo left and avoid overlap */
@media (orientation: portrait) and (min-width: 769px) and (max-width: 1100px) {
    .nav-container {
        justify-content: flex-start !important;
        position: relative;
    }

    .nav-container .logo {
        position: relative !important;
        left: auto !important;
        transform: none !important;
        margin-right: auto;
        flex-shrink: 0;
    }

    .nav-links {
        margin-left: auto !important;
        margin-right: 0;
        flex-wrap: nowrap;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
    }

    .nav-container .logo {
        position: relative;
        left: auto;
        transform: none;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 6px;
        gap: 8px;
        margin-left: 0;
    }

    .logo-text {
        font-size: 18px;
    }

    .social-link {
        padding: 5px 10px;
        font-size: 11px;
        gap: 6px;
        border-radius: 8px;
    }

    .social-link svg {
        width: 14px;
        height: 14px;
    }

    .cart-button {
        padding: 5px 10px;
        font-size: 11px;
        gap: 6px;
    }

    .cart-button svg {
        width: 14px;
        height: 14px;
    }

    .cart-badge {
        width: 16px;
        height: 16px;
        font-size: 9px;
    }

    .header-hours {
        padding: 5px 8px;
        font-size: 10px;
        gap: 6px;
        border-radius: 8px;
    }

    .header-hours span {
        display: inline;
        font-size: 10px;
    }

    .header-hours svg {
        width: 12px;
        height: 12px;
    }

    .modal-product-view {
        grid-template-columns: 1fr;
    }

    main {
        padding: 0 16px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }

    /* Product Card - responsive */
    .product-info {
        padding: 12px;
        gap: 10px;
    }

    .card-name {
        font-size: 16px;
    }

    .card-details {
        gap: 12px;
    }

    .detail-value {
        font-size: 14px;
    }

    .card-actions {
        gap: 8px;
        flex-direction: column;
    }

    .btn-card {
        padding: 8px 12px;
        font-size: 12px;
        gap: 6px;
    }

    .btn-card svg {
        width: 14px;
        height: 14px;
    }

    .form-actions {
        gap: 10px;
        margin-top: 12px;
        justify-content: flex-start !important;
    }

    #checkoutForm .form-actions {
        justify-content: flex-start !important;
    }

    #checkoutForm .form-actions .btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 14px 20px;
        font-size: 14px;
    }

    .checkout-total {
        padding: 10px;
        font-size: 14px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 8px 10px;
        gap: 8px;
    }

    .logo-text {
        font-size: 16px;
    }

    .nav-links {
        gap: 6px;
    }

    /* Product Card - mobile */
    .product-info {
        padding: 10px;
        gap: 8px;
    }

    .card-name {
        font-size: 14px;
    }

    .card-details {
        gap: 8px;
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .detail-item {
        width: auto;
        flex: 1;
    }

    /* Stock right-align on mobile */
    .detail-item:last-child {
        text-align: right;
    }

    .detail-label {
        font-size: 10px;
    }

    .detail-value {
        font-size: 13px;
    }

    .card-actions {
        gap: 6px;
        flex-direction: column;
        margin-top: 2px;
    }

    .btn-card {
        padding: 8px 10px;
        font-size: 11px;
        gap: 5px;
        width: 100%;
    }

    .btn-card svg {
        width: 12px;
        height: 12px;
    }


    .social-link {
        padding: 4px 8px;
        font-size: 10px;
        gap: 4px;
        border-radius: 6px;
    }

    .social-link svg {
        width: 12px;
        height: 12px;
    }

    .cart-button {
        padding: 4px 8px;
        font-size: 10px;
        gap: 4px;
        border-radius: 8px;
    }

    .cart-button svg {
        width: 12px;
        height: 12px;
    }

    .cart-badge {
        width: 14px;
        height: 14px;
        font-size: 8px;
        top: -3px;
        right: -3px;
    }

    .header-hours {
        padding: 4px 6px;
        font-size: 9px;
        gap: 4px;
        border-radius: 6px;
    }

    .header-hours span {
        display: inline;
        font-size: 9px;
    }

    .header-hours svg {
        width: 10px;
        height: 10px;
    }

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

    .product-image-container {
        height: 150px;
    }

    .form-actions {
        gap: 8px;
        margin-top: 10px;
        justify-content: flex-start !important;
    }

    #checkoutForm .form-actions {
        justify-content: flex-start !important;
    }

    #checkoutForm .form-actions .btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 12px 16px;
        font-size: 13px;
    }

    .checkout-total {
        padding: 8px;
        font-size: 13px;
        margin-bottom: 10px;
    }
}

@media (max-width: 360px) {
    .social-link,
    .header-hours {
        border-radius: 5px;
    }
}

/* Tablet landscape (1024x505) - compact nav */
@media (width: 1024px) and (height: 505px) and (orientation: landscape),
(min-width: 1022px) and (max-width: 1026px) and (min-height: 503px) and (max-height: 507px) and (orientation: landscape) {
    .nav-container {
        padding: 6px 10px !important;
    }

    .logo-text {
        font-size: 16px !important;
    }

    .nav-links {
        gap: 6px !important;
    }

    .social-link {
        padding: 4px 8px !important;
        font-size: 10px !important;
        gap: 4px !important;
        border-radius: 6px !important;
    }

    .social-link svg {
        width: 12px !important;
        height: 12px !important;
    }

    .cart-button {
        padding: 4px 8px !important;
        font-size: 10px !important;
        gap: 4px !important;
        border-radius: 6px !important;
    }

    .cart-button svg {
        width: 12px !important;
        height: 12px !important;
    }

    .cart-badge {
        width: 14px !important;
        height: 14px !important;
        font-size: 8px !important;
        top: -3px !important;
        right: -3px !important;
    }

    .header-hours {
        padding: 4px 6px !important;
        font-size: 9px !important;
        gap: 4px !important;
        border-radius: 6px !important;
    }

    .header-hours span {
        display: inline !important;
        font-size: 9px !important;
    }

    .header-hours svg {
        width: 10px !important;
        height: 10px !important;
    }

    #checkoutForm .form-actions .btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 10px 14px !important;
        font-size: 12px !important;
    }
}

/* Phone portrait (640x889) - compact nav */
@media (width: 640px) and (height: 889px) and (orientation: portrait) {
    .nav-container {
        padding: 6px 10px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        position: relative !important;
    }

    /* Product Card - 640x889 */
    .product-info {
        padding: 10px !important;
        gap: 8px !important;
    }

    .card-name {
        font-size: 13px !important;
    }

    .card-details {
        gap: 10px !important;
    }

    .detail-value {
        font-size: 12px !important;
    }

    .card-actions {
        gap: 6px !important;
        flex-direction: row !important;
    }

    .btn-card {
        padding: 6px 10px !important;
        font-size: 10px !important;
        gap: 4px !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }

    .btn-card svg {
        width: 12px !important;
        height: 12px !important;
    }

    .nav-container .logo {
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 1 !important;
    }

    .nav-links {
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        width: auto !important;
        justify-content: flex-end !important;
        gap: 4px !important;
        margin-left: auto !important;
    }

    .logo-text {
        font-size: 14px !important;
    }

    .header-hours {
        padding: 4px 6px !important;
        font-size: 9px !important;
        gap: 4px !important;
    }

    .header-hours span {
        display: inline !important;
        font-size: 9px !important;
    }

    .header-hours svg {
        width: 10px !important;
        height: 10px !important;
    }

    .social-link {
        padding: 4px 6px !important;
        font-size: 9px !important;
        border-radius: 6px !important;
        gap: 3px !important;
    }

    .social-link svg {
        width: 10px !important;
        height: 10px !important;
    }

    .cart-button {
        padding: 4px 6px !important;
        font-size: 9px !important;
        border-radius: 6px !important;
        gap: 3px !important;
    }

    .cart-button svg {
        width: 10px !important;
        height: 10px !important;
    }

    .cart-badge {
        width: 12px !important;
        height: 12px !important;
        font-size: 7px !important;
        top: -2px !important;
        right: -2px !important;
    }

    #checkoutForm .form-actions .btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 10px 12px !important;
        font-size: 11px !important;
    }
}

/* Phone portrait (380x754) - compact nav */
@media (width: 380px) and (height: 754px) and (orientation: portrait) {
    .nav-container {
        padding: 4px 6px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 4px !important;
        position: relative !important;
    }

    /* Product Card - 380x754 */
    .product-info {
        padding: 8px !important;
        gap: 6px !important;
    }

    .card-name {
        font-size: 11px !important;
    }

    .card-details {
        gap: 8px !important;
        flex-direction: row !important;
    }

    .detail-label {
        font-size: 8px !important;
    }

    .detail-value {
        font-size: 10px !important;
    }

    .card-actions {
        gap: 4px !important;
        flex-direction: row !important;
    }

    .btn-card {
        padding: 5px 8px !important;
        font-size: 9px !important;
        gap: 3px !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }

    .btn-card svg {
        width: 10px !important;
        height: 10px !important;
    }

    .nav-container .logo {
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 1 !important;
    }

    .nav-links {
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        width: auto !important;
        justify-content: flex-end !important;
        gap: 3px !important;
        margin-left: auto !important;
    }

    .logo-text {
        font-size: 12px !important;
    }

    .header-hours {
        padding: 3px 5px !important;
        font-size: 8px !important;
        gap: 4px !important;
    }

    .header-hours span {
        display: inline !important;
        font-size: 8px !important;
    }

    .header-hours svg {
        width: 10px !important;
        height: 10px !important;
    }

    .social-link {
        padding: 3px 5px !important;
        font-size: 8px !important;
        border-radius: 5px !important;
        gap: 3px !important;
    }

    .social-link svg {
        width: 10px !important;
        height: 10px !important;
    }

    .cart-button {
        padding: 3px 5px !important;
        font-size: 8px !important;
        border-radius: 5px !important;
        gap: 2px !important;
    }

    .cart-button svg {
        width: 10px !important;
        height: 10px !important;
    }

    .cart-badge {
        width: 10px !important;
        height: 10px !important;
        font-size: 6px !important;
        top: -1px !important;
        right: -1px !important;
    }

    #checkoutForm .form-actions .btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 8px 10px !important;
        font-size: 10px !important;
    }
}

/* Scrollbar hiding for catalog-specific elements */
.category-filters,
.privacy-consent-content {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.category-filters::-webkit-scrollbar,
.privacy-consent-content::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Responsive styles for Privacy Consent Modal */
@media (max-width: 768px) {
    #privacyConsentModal.modal-overlay {
        padding: 4px !important;
    }

    #privacyConsentModal .modal {
        max-width: calc(100vw - 8px) !important;
        width: calc(100vw - 8px) !important;
        margin: 0 !important;
        max-height: 98vh !important;
    }

    #privacyConsentModal .modal-body {
        padding: 20px !important;
    }

    #privacyConsentModal .modal-header {
        padding: 20px 20px 0 !important;
    }

    #privacyConsentModal .modal-header h3 {
        font-size: 22px !important;
    }

    .privacy-consent-content {
        max-height: 75vh;
        padding-right: 6px;
    }

    .privacy-notice {
        font-size: 16px !important;
        margin-bottom: 16px !important;
        line-height: 1.6 !important;
    }

    .privacy-details {
        margin-bottom: 18px !important;
    }

    .privacy-details p {
        margin-bottom: 9px !important;
        font-size: 15px !important;
    }

    .privacy-details ul {
        margin-left: 20px !important;
        margin-bottom: 12px !important;
    }

    .privacy-details li {
        margin-bottom: 7px !important;
        line-height: 1.6 !important;
        font-size: 14px !important;
    }

    .privacy-assurance {
        padding: 12px 14px !important;
        margin-top: 14px !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
        border-radius: 7px !important;
    }

    .privacy-consent-checkbox {
        margin-bottom: 18px !important;
    }

    .privacy-consent-checkbox label {
        gap: 10px !important;
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    .privacy-consent-checkbox input[type="checkbox"] {
        width: 18px !important;
        height: 18px !important;
        margin-top: 3px !important;
    }

    .privacy-actions {
        gap: 6px;
        justify-content: flex-start !important;
    }

    .privacy-actions .btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }
}

@media (max-width: 480px) {
    #privacyConsentModal.modal-overlay {
        padding: 2px !important;
    }

    #privacyConsentModal .modal {
        max-width: calc(100vw - 4px) !important;
        width: calc(100vw - 4px) !important;
        margin: 0 !important;
        max-height: 98vh !important;
    }

    #privacyConsentModal .modal-body {
        padding: 18px !important;
    }

    #privacyConsentModal .modal-header {
        padding: 18px 18px 0 !important;
    }

    #privacyConsentModal .modal-header h3 {
        font-size: 20px !important;
    }

    .privacy-consent-content {
        max-height: 80vh;
        padding-right: 4px;
    }

    .privacy-notice {
        font-size: 13px !important;
        margin-bottom: 12px !important;
        line-height: 1.5 !important;
    }

    .privacy-details {
        margin-bottom: 14px !important;
    }

    .privacy-details p {
        margin-bottom: 6px !important;
        font-size: 12px !important;
    }

    .privacy-details ul {
        margin-left: 16px !important;
        margin-bottom: 8px !important;
    }

    .privacy-details li {
        margin-bottom: 4px !important;
        line-height: 1.5 !important;
        font-size: 11px !important;
    }

    .privacy-assurance {
        padding: 8px 10px !important;
        margin-top: 10px !important;
        font-size: 11px !important;
        line-height: 1.5 !important;
        border-radius: 6px !important;
    }

    .privacy-consent-checkbox {
        margin-bottom: 14px !important;
    }

    .privacy-consent-checkbox label {
        gap: 7px !important;
        font-size: 12px !important;
        line-height: 1.5 !important;
    }

    .privacy-consent-checkbox input[type="checkbox"] {
        width: 15px !important;
        height: 15px !important;
        margin-top: 2px !important;
    }

    .privacy-actions {
        gap: 5px;
        justify-content: flex-start !important;
    }

    .privacy-actions .btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }
}

/* Tablet landscape (1024x505) - compact privacy modal */
@media (width: 1024px) and (height: 505px) and (orientation: landscape),
(min-width: 1022px) and (max-width: 1026px) and (min-height: 503px) and (max-height: 507px) and (orientation: landscape) {
    #privacyConsentModal.modal-overlay {
        padding: 4px !important;
    }

    #privacyConsentModal .modal {
        max-width: calc(100vw - 8px) !important;
        width: calc(100vw - 8px) !important;
        margin: 0 !important;
        max-height: 95vh !important;
    }

    #privacyConsentModal .modal-body {
        padding: 16px !important;
    }

    #privacyConsentModal .modal-header {
        padding: 16px 16px 0 !important;
    }

    #privacyConsentModal .modal-header h3 {
        font-size: 19px !important;
    }

    .privacy-consent-content {
        max-height: 70vh !important;
        padding-right: 6px !important;
    }

    .privacy-notice {
        font-size: 15px !important;
        margin-bottom: 14px !important;
        line-height: 1.6 !important;
    }

    .privacy-details {
        margin-bottom: 16px !important;
    }

    .privacy-details p {
        margin-bottom: 8px !important;
        font-size: 14px !important;
    }

    .privacy-details ul {
        margin-left: 18px !important;
        margin-bottom: 10px !important;
    }

    .privacy-details li {
        margin-bottom: 6px !important;
        line-height: 1.6 !important;
        font-size: 13px !important;
    }

    .privacy-assurance {
        padding: 10px 12px !important;
        margin-top: 12px !important;
        font-size: 13px !important;
        line-height: 1.6 !important;
        border-radius: 7px !important;
    }

    .privacy-consent-checkbox {
        margin-bottom: 16px !important;
    }

    .privacy-consent-checkbox label {
        gap: 9px !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    .privacy-consent-checkbox input[type="checkbox"] {
        width: 17px !important;
        height: 17px !important;
        margin-top: 3px !important;
    }

    .privacy-actions {
        gap: 5px !important;
    }
}

/* Phone portrait (640x889) - compact privacy modal */
@media (width: 640px) and (height: 889px) and (orientation: portrait) {
    #privacyConsentModal.modal-overlay {
        padding: 2px !important;
    }

    #privacyConsentModal .modal {
        max-width: calc(100vw - 4px) !important;
        width: calc(100vw - 4px) !important;
        margin: 0 !important;
        max-height: 98vh !important;
    }

    #privacyConsentModal .modal-body {
        padding: 18px !important;
    }

    #privacyConsentModal .modal-header {
        padding: 18px 18px 0 !important;
    }

    #privacyConsentModal .modal-header h3 {
        font-size: 20px !important;
    }

    .privacy-consent-content {
        max-height: 80vh !important;
        padding-right: 4px !important;
    }

    .privacy-notice {
        font-size: 15px !important;
        margin-bottom: 14px !important;
        line-height: 1.6 !important;
    }

    .privacy-details {
        margin-bottom: 16px !important;
    }

    .privacy-details p {
        margin-bottom: 8px !important;
        font-size: 14px !important;
    }

    .privacy-details ul {
        margin-left: 18px !important;
        margin-bottom: 10px !important;
    }

    .privacy-details li {
        margin-bottom: 6px !important;
        line-height: 1.6 !important;
        font-size: 13px !important;
    }

    .privacy-assurance {
        padding: 10px 12px !important;
        margin-top: 12px !important;
        font-size: 13px !important;
        line-height: 1.6 !important;
        border-radius: 7px !important;
    }

    .privacy-consent-checkbox {
        margin-bottom: 16px !important;
    }

    .privacy-consent-checkbox label {
        gap: 9px !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    .privacy-consent-checkbox input[type="checkbox"] {
        width: 17px !important;
        height: 17px !important;
        margin-top: 3px !important;
    }

    .privacy-actions {
        gap: 5px !important;
    }
}

/* Phone portrait (380x754) - compact privacy modal */
@media (width: 380px) and (height: 754px) and (orientation: portrait) {
    #privacyConsentModal.modal-overlay {
        padding: 1px !important;
    }

    #privacyConsentModal .modal {
        max-width: calc(100vw - 2px) !important;
        width: calc(100vw - 2px) !important;
        margin: 0 !important;
        max-height: 99vh !important;
    }

    #privacyConsentModal .modal-body {
        padding: 16px !important;
    }

    #privacyConsentModal .modal-header {
        padding: 16px 16px 0 !important;
    }

    #privacyConsentModal .modal-header h3 {
        font-size: 19px !important;
    }

    .privacy-consent-content {
        max-height: 85vh !important;
        padding-right: 4px !important;
    }

    .privacy-notice {
        font-size: 15px !important;
        margin-bottom: 14px !important;
        line-height: 1.6 !important;
    }

    .privacy-details {
        margin-bottom: 16px !important;
    }

    .privacy-details p {
        margin-bottom: 8px !important;
        font-size: 14px !important;
    }

    .privacy-details ul {
        margin-left: 18px !important;
        margin-bottom: 10px !important;
    }

    .privacy-details li {
        margin-bottom: 6px !important;
        line-height: 1.6 !important;
        font-size: 13px !important;
    }

    .privacy-assurance {
        padding: 10px 12px !important;
        margin-top: 12px !important;
        font-size: 13px !important;
        line-height: 1.6 !important;
        border-radius: 7px !important;
    }

    .privacy-consent-checkbox {
        margin-bottom: 16px !important;
    }

    .privacy-consent-checkbox label {
        gap: 9px !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    .privacy-consent-checkbox input[type="checkbox"] {
        width: 17px !important;
        height: 17px !important;
        margin-top: 3px !important;
    }

    .privacy-actions {
        gap: 4px !important;
        justify-content: flex-start !important;
    }

    .privacy-actions .btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }
}

/* Mobile Landscape (823x309) - compact catalog */
@media (width: 823px) and (height: 309px) and (orientation: landscape),
(min-width: 820px) and (max-width: 826px) and (min-height: 305px) and (max-height: 313px) and (orientation: landscape) {

    /* Navigation - very compact */
    .nav-container {
        padding: 4px 6px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 4px !important;
    }

    .nav-container .logo {
        position: relative !important;
        left: auto !important;
        transform: none !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
    }

    .logo-text {
        font-size: 11px !important;
    }

    .nav-links {
        flex-direction: row !important;
        align-items: center !important;
        gap: 3px !important;
        margin-left: auto !important;
    }

    .header-hours {
        padding: 2px 4px !important;
        font-size: 7px !important;
        gap: 3px !important;
    }

    .header-hours span {
        display: inline !important;
        font-size: 7px !important;
    }

    .header-hours svg {
        width: 8px !important;
        height: 8px !important;
    }

    .social-link {
        padding: 3px 6px !important;
        font-size: 8px !important;
        gap: 3px !important;
    }

    .social-link svg {
        width: 10px !important;
        height: 10px !important;
    }

    .cart-button {
        padding: 3px 6px !important;
        font-size: 8px !important;
        gap: 3px !important;
    }

    .cart-button svg {
        width: 10px !important;
        height: 10px !important;
    }

    .cart-badge {
        width: 12px !important;
        height: 12px !important;
        font-size: 7px !important;
        top: -2px !important;
        right: -2px !important;
    }

    /* Page Header - compact */
    .page-header {
        margin-bottom: 8px !important;
    }

    .page-header h1 {
        font-size: 16px !important;
        margin-bottom: 2px !important;
    }

    .page-header .subtitle {
        font-size: 9px !important;
    }

    /* Filter Tabs - compact */
    .filter-tabs {
        margin-bottom: 8px !important;
        gap: 6px !important;
    }

    .search-box {
        height: 28px !important;
    }

    .search-box input {
        padding: 4px 8px 4px 28px !important;
        font-size: 10px !important;
        border-radius: 6px !important;
    }

    .search-box svg {
        width: 12px !important;
        height: 12px !important;
        left: 8px !important;
    }

    .filter-tabs-group {
        gap: 4px !important;
    }

    .filter-tab {
        padding: 4px 8px !important;
        font-size: 9px !important;
        border-radius: 6px !important;
        height: 24px !important;
    }

    /* Product Grid - compact */
    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        padding-bottom: 20px !important;
    }

    .product-grid .loading-state {
        min-height: 200px !important;
        padding: 20px !important;
    }

    .spinner-large {
        width: 32px !important;
        height: 32px !important;
        border-width: 2px !important;
        margin-bottom: 12px !important;
    }

    .loading-state p {
        font-size: 10px !important;
    }

    /* Product Cards - compact */
    .product-card {
        padding: 6px !important;
        border-radius: 10px !important;
    }

    .product-image-container {
        height: 80px !important;
        margin-bottom: 4px !important;
        border-radius: 4px !important;
    }

    .product-badge {
        padding: 2px 4px !important;
        font-size: 7px !important;
        border-radius: 3px !important;
        top: 4px !important;
        right: 4px !important;
    }

    .card-header {
        margin-bottom: 2px !important;
    }

    .card-category {
        padding: 2px 4px !important;
        font-size: 7px !important;
        border-radius: 3px !important;
    }

    .card-name {
        font-size: 10px !important;
        margin-bottom: 4px !important;
        line-height: 1.3 !important;
    }

    .card-details {
        gap: 4px !important;
        margin-bottom: 4px !important;
    }

    .detail-label {
        font-size: 7px !important;
    }

    .detail-value {
        font-size: 9px !important;
    }

    .product-info {
        padding: 6px !important;
        gap: 6px !important;
    }

    .card-name {
        font-size: 10px !important;
        margin-bottom: 2px !important;
    }

    .card-details {
        gap: 4px !important;
        margin-bottom: 4px !important;
        flex-direction: row !important;
    }

    .detail-label {
        font-size: 7px !important;
    }

    .detail-value {
        font-size: 9px !important;
    }

    .card-actions {
        gap: 4px !important;
        flex-direction: row !important;
        margin-top: 2px !important;
    }

    .btn-card {
        padding: 4px 6px !important;
        font-size: 8px !important;
        border-radius: 4px !important;
        gap: 3px !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }

    .btn-card svg {
        width: 10px !important;
        height: 10px !important;
    }

    /* Modals - compact */
    .modal-overlay {
        padding: 4px !important;
    }

    .modal {
        max-height: 95vh !important;
        border-radius: 8px !important;
    }

    .modal-header {
        padding: 8px 10px !important;
    }

    .modal-header h3 {
        font-size: 14px !important;
    }

    .modal-close {
        width: 20px !important;
        height: 20px !important;
    }

    .modal-close svg {
        width: 12px !important;
        height: 12px !important;
    }

    .modal-body {
        padding: 10px !important;
    }

    /* Cart Modal - compact */
    .cart-container {
        gap: 8px !important;
    }

    .cart-items {
        max-height: 40vh !important;
        gap: 6px !important;
        padding: 6px !important;
    }

    .cart-row {
        padding: 6px !important;
        gap: 6px !important;
        border-radius: 6px !important;
    }

    .cart-name {
        font-size: 9px !important;
    }

    .cart-price {
        font-size: 9px !important;
    }

    .cart-qty-input {
        width: 40px !important;
        height: 24px !important;
        padding: 2px 4px !important;
        font-size: 9px !important;
    }

    .cart-subtotal {
        font-size: 9px !important;
    }

    .cart-remove-btn {
        padding: 2px !important;
    }

    .cart-remove-btn svg {
        width: 10px !important;
        height: 10px !important;
    }

    .cart-summary {
        padding: 8px !important;
        gap: 6px !important;
    }

    .cart-total-amount {
        font-size: 12px !important;
    }

    .cart-actions {
        gap: 6px !important;
        margin-top: 8px !important;
    }

    .cart-actions .btn {
        padding: 6px 12px !important;
        font-size: 10px !important;
    }

    /* Checkout Form - compact */
    .form-group {
        margin-bottom: 8px !important;
    }

    .form-group label {
        font-size: 9px !important;
        margin-bottom: 3px !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 5px 8px !important;
        font-size: 10px !important;
        border-radius: 6px !important;
        min-height: 28px !important;
    }

    .form-actions {
        gap: 6px !important;
        margin-top: 8px !important;
    }

    #checkoutForm .form-actions .btn {
        padding: 6px 12px !important;
        font-size: 10px !important;
    }

    .checkout-total {
        padding: 8px !important;
        font-size: 11px !important;
        margin-bottom: 8px !important;
    }

    /* Privacy Consent Modal - compact */
    #privacyConsentModal .modal {
        max-width: calc(100vw - 8px) !important;
        width: calc(100vw - 8px) !important;
        max-height: 95vh !important;
    }

    #privacyConsentModal .modal-body {
        padding: 10px !important;
    }

    #privacyConsentModal .modal-header {
        padding: 8px 10px 0 !important;
    }

    #privacyConsentModal .modal-header h3 {
        font-size: 13px !important;
    }

    .privacy-consent-content {
        max-height: 70vh !important;
        padding-right: 4px !important;
    }

    .privacy-notice {
        font-size: 11px !important;
        margin-bottom: 8px !important;
        line-height: 1.4 !important;
    }

    .privacy-details {
        margin-bottom: 8px !important;
    }

    .privacy-details p {
        margin-bottom: 4px !important;
        font-size: 10px !important;
    }

    .privacy-details ul {
        margin-left: 14px !important;
        margin-bottom: 6px !important;
    }

    .privacy-details li {
        margin-bottom: 3px !important;
        font-size: 9px !important;
        line-height: 1.4 !important;
    }

    .privacy-assurance {
        padding: 6px 8px !important;
        margin-top: 6px !important;
        font-size: 9px !important;
        line-height: 1.4 !important;
        border-radius: 5px !important;
    }

    .privacy-consent-checkbox {
        margin-bottom: 8px !important;
    }

    .privacy-consent-checkbox label {
        gap: 6px !important;
        font-size: 10px !important;
        line-height: 1.4 !important;
    }

    .privacy-consent-checkbox input[type="checkbox"] {
        width: 14px !important;
        height: 14px !important;
        margin-top: 2px !important;
    }

    .privacy-actions {
        gap: 4px !important;
    }

    .privacy-actions .btn {
        padding: 6px 10px !important;
        font-size: 10px !important;
    }
}

/* Large Desktop (1920x951 and similar) - show everything without scrolling */
@media (min-width: 1920px) and (min-height: 900px) and (orientation: landscape),
(min-width: 1900px) and (min-height: 900px) {

    /* Large Desktop - Better space utilization */
    .nav-container {
        max-width: 1800px;
        padding: 16px 48px;
    }

    main {
        max-width: 1800px;
        padding: 0 48px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 320px));
        gap: 32px;
        max-width: 100%;
    }

    /* Show more items per row on very large screens */
    @media (min-width: 2000px) {
        .nav-container {
            max-width: 1920px;
            padding: 16px 64px;
        }

        main {
            max-width: 1920px;
            padding: 0 64px;
        }

        .product-grid {
            grid-template-columns: repeat(auto-fill, minmax(320px, 340px));
            gap: 36px;
        }
    }

    #privacyConsentModal .modal {
        max-height: 95vh !important;
        max-width: 900px !important;
        width: 900px !important;
    }

    #privacyConsentModal .modal-body {
        padding: 24px !important;
        display: flex !important;
        flex-direction: column !important;
        max-height: calc(95vh - 80px) !important;
        overflow: visible !important;
    }

    #privacyConsentModal .privacy-consent-content {
        max-height: none !important;
        overflow-y: visible !important;
        overflow-x: visible !important;
        flex: 1 1 auto;
        padding-right: 12px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    #privacyConsentModal .privacy-actions {
        flex-shrink: 0 !important;
        margin-top: 24px !important;
        width: 100% !important;
    }

    /* Navigation - align logo to left on large screens */
    .nav-container {
        max-width: 1800px !important;
        padding: 16px 48px !important;
        justify-content: flex-start !important;
        position: relative;
    }

    .nav-container .logo {
        position: relative !important;
        left: auto !important;
        transform: none !important;
        margin-right: auto;
        flex-shrink: 0;
    }

    .nav-links {
        margin-left: auto !important;
        margin-right: 0;
        gap: 16px !important;
    }

    /* Increase size of navigation elements on large screens - slightly larger */
    .nav-container .header-hours {
        padding: 10px 20px !important;
        font-size: 14px !important;
        gap: 10px !important;
    }

    .nav-container .header-hours span {
        font-size: 14px !important;
    }

    .nav-container .header-hours svg {
        width: 18px !important;
        height: 18px !important;
    }

    .nav-container .social-link {
        padding: 10px 20px !important;
        font-size: 15px !important;
        gap: 10px !important;
    }

    .nav-container .social-link svg {
        width: 20px !important;
        height: 20px !important;
    }

    .nav-container .cart-button {
        padding: 10px 20px !important;
        font-size: 15px !important;
        gap: 10px !important;
    }

    .nav-container .cart-button svg {
        width: 20px !important;
        height: 20px !important;
    }

    .nav-container .cart-badge {
        width: 22px !important;
        height: 22px !important;
        font-size: 12px !important;
        top: -7px !important;
        right: -7px !important;
    }
}

/* Unified nav chip sizing: hours, social links, and cart button */
.header-hours,
.social-link,
.cart-button {
    padding: 8px 16px !important;
    font-size: 14px !important;
    gap: 8px !important;
    border-radius: 10px !important;
}

.header-hours svg,
.social-link svg,
.cart-button svg {
    width: 20px !important;
    height: 20px !important;
}

@media (max-width: 1024px) {
    .header-hours,
    .social-link,
    .cart-button {
        padding: 6px 12px !important;
        font-size: 12px !important;
        gap: 6px !important;
        border-radius: 8px !important;
    }

    .header-hours svg,
    .social-link svg,
    .cart-button svg {
        width: 16px !important;
        height: 16px !important;
    }
}

@media (max-width: 768px) {
    .header-hours,
    .social-link,
    .cart-button {
        padding: 5px 10px !important;
        font-size: 11px !important;
        gap: 6px !important;
        border-radius: 8px !important;
    }

    .header-hours svg,
    .social-link svg,
    .cart-button svg {
        width: 14px !important;
        height: 14px !important;
    }
}

@media (max-width: 480px) {
    .header-hours,
    .social-link,
    .cart-button {
        padding: 4px 8px !important;
        font-size: 10px !important;
        gap: 4px !important;
        border-radius: 6px !important;
    }

    .header-hours svg,
    .social-link svg,
    .cart-button svg {
        width: 12px !important;
        height: 12px !important;
    }
}

@media (max-width: 360px) {
    .header-hours,
    .social-link,
    .cart-button {
        border-radius: 5px !important;
    }
}
/* Keep compact navigation readable across phone and tablet sizes.
   Scoped overrides also cover the older device-specific rules above. */
@media (max-width: 1366px) {
    .nav .nav-container {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 14px 16px !important;
    }

    .nav .nav-container .logo {
        position: static !important;
        transform: none !important;
        margin: 0 !important;
    }

    .nav .logo-text {
        font-size: 22px !important;
    }

    .nav .nav-links {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100% !important;
        max-width: 640px;
        margin: 0 !important;
        gap: 10px !important;
    }

    .nav .header-hours {
        grid-column: 1 / -1;
        justify-content: center;
        padding: 0 !important;
        background: transparent;
        border: 0;
    }

    .nav .header-hours span {
        display: inline !important;
        font-size: 12px !important;
    }

    .nav .social-link,
    .nav .cart-button {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 30px;
        padding: 8px 6px !important;
        gap: 6px !important;
        border-radius: 10px !important;
        font-size: 12px !important;
        white-space: nowrap;
    }

    .nav .social-link svg,
    .nav .cart-button svg,
    .nav .header-hours svg {
        flex-shrink: 0;
        width: 18px !important;
        height: 18px !important;
    }

    .nav .cart-badge {
        width: 18px !important;
        height: 18px !important;
        font-size: 10px !important;
        top: -6px !important;
        right: -4px !important;
    }

    .nav .social-link:focus-visible,
    .nav .cart-button:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 3px;
    }
}

@media (max-width: 767px) {
    .nav .nav-links {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .nav #ordersBtn,
    .nav #cartBtn {
        grid-column: auto !important;
        width: 100% !important;
    }

    .nav #customerNavContainer {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        display: flex !important;
    }

    /* When customer is logged in on smaller screens, pair Cart and Profile Pill side-by-side in 2-column grid */
    body.customer-logged-in .nav #customerNavContainer {
        grid-column: auto !important;
    }

    .nav #customerNavContainer .customer-nav-btn,
    .nav #customerNavContainer .customer-profile-pill {
        width: 100% !important;
        justify-content: center !important;
        min-height: 30px;
        padding: 8px 6px !important;
        gap: 6px !important;
        border-radius: 10px !important;
        font-size: 12px !important;
    }
}

/* Tablets and desktops share a left logo and right navigation layout. */
@media (min-width: 768px) {
    .nav .nav-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 20px !important;
    }

    .nav .nav-container .logo {
        position: static !important;
        transform: none !important;
        flex-shrink: 0;
        margin: 0 !important;
    }

    .nav .logo-text {
        white-space: nowrap;
    }

    .nav .nav-links {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: flex-end !important;
        width: auto !important;
        min-width: 0;
        max-width: none;
        margin-left: auto !important;
    }

    .nav .header-hours {
        padding: 8px 10px !important;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border);
        white-space: nowrap;
    }
}

/* Empty cart modal */
#cartModal .cart-empty-state {
    display: none;
    padding: 32px 16px;
    text-align: center;
}

#cartModal.is-empty .cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

#cartModal .cart-empty-state svg,
#cartModal .cart-empty-state p {
    color: var(--text-secondary);
}

#cartModal .cart-empty-state h3,
#cartModal .cart-empty-state p {
    margin: 0;
}

#cartModal .cart-empty-state .btn {
    min-height: 44px;
    margin-top: 8px;
}

#cartModal.is-empty .cart-items,
#cartModal.is-empty .cart-summary,
#cartModal.is-empty .cart-actions {
    display: none;
}

#privacyDeclinedModal {
    width: min(480px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 28px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    text-align: center;
}

#privacyDeclinedModal::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

#privacyDeclinedModal h3 {
    margin: 0 0 14px;
    font-size: 22px;
}

#privacyDeclinedModal p {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

#privacyDeclinedModal .btn {
    min-height: 44px;
    width: 100%;
}

#clearCartModal {
    width: min(440px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 28px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    text-align: center;
}

#clearCartModal::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

#clearCartModal h3 {
    margin: 0 0 12px;
    font-size: 22px;
}

#clearCartModal p {
    margin: 0 0 24px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.clear-cart-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.clear-cart-dialog-actions .btn {
    flex: 1 1 140px;
    min-height: 44px;
    justify-content: center;
}
