/*
 Theme Name:   Blocksy Child
 Description:  Child theme for Blocksy - Westside Wine Cellar & Beer
 Author:       Westside Wine Cellar & Beer
 Template:     blocksy
 Version:      1.0.48
 Text Domain:  blocksy-child
*/

/* ============================================
   1. BRAND DESIGN TOKENS
   ============================================ */
:root {
    --ww-wine: #722F37;
    --ww-wine-dark: #58111A;
    --ww-wine-light: #8B3A42;
    --ww-wine-pale: #F5E6E8;
    --ww-wine-bg: #FDF8F8;
    --ww-white: #FFFFFF;
    --ww-off-white: #FAFAFA;
    --ww-gray-50: #F9FAFB;
    --ww-gray-100: #F3F4F6;
    --ww-gray-200: #E5E7EB;
    --ww-gray-300: #D1D5DB;
    --ww-gray-400: #9CA3AF;
    --ww-gray-500: #6B7280;
    --ww-gray-600: #4B5563;
    --ww-gray-700: #374151;
    --ww-gray-800: #1F2937;
    --ww-gray-900: #111827;
    --ww-green: #059669;
    --ww-green-light: #D1FAE5;
    --ww-yellow: #D97706;
    --ww-yellow-light: #FEF3F7;
    --ww-red: #DC2626;
    --ww-red-light: #FEE2E2;
    --ww-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ww-radius: 8px;
    --ww-radius-lg: 12px;
    --ww-radius-xl: 16px;
    --ww-transition: 0.2s ease;
    --ww-transition-slow: 0.35s ease;
    --ww-max-width: 1400px;
    --ww-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --ww-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --ww-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    position: relative;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.ct-header,
header#header {
    overflow: visible !important;
}

/* Header Middle Row Height */
.ct-header [data-row="middle"],
header#header [data-row="middle"] {
    min-height: 100px !important;
}

.ct-header [data-row="middle"] > .ct-container,
header#header [data-row="middle"] > .ct-container {
    min-height: 100px !important;
}

/* Header Logo & Site Branding */
.site-branding {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.site-branding .site-logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.site-branding .site-logo-container img.default-logo,
.site-branding .site-logo-container img {
    width: 120px;
    height: 120px;
    max-height: 120px;
    object-fit: contain;
    aspect-ratio: 1 / 1;
    display: block;
}

.site-branding .site-title a {
    font-size: 1.35rem;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .site-branding .site-logo-container img.default-logo,
    .site-branding .site-logo-container img {
        width: 80px;
        height: 80px;
        max-height: 80px;
    }
}

@media (max-width: 767.98px) {
    .ct-header [data-device="mobile"] [data-row="middle"] {
        min-height: 70px !important;
    }
    .site-branding .site-logo-container img.default-logo,
    .site-branding .site-logo-container img {
        width: 50px;
        height: 50px;
        max-height: 50px;
    }
}

/* Header Dropdown Flyout Sub-menu */
.header-menu-1 .menu-item-has-children,
.menu .menu-item-has-children {
    position: relative;
}

.header-menu-1 .sub-menu,
.menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 99999;
    min-width: 180px;
    background: #ffffff !important;
    border: 1px solid var(--ww-gray-200);
    border-radius: var(--ww-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.header-menu-1 .menu-item-has-children:hover > .sub-menu,
.header-menu-1 .menu-item-has-children:focus-within > .sub-menu,
.menu .menu-item-has-children:hover > .sub-menu,
.menu .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.header-menu-1 .sub-menu li a,
.menu .sub-menu li a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--ww-gray-800) !important;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.header-menu-1 .sub-menu li a:hover,
.menu .sub-menu li a:hover {
    background: var(--ww-wine-pale) !important;
    color: var(--ww-wine) !important;
}

.col-full {
    max-width: var(--ww-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 767.98px) {
    .col-full {
        padding: 0 1rem;
    }
}

/* ============================================
   2. STORE STATUS BADGE
   ============================================ */
.westside-store-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.25rem 0;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--ww-font);
    width: fit-content;
    max-width: max-content;
    align-self: flex-start;
}

.westside-store-status.is-open {
    background: var(--ww-green-light);
    color: var(--ww-green);
}

