/*
Theme Name: Custom Pro Theme
Theme URI: http://example.com/custom-pro-theme
Author:Bishnu Tiwari
Author URI: http://example.com
Description: A fully customized, premium WordPress theme for Booz Guyz.
Version: 2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: custom-pro-theme
*/

:root {
    --primary-color: #0f1014;
    /* Dark Background */
    --secondary-color: #1a1b20;
    /* Card Background */
    --accent-color: #c0392b;
    /* Red Accent */
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --font-main: 'Inter', sans-serif;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: rgba(15, 16, 20, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

/* Header & Navigation */
header {
    background-color: var(--secondary-color);
    background: rgba(42, 4, 4, 0.2);
    /* 20% white */
    backdrop-filter: blur(8px);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    height: 80px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.site-logo {
    z-index: 10;
}

.site-logo img {
    height: 100%;
    max-height: 72px;
    width: auto;
    transition: transform 0.3s ease;
}

.site-logo:hover img {
    transform: scale(1.05);
}

/* Desktop Nav */
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-color);
}

.header-cta .btn-call {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-cta .btn-call:hover {
    background-color: #a93226;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: var(--accent-color);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* Mobile Menu Container */
.mobile-menu {
    display: none;
    background-color: var(--secondary-color);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 0;
    text-align: center;
    background-image: url('/wp-content/themes/custom-pro-theme/assets/HeroBanner.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: 600;
}

.hero h1 span {
    display: block;
    font-size: 4.5rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.5rem;
    color: var(--primary-color);
    background-color: rgb(100, 163, 226);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 15px 40px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Menu Grid */
.menu-section {
    padding: 10px 0;
}

.section-title {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 5px;
}



.section-title h2 {
    font-size: 2.0rem;
    text-transform: uppercase;
    margin-bottom: 0px;
}

.section-title::before,
.section-title::after {
    content: "";
    flex: 1;
    border-bottom: 2px solid var(--accent-color);
    margin: 5px 10px
}

/* Menu Section */
#menu {
    padding: 80px 0;
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

#menu::before {
    content: '';
    position: fixed;
    top: 76%;
    left: -35%;
    transform: translateY(-50%);
    width: 90%;
    height: 180%;
    background-image: url('/wp-content/themes/custom-pro-theme/assets/boozguyzlogo_icon.svg');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

#menu .container {
    position: relative;
    z-index: 1;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* Menu Subtitle Wrapper */
.menu-subtitle-wrapper {
    position: relative;
    margin-bottom: 20px;
}

/* Menu Search Container */
.menu-search-container {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

/* Menu Search Box */
.menu-search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 300px;
}

.menu-search-box i {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.menu-search-box input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    background-color: var(--primary-color);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.menu-search-box input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.menu-search-box input::placeholder {
    color: var(--text-muted);
}



/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.category-tab:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.category-tab.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination-btn {
    padding: 12px 24px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
    background: #a93226;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

.pagination-btn:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-info {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    min-width: 120px;
    text-align: center;
}

#currentPage,
#totalPages {
    font-weight: 700;
    color: var(--accent-color);
}

.menu-item-card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.menu-item-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.menu-item-image {
    height: 200px;
    margin-bottom: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('/wp-content/themes/custom-pro-theme/assets/liquorbg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.menu-item-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.menu-item-card h3 {
    font-size: 1.2rem;
    margin: 10px 0;
}

.menu-item-price {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.menu-item-volume {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: block;
}

.btn-add-cart {
    background-color: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background-color: var(--text-color);
    color: var(--primary-color);
}

/* Variant Selection */
.variant-selection {
    margin: 20px 0;
}

.variant-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    gap: 12px;
}

.variant-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
}

/* Green background when items are added */
.variant-option.has-items {
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.15);
}

.variant-cart-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.variant-quantity-display {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    border-radius: 50%;
    padding: 2px;
}

.btn-add-to-cart {
    padding: 6px 16px;
    background: rgba(52, 152, 219, 0.8);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-add-to-cart:hover {
    background: rgba(41, 128, 185, 1);
    transform: translateY(-1px);
}

.btn-add-to-cart:active {
    transform: translateY(0);
}

.variant-label {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.variant-size {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-color);
}

.variant-separator {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.variant-price {
    font-weight: 700;
    font-family: 'Arial', sans-serif;
    color: #e74c3c;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}


/* Delivery Info */
.delivery-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: left;
}

.delivery-item h3 {
    color: var(--text-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.delivery-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
footer {
    background-color: #000;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100vh;
    /* Use vh to prevent resize on keyboard */
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    /* Allow scrolling if content is too tall */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

.cart-content {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    /* Prevent modal from being taller than viewport */
    overflow-y: auto;
    /* Allow internal scrolling */
    border: 1px solid var(--border-color);
    margin: auto;
    /* Center vertically when scrolling */
    position: relative;
    /* Ensure proper positioning */
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.id-verification-notice {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: -10px 0 15px 0;
    font-style: italic;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.cart-total {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: right;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 4px;
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 4px;
    font-family: var(--font-main);
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.btn-checkout {
    width: 100%;
    background-color: var(--accent-color);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Floating Cart Button */
.floating-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.4);
    z-index: 1500;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: white;
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Media Queries */
@media (max-width: 768px) {

    /* Header */
    header .container nav {
        display: none;
        /* Hide default nav */
    }

    /* Show CTA on mobile but smaller */
    .header-cta.desktop-only {
        display: flex !important;
        justify-content: center;
        align-items: center;
    }

    .header-cta .btn-call {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .mobile-menu-btn {
        display: block;
        margin-left: 10px;
    }

    /* Adjust logo size for mobile */
    .site-logo img {
        max-height: 50px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
        color: var(--primary-color);
    }

    /* Menu Grid - 2 columns with better spacing */
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .menu-item-card {
        padding: 12px;
        border-radius: 8px;
    }

    .menu-item-card h3 {
        font-size: 0.9rem;
        margin-bottom: 8px;
        line-height: 1.2;
    }

    /* Image adjustments */
    .menu-item-image {
        height: 120px;
        margin-bottom: 8px;
    }

    /* Variant selection - more spacious */
    .variant-selection {
        margin: 12px 0;
    }

    /* Stack variants for better layout */
    .variant-option {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
        gap: 8px;
    }

    .variant-label {
        font-size: 0.85rem;
        width: 100%;
    }

    .variant-cart-controls {
        width: 100%;
        justify-content: space-between;
    }

    .btn-add-to-cart {
        flex: 1;
        text-align: center;
        justify-content: center;
    }

    .variant-size {
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .variant-separator {
        font-size: 0.75rem;
    }

    .variant-price {
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .variant-quantity {
        width: 55px !important;
        min-width: 55px !important;
        max-width: 55px !important;
        padding: 6px 4px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    /* + Cart button mobile */
    .btn-add-to-cart {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .variant-quantity-display {
        font-size: 0.75rem;
        min-width: 24px;
        height: 24px;
    }

    /* Category tabs */
    .category-tabs {
        gap: 6px;
        margin-bottom: 20px;
    }

    .category-tab {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    /* Menu Subtitle Wrapper - Mobile */
    .menu-subtitle-wrapper {
        margin-bottom: 15px;
    }

    .menu-search-container {
        position: static;
        transform: none;
        margin-top: 12px;
    }

    .menu-search-box {
        width: 100%;
    }

    .menu-search-box input {
        font-size: 0.85rem;
        padding: 8px 10px 8px 32px;
    }

    /* Delivery Grid */
    .delivery-grid {
        grid-template-columns: 1fr;
    }

    /* Age Modal */
    .age-modal-content {
        padding: 40px 30px;
    }

    .age-modal-content h2 {
        font-size: 2rem;
    }

    .age-modal-buttons {
        flex-direction: column;
    }

    .age-btn {
        width: 100%;
    }
}

/* Age Verification Modal */
.age-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.age-modal-content {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #252630 100%);
    padding: 60px 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 2px solid var(--accent-color);
    box-shadow: 0 20px 60px rgba(192, 57, 43, 0.3);
    animation: fadeInScale 0.4s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.age-modal-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.age-modal-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.age-modal-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.age-btn {
    padding: 15px 50px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.age-btn-yes {
    background-color: var(--accent-color);
    color: white;
}

.age-btn-yes:hover {
    background-color: #a93226;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(192, 57, 43, 0.4);
}

.age-btn-no {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.age-btn-no:hover {
    background-color: var(--text-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.age-rejection-message {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(192, 57, 43, 0.1);
    border-radius: 8px;
    border: 1px solid var(--accent-color);
}

.age-rejection-message p {
    font-size: 1.3rem;
    color: var(--accent-color);
    font-weight: 600;
    margin: 0;
}

@media (max-width: 768px) {
    .age-modal-content {
        padding: 40px 30px;
    }

    .age-modal-content h2 {
        font-size: 2rem;
    }

    .age-modal-buttons {
        flex-direction: column;
    }

    .age-btn {
        width: 100%;
    }

    /* Mobile responsive background images */
    .hero {
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
        padding: 60px 0;
    }

    #contact {
        background-image: none !important;
        background-color: var(--primary-color) !important;
        background-attachment: scroll !important;
        padding: 60px 0 !important;
        min-height: auto !important;
    }

    /* Contact section mobile layout */
    #contact .container>div:first-of-type {
        max-width: 100% !important;
    }

    #contact .section-title,
    #contact .section-subtitle {
        text-align: center !important;
    }

    /* Stack contact cards vertically on mobile */
    #contact .container>div:last-child {
        max-width: 100% !important;
    }

    #contact .container>div:last-child>div {
        gap: 15px !important;
    }

    /* Mobile Cart Modal Fix */
    /* Mobile Cart Modal Fix */
    .cart-content {
        width: 95%;
        max-height: 80vh;
        /* Fallback */
        max-height: 80dvh;
        /* Dynamic viewport height for mobile browsers */
        padding: 15px;
        margin: 10px auto;
        display: flex;
        flex-direction: column;
        position: relative;
        /* Ensure z-index works */
    }

    .cart-items {
        max-height: 120px;
        /* Reduced to give more space to form */
        flex-shrink: 1;
        /* Allow shrinking if needed */
    }

    /* Fix iOS Zoom on Input Focus */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px !important;
        /* Prevents zoom on iOS */
    }

    .cart-header h2 {
        font-size: 1.5rem;
    }

    .form-group {
        margin-bottom: 8px;
        /* More compact spacing */
    }

    .btn-checkout {
        margin-top: auto;
        /* Push to bottom if flex container has space */
        padding: 15px;
        /* Larger touch target */
    }
}