.westside-store-status.is-closing-soon {
    background: var(--ww-yellow-light);
    color: var(--ww-yellow);
}

.westside-store-status.is-closed {
    background: var(--ww-red-light);
    color: var(--ww-red);
}

.westside-store-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ============================================
   3. HOURS TABLE
   ============================================ */
.westside-hours-table {
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
}

.westside-hours-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    border: none;
}

.westside-hours-table th,
.westside-hours-table td {
    padding: 0.6rem 0.5rem;
    text-align: left;
    border: none;
    border-bottom: 1px solid var(--ww-gray-200);
}

.westside-hours-table tr:nth-child(even) td {
    background: var(--ww-off-white);
}

.westside-hours-table th,
.westside-hours-table td:first-child {
    font-weight: 600;
    color: var(--ww-gray-800);
    width: 35%;
    padding-left: 0.5rem;
}

.westside-hours-table td:last-child {
    padding-right: 0.5rem;
}

.westside-hours-table td {
    color: var(--ww-gray-600);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .westside-hours-table th,
    .westside-hours-table td:first-child {
        width: 42%;
        padding-left: 0.25rem;
    }

    .westside-hours-table th,
    .westside-hours-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.85rem;
    }
}

.westside-hours-table tr.is-today th,
.westside-hours-table tr.is-today td {
    color: var(--ww-wine);
    font-weight: 700;
    background: rgba(139, 30, 48, 0.05);
}

/* ============================================
   4. GET DIRECTIONS BUTTON & COMMON BUTTON
   ============================================ */
body .westside-directions-btn a,
body .westside-btn a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform var(--ww-transition), box-shadow var(--ww-transition);
}

body .westside-directions-btn a:hover,
body .westside-btn a:hover {
    transform: translateY(-1px);
    box-shadow: var(--ww-shadow-md);
}

body .westside-directions-btn a::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M14 5l7 7m0 0l-7 7m7-7H3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ============================================
   5. GOOGLE MAPS EMBED
   ============================================ */
.westside-map-container {
    border-radius: var(--ww-radius-lg);
    overflow: hidden;
    box-shadow: var(--ww-shadow-lg);
    border: 1px solid var(--ww-gray-200);
    height: 100%;
    min-height: 380px;
    width: 100%;
}

.westside-map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
    display: block;
}

/* ============================================
   6. PROMO BAR
   ============================================ */
.westside-promo-bar {
    background: var(--ww-wine);
    color: var(--ww-white);
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.4;
    padding: 0.65rem 1.5rem;
    box-sizing: border-box;
    width: 100%;
    position: relative;
    z-index: 100;
}

.westside-promo-bar strong {
    font-weight: 700;
}

.westside-promo-bar .promo-icon {
    margin: 0 0.35rem;
    font-style: normal;
}

/* Hide duplicate top row and promo bar inside header builder */
header#header [data-row="top"],
header .westside-promo-bar {
    display: none !important;
}

@media (max-width: 767.98px) {
    .westside-promo-bar {
        font-size: 0.8rem;
        padding: 0.55rem 0.85rem;
        line-height: 1.35;
    }
}

/* ============================================
   7. HOMEPAGE — BUSINESS INFO SECTION
   ============================================ */
.westside-hero-section {
    background: var(--ww-off-white);
    border-bottom: 1px solid var(--ww-gray-200);
    padding: 3.5rem 2rem;
    box-sizing: border-box;
}

.westside-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: var(--ww-max-width);
    margin: 0 auto;
}

@media (max-width: 991px) {
    .westside-hero-inner {
        grid-template-columns: 1fr;
    }
}

.westside-business-info h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--ww-gray-900);
    margin: 0 0 1.5rem 0;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.westside-contact-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--ww-gray-600);
}

.westside-contact-row svg {
    width: 18px;
    height: 18px;
    color: var(--ww-wine);
    flex-shrink: 0;
}

.westside-contact-row a {
    color: var(--ww-gray-700);
    text-decoration: none;
    font-weight: 500;
}

.westside-contact-row a:hover {
    color: var(--ww-wine);
}

/* ============================================
   8. HOMEPAGE — FEATURED CATEGORIES
   ============================================ */
.westside-featured-cats {
    background: var(--ww-white);
    padding: 4rem 2rem;
    box-sizing: border-box;
}

.westside-featured-cats-inner {
    max-width: var(--ww-max-width);
    margin: 0 auto;
}

.westside-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--ww-gray-900);
    letter-spacing: -0.02em;
}

.westside-cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 767px) {
    .westside-cat-grid {
        grid-template-columns: 1fr;
    }
}

.westside-cat-card {
    position: relative;
    border-radius: var(--ww-radius-lg);
    overflow: hidden;
    height: 240px;
    text-decoration: none;
    display: block;
    transition: transform var(--ww-transition-slow), box-shadow var(--ww-transition-slow);
}

.westside-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ww-shadow-xl);
}

.westside-cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.westside-cat-card:hover img {
    transform: scale(1.05);
}

.westside-cat-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.westside-cat-card-overlay h3 {
    color: var(--ww-white);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.02em;
}

.westside-cat-card-overlay span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ============================================
   9. HOMEPAGE — SECTIONS (Curated Wines, Beer)
   ============================================ */
.westside-section {
    padding: 4rem 2rem;
    box-sizing: border-box;
}

.westside-section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.westside-section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ww-gray-900);
    margin: 0 0 0.5rem 0;
}

.westside-section-header p {
    color: var(--ww-gray-600);
    margin: 0;
}

.westside-products-wrap {
    max-width: var(--ww-max-width);
    margin: 0 auto;
}

/* ============================================
   10. WOOCOMMERCE PRODUCT GRID — DENSE LAYOUT
   ============================================ */
ul.products {
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

ul.products li.product,
ul.products li.product-category {
    margin: 0;
    padding: 0 0 1.25rem 0;
    background: var(--ww-white);
    border: 1px solid var(--ww-gray-200);
    border-radius: var(--ww-radius);
    overflow: hidden;
    transition: all var(--ww-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

ul.products li.product:hover,
ul.products li.product-category:hover {
    border-color: var(--ww-gray-300);
    box-shadow: var(--ww-shadow-md);
    transform: translateY(-2px);
}

ul.products li.product-category a {
    width: 100%;
    display: block;
    text-decoration: none;
}

ul.products li.product-category a img,
ul.products li.product-category img,
.wc-block-grid__product-category img {
    margin: 0 0 0.75rem 0;
    border-radius: 0;
    aspect-ratio: 4 / 3;
    object-fit: cover !important;
    width: 100% !important;
    display: block;
}

ul.products li.product-category .woocommerce-loop-category__title,
ul.products li.product-category h2,
ul.products li.product-category h3 {
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    margin: 0 0 0.25rem 0;
    color: var(--ww-gray-900);
    line-height: 1.3;
}

ul.products li.product-category .count {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ww-gray-500);
}

ul.products li.product a img,
ul.products li.product img,
.wc-block-grid__product a img,
.wc-block-grid__product img,
[data-products] .product img,
.product-entry .ct-media-container img {
    margin: 0 0 0.75rem 0;
    border-radius: 0;
    aspect-ratio: 1;
    object-fit: contain;
    width: 100%;
}

ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2 {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0 1rem;
    margin: 0 0 0.5rem 0;
    color: var(--ww-gray-800);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

ul.products li.product .price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ww-wine);
    margin: 0 0 1rem 0;
    padding: 0 1rem;
}

ul.products li.product .button {
    margin: auto 1rem 0 1rem;
    width: calc(100% - 2rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-sizing: border-box;
}

/* ============================================
   11. HIDE DEFAULT THEME ELEMENTS
   ============================================ */
.ct-trending-block {
    display: none;
}

/* ============================================
   12. AGE VERIFICATION GATE MODAL
   ============================================ */
#westside-age-gate {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 12, 18, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#westside-age-gate[style*="display: none"],
#westside-age-gate[style*="display:none"],
#westside-age-gate.hidden {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.westside-age-gate-card {
    background: var(--ww-white);
    border-radius: var(--ww-radius-xl);
    padding: 2.5rem 2rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--ww-gray-200);
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .westside-age-gate-card {
        padding: 1.75rem 1.25rem;
        max-width: 92%;
    }
}

.age-gate-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    display: block;
    object-fit: contain;
}

.westside-age-gate-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ww-wine);
    margin: 0 0 0.5rem 0;
    font-family: var(--ww-font);
    line-height: 1.3;
}

.westside-age-gate-card p {
    font-size: 0.95rem;
    color: var(--ww-gray-600);
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
    font-family: var(--ww-font);
}

.westside-age-gate-card p.age-gate-question {
    font-weight: 600;
    color: var(--ww-gray-900);
    margin-top: 1.25rem;
    font-size: 1.05rem;
}

.age-gate-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.75rem;
    justify-content: center;
}

.age-gate-btn {
    flex: 1;
    padding: 0.85rem 1.25rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--ww-transition);
    border: none;
    outline: none;
    font-family: var(--ww-font);
    text-align: center;
    text-decoration: none;
}

.age-gate-btn.btn-yes {
    background: var(--ww-wine);
    color: var(--ww-white);
}

.age-gate-btn.btn-yes:hover {
    background: var(--ww-wine-dark);
    transform: translateY(-1px);
    box-shadow: var(--ww-shadow-md);
}

.age-gate-btn.btn-no {
    background: var(--ww-gray-100);
    color: var(--ww-gray-700);
}

.age-gate-btn.btn-no:hover {
    background: var(--ww-gray-200);
    color: var(--ww-gray-900);
}

/* ============================================
   PRODUCT SEARCH BAR STYLES (HERO & MOBILE MENU)
   ============================================ */
.westside-product-search-wrapper,
.westside-mobile-menu-search {
    margin: 1.25rem 0;
    width: 100%;
}

.westside-search-form {
    width: 100%;
    margin: 0;
}

.westside-search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background: #ffffff;
    border: 2px solid var(--ww-gray-200);
    border-radius: 50px;
    padding: 4px 6px 4px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.westside-search-input-group:focus-within {
    border-color: var(--ww-wine);
    box-shadow: 0 4px 16px rgba(114, 47, 55, 0.15);
}

.westside-search-input-group .search-field {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--ww-gray-900);
    font-family: inherit;
    box-shadow: none;
}

.westside-search-input-group .search-field::placeholder {
    color: var(--ww-gray-400);
}

.westside-search-input-group .search-submit {
    background: var(--ww-wine);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
}

.westside-search-input-group .search-submit:hover {
    background: var(--ww-wine-dark);
    transform: scale(1.05);
}

.westside-search-input-group .search-submit svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    stroke: #ffffff;
    display: block;
    flex-shrink: 0;
}

/* Mobile Off-Canvas / Drawer Styling Adjustments */
.westside-mobile-menu-search {
    padding: 12px 16px 8px 16px;
    border-bottom: 1px solid var(--ww-gray-200);
    margin: 0;
}

.westside-mobile-menu-search .westside-search-input-group {
    background: var(--ww-gray-50);
}

/* ============================================
   PAGE TITLES & HERO HEADERS
   ============================================ */
.hero-section .entry-title,
.hero-section h1,
.hero-section .page-title,
.hero-section .woocommerce-products-header__title {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .hero-title,
.hero-section p,
.hero-section .page-description {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Standard Page Titles & Cart Heading */
.page-title,
.entry-header .page-title,
.entry-title,
.woocommerce-cart .page-title,
.woocommerce-cart .entry-title,
.woocommerce-products-header__title {
    color: var(--ww-wine-dark, #58111A) !important;
    text-shadow: none !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
}

/* ============================================
   SINGLE PRODUCT GALLERY — OBJECT-FIT & HOVER ZOOM
   ============================================ */
.woocommerce-product-gallery,
.woocommerce-product-gallery .ct-product-gallery-container,
.woocommerce-product-gallery .ct-media-container,
.single-product .product .images,
.single-product .product-entry-wrapper .woocommerce-product-gallery {
    overflow: hidden !important;
    border-radius: var(--ww-radius-lg);
    background: #ffffff;
    box-sizing: border-box;
}

.woocommerce-product-gallery img,
.woocommerce-product-gallery .ct-media-container img,
.single-product .product .images img,
.single-product .wp-post-image {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 520px !important;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    transform-origin: center center;
    cursor: zoom-in;
}

/* Modern Hover Zoom Effect */
.woocommerce-product-gallery .ct-media-container:hover img,
.woocommerce-product-gallery:hover img,
.single-product .product .images:hover img {
    transform: scale(1.22) !important;
}

/* ============================================
   MOBILE RESPONSIVE OVERRIDES (MUST REMAIN AT BOTTOM)
   ============================================ */
@media (max-width: 991px) {
    .westside-hero-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .col-full {
        padding: 0 0.75rem !important;
    }

    .westside-promo-bar {
        font-size: 0.8rem;
        padding: 0.55rem 0.85rem;
        line-height: 1.35;
    }

    .westside-hero-section {
        padding: 1.75rem 0.75rem !important;
    }

    .westside-business-info h1 {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }

    .westside-featured-cats,
    .westside-section {
        padding: 1.25rem 0.5rem !important;
    }

    .westside-products-wrap {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }

    /* Product Grid Mobile Expansion */
    [data-products],
    ul.products,
    .wc-block-grid__products,
    .products {
        --shop-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 0.5rem !important;
        row-gap: 0.75rem !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    ul.products li.product,
    .wc-block-grid__product {
        padding: 0.5rem 0.35rem 0.75rem 0.35rem !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    ul.products li.product a img,
    ul.products li.product img,
    .wc-block-grid__product img {
        max-height: 135px !important;
        object-fit: contain !important;
        margin: 0 0 0.35rem 0 !important;
    }

    ul.products li.product .woocommerce-loop-product__title,
    ul.products li.product h2,
    .wc-block-grid__product-title {
        font-size: 0.8rem !important;
        line-height: 1.25 !important;
        padding: 0 0.25rem !important;
        margin: 0 0 0.35rem 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        hyphens: auto !important;
    }

    ul.products li.product .price {
        font-size: 0.85rem !important;
        margin: 0 0 0.5rem 0 !important;
        padding: 0 0.25rem !important;
    }

    ul.products li.product .button {
        margin: auto 0.25rem 0 0.25rem !important;
        width: calc(100% - 0.5rem) !important;
        padding: 0.5rem 0.25rem !important;
        font-size: 0.75rem !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .westside-age-gate-card {
        padding: 1.75rem 1.25rem !important;
        max-width: 92% !important;
    }
}

/* ============================================
   COOKIE CONSENT NOTIFICATION
   ============================================ */
.cookie-notification {
    position: fixed !important;
    bottom: 24px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 48px) !important;
    max-width: 860px !important;
    padding: 0 !important;
    z-index: 999999 !important;
    pointer-events: none;
}

.cookie-notification .container {
    pointer-events: auto;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 24px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(114, 47, 55, 0.15) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
}

.cookie-notification .ct-cookies-content {
    font-family: var(--ww-font, 'Inter', sans-serif) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: var(--ww-gray-700, #374151) !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.cookie-notification .ct-cookies-content::before {
    content: '🍪';
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.cookie-notification .ct-button-group {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

.cookie-notification .ct-cookies-accept-button {
    background: var(--ww-wine, #722F37) !important;
    color: #ffffff !important;
    border: 1px solid var(--ww-wine, #722F37) !important;
    font-family: var(--ww-font, 'Inter', sans-serif) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 10px 22px !important;
    height: 40px !important;
    border-radius: var(--ww-radius, 8px) !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(114, 47, 55, 0.25) !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.cookie-notification .ct-cookies-accept-button:hover {
    background: var(--ww-wine-dark, #58111A) !important;
    border-color: var(--ww-wine-dark, #58111A) !important;
    box-shadow: 0 4px 10px rgba(114, 47, 55, 0.35) !important;
    transform: translateY(-1px) !important;
}

.cookie-notification .ct-cookies-decline-button {
    background: var(--ww-gray-100, #F3F4F6) !important;
    color: var(--ww-gray-700, #4B5563) !important;
    border: 1px solid var(--ww-gray-200, #E5E7EB) !important;
    font-family: var(--ww-font, 'Inter', sans-serif) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    padding: 10px 18px !important;
    height: 40px !important;
    border-radius: var(--ww-radius, 8px) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.cookie-notification .ct-cookies-decline-button:hover {
    background: var(--ww-gray-200, #E5E7EB) !important;
    color: var(--ww-gray-900, #111827) !important;
    border-color: var(--ww-gray-300, #D1D5DB) !important;
}

@media (max-width: 680px) {
    .cookie-notification {
        bottom: 12px !important;
        width: calc(100% - 24px) !important;
    }
    .cookie-notification .container {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
        padding: 16px 18px !important;
    }
    .cookie-notification .ct-button-group {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        width: 100% !important;
    }
    .cookie-notification .ct-cookies-accept-button,
    .cookie-notification .ct-cookies-decline-button {
        width: 100% !important;
    }
}

/* ============================================
   ADD TO CART BUTTON & QUANTITY SIZING
   ============================================ */
.single-product .ct-cart-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 1.25rem 0 !important;
}

.single-product .quantity {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    width: 110px !important;
    border-radius: var(--ww-radius, 8px) !important;
    border: 1px solid var(--ww-gray-300, #D1D5DB) !important;
    flex: 0 0 auto !important;
}

.single-product .quantity input.qty {
    height: 40px !important;
    font-size: 14px !important;
}

.single-product form.cart .single_add_to_cart_button,
.single-product .ct-cart-actions .single_add_to_cart_button,
.single-product .ct-cart-actions button,
.single-product button[name="add-to-cart"] {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    line-height: 42px !important;
    padding: 0 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: var(--ww-radius, 8px) !important;
    width: auto !important;
    min-width: 130px !important;
    max-width: 200px !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    background: var(--ww-wine, #722F37) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(114, 47, 55, 0.25) !important;
    transition: all 0.2s ease !important;
}

.single-product form.cart .single_add_to_cart_button:hover,
.single-product .ct-cart-actions .single_add_to_cart_button:hover,
.single-product .ct-cart-actions button:hover,
.single-product button[name="add-to-cart"]:hover {
    background: var(--ww-wine-dark, #58111A) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(114, 47, 55, 0.3) !important;
}

/* ============================================
   HIDE CHECKOUT ACTIONS & BUTTONS
   ============================================ */
.wc-proceed-to-checkout,
.checkout-button,
a.checkout-button,
.woocommerce-cart .wc-proceed-to-checkout,
.woocommerce-cart a[href*="checkout"] {
    display: none !important;
}

/* ============================================
   HIDE ABOUT US & CONTACT US FROM HEADER
   ============================================ */
.header-menu-1 li:has(a[href*="about"]),
.header-menu-1 li:has(a[href*="contact"]),
.ct-mobile-menu li:has(a[href*="about"]),
.ct-mobile-menu li:has(a[href*="contact"]),
.menu-item:has(a[href*="about"]),
.menu-item:has(a[href*="contact"]),
.header-menu-1 .menu-item a[href*="about"],
.header-menu-1 .menu-item a[href*="contact"],
.ct-mobile-menu .menu-item a[href*="about"],
.ct-mobile-menu .menu-item a[href*="contact"],
.menu-item a[href*="about-us"],
.menu-item a[href*="contact-us"] {
    display: none !important;
}

/* ============================================
   FOOTER COPYRIGHT UNLINKED TEXT
   ============================================ */
.ct-footer-copyright a,
.ct-footer-copyright span.copyright-brand-name {
    pointer-events: none !important;
    cursor: default !important;
    text-decoration: none !important;
    color: inherit !important;
    font-weight: 500 !important;
}

/* ============================================
   PRODUCT CATEGORY HERO BANNERS
   ============================================ */
.tax-product_cat .hero-section {
    position: relative;
    overflow: hidden;
    background-color: var(--ww-wine-dark);
}

.tax-product_cat .hero-section figure,
.tax-product_cat .hero-section .ct-media-container {
    width: 100%;
    height: 100%;
}

.tax-product_cat .hero-section figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.tax-product_cat .hero-section .entry-header {
    position: relative;
    z-index: 2;
}

.tax-product_cat .hero-section .page-title {
    color: #ffffff !important;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7);
    font-weight: 800;
    letter-spacing: 0.05em;
}






