/* Happy Orders Frontend Styles */

:root {
    /* Fallback values (Light Mode) */
    --ho-primary: var(--ho-primary);
    --ho-secondary: #2EC4B6;
    --ho-dark: #212529;
    --ho-light: #ffffff;
    --ho-gray: #f8f9fa;
    --ho-text: #212529;
    --ho-border-radius: 12px;
    --ho-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Typography & Icons */
body {
    font-family: var(--ho-font-family, 'Plus Jakarta Sans', sans-serif);
    background-color: var(--ho-bg-body);
    color: var(--ho-text-body);
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;  /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;

    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;

    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;

    /* Support for IE. */
    font-feature-settings: 'liga';
}

/* Main Layout */
.ho-menu-wrapper {
    min-height: 100vh;
    font-family: var(--ho-font-family, 'Plus Jakarta Sans', sans-serif);
    display: flex; /* Flex Layout */
    align-items: flex-start;
    gap: 20px;
}

.ho-main-content {
    flex: 1;
    min-width: 0; /* Fix flex overflow */
}

.ho-nav-link {
    text-decoration: none;
    color: var(--ho-text-body);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}

/* Categories & Layouts */
.ho-category-section {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}
.ho-cat-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--ho-text-body);
    position: relative;
    padding-left: 15px;
}
.ho-cat-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 5px;
    background: var(--ho-primary);
    border-radius: 5px;
}

/* Hero Section Layout */
.ho-sec-hero-banner {
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: var(--ho-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: #fff; /* Hero text always white if bg is image */
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.ho-sec-hero-title {
    font-size: 3rem;
    margin: 0;
}

/* Grid */
.ho-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Homepage Main Banner */
.ho-main-banner {
    position: relative;
    width: 100%;
    height: var(--ho-banner-height, 500px);
    box-shadow: var(--ho-banner-shadow, none);
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: var(--ho-border-radius);
}

.ho-main-banner-image,
.ho-main-banner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ho-main-banner-image {
    background-size: cover;
    background-position: center;
}

.ho-main-banner-video video,
.ho-main-banner-video iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ho-main-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background-color: var(--ho-overlay-bg, rgba(0,0,0,0.4));
}

.ho-main-banner-content {
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

.ho-main-banner-title {
    font-size: 3.5rem;
    margin: 0 0 15px;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.ho-main-banner-subtitle {
    font-size: 1.25rem;
    margin: 0 0 30px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    line-height: 1.6;
}

.ho-main-banner-cta {
    display: inline-block;
    padding: var(--ho-btn-padding-y) var(--ho-btn-padding-x);
    background: var(--ho-btn-bg);
    color: var(--ho-btn-text);
    text-decoration: none;
    border-radius: var(--ho-btn-radius);
    font-weight: var(--ho-btn-font-weight);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px color-mix(in srgb, var(--ho-btn-bg), transparent 60%);
}

.ho-main-banner-cta:hover {
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--ho-btn-bg), black 10%);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--ho-btn-bg), transparent 50%);
    color: var(--ho-btn-text);
}

/* Slideshow Styles */
/* Slideshow Styles */
.ho-banner-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.ho-main-banner.ho-w-full-screen {
    padding-left: 0;
    padding-right: 0;
}

.ho-slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.ho-banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.ho-banner-slide.active {
    opacity: 1;
    z-index: 2;
}

.ho-slider-prev,
.ho-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 100; /* Boosted */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ho-slider-prev:hover,
.ho-slider-next:hover {
    background: rgba(0,0,0,0.8);
}

.ho-slider-prev {
    left: 20px;
}

.ho-slider-next {
    right: 20px;
}

.ho-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.ho-dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.ho-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Featured Categories */
.ho-featured-categories {
    margin-bottom: 50px;
    padding: 40px 0;
}

.ho-featured-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--ho-text-body);
}

.ho-featured-cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.ho-featured-cat-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--ho-border-radius);
    transition: transform 0.3s ease;
}

.ho-featured-cat-item:hover {
    transform: translateY(-5px);
}

.ho-featured-cat-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

/* Featured Categories - Cards Style */
.ho-featured-style-cards .ho-featured-cat-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.ho-featured-style-cards .ho-featured-cat-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.ho-featured-style-cards .ho-featured-cat-name {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    z-index: 2;
    color: #fff;
    margin: 0;
    font-size: 1.5rem;
}

.ho-featured-style-cards .ho-featured-cat-desc {
    padding: 15px;
    color: var(--ho-text-muted);
    font-size: 0.9rem;
}

/* Featured Categories - Icons Style */
.ho-featured-style-icons .ho-featured-cat-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--ho-bg-card);
    border: 1px solid var(--ho-border-color);
}

.ho-featured-style-icons .ho-featured-cat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.ho-featured-style-icons .ho-featured-cat-name {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: var(--ho-dark);
}

.ho-featured-style-icons .ho-featured-cat-desc {
    font-size: 0.85rem;
    color: #666;
}

/* Featured Categories - List Style */
.ho-featured-style-list .ho-featured-cats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
}

.ho-featured-style-list .ho-featured-cat-item {
    padding: 20px;
    background: var(--ho-bg-card);
    border: 1px solid var(--ho-border-color);
    display: flex;
    align-items: center;
}

.ho-featured-style-list .ho-featured-cat-name {
    margin: 0;
    font-size: 1.3rem;
    color: var(--ho-primary);
}

/* Category Banners */
.ho-cat-banner {
    margin-bottom: 30px;
    border-radius: var(--ho-border-radius);
    overflow: hidden;
}

/* Hero Banner */
.ho-cat-banner-hero {
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ho-cat-banner-hero .ho-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ho-cat-banner-hero .ho-banner-title {
    font-size: 2.5rem;
    color: #fff;
    margin: 0 0 10px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

.ho-cat-banner-hero .ho-banner-subtitle {
    font-size: 1.1rem;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    text-align: center;
}

/* Sub-Banner */
.ho-cat-banner-sub {
    display: flex;
    background: var(--ho-bg-card);
    border: 1px solid var(--ho-border-color);
    align-items: center;
    gap: 20px;
    padding: 15px;
}

.ho-sub-banner-image {
    flex-shrink: 0;
}

.ho-sub-banner-image img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.ho-sub-banner-content {
    flex: 1;
}

.ho-sub-banner-title {
    font-size: 1.5rem;
    margin: 0 0 8px;
    color: var(--ho-text-body);
}

.ho-sub-banner-subtitle {
    font-size: 0.95rem;
    color: var(--ho-text-muted);
    margin: 0;
}

/* Split Banner */
.ho-cat-banner-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 300px;
    background: var(--ho-bg-card);
    border: 1px solid var(--ho-border-color);
}

.ho-cat-banner-split.ho-split-right {
    grid-template-columns: 1fr 1fr;
}

.ho-cat-banner-split.ho-split-left {
    grid-template-columns: 1fr 1fr;
}

.ho-cat-banner-split.ho-split-right .ho-split-image {
    order: 2;
}

.ho-split-image {
    position: relative;
    overflow: hidden;
}

.ho-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ho-split-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    flex-direction: column;
    justify-content: center;
    background: var(--ho-bg-light);
}

.ho-split-title {
    font-size: 2rem;
    margin: 0 0 15px;
    color: var(--ho-text-body);
}

.ho-split-subtitle {
    font-size: 1rem;
    color: var(--ho-text-muted);
    line-height: 1.6;
    margin: 0;
}



/* Category Description */
.ho-cat-description {
    font-size: 0.95rem;
    color: var(--ho-text-muted);
    margin: 10px 0 0;
}

/* Width Layouts */
.ho-menu-search-wrapper.ho-search-width-full,
.ho-w-full-screen {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: max(20px, calc(50vw - 50% + 20px));
    padding-right: max(20px, calc(50vw - 50% + 20px));
    box-sizing: border-box;
}

.ho-menu-search-wrapper.ho-search-width-full {
    background: var(--ho-bg-body); /* Ensure bg if full width */
}

/* Promo Popup */
.ho-promo-popup-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.ho-promo-popup-content {
    position: relative;
    max-width: 500px;
    width: 90%;
}

.ho-popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.ho-promo-popup-img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

/* Feature Banner (Inline) */
.ho-feature-banner-wrapper {
    margin-bottom: 20px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.ho-feature-banner-img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 300px;
}

.ho-feature-banner-btn-wrapper {
    position: absolute;
    bottom: 20px;
    left: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Sticky Nav Dynamic */
.ho-sticky-nav-dynamic {
    background-color: var(--ho-nav-bg, #ffffff);
}

/* Old Price Styled */
.ho-old-price-styled {
    text-decoration: line-through;
    opacity: 0.6;
    margin-right: 5px;
    font-size: 0.9em;
}

/* Modal Specific Re-used here for consistency if needed */
.ho-modal-price-text {
    font-size: 1.5rem;
    color: var(--ho-primary);
    margin: 10px 0;
}

.ho-modal-instructions-container {
    margin: 15px 0;
}

.ho-modal-instructions-label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.ho-modal-instructions-input {
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Custom Width is handled by inline style for max-width */

/* Add padding to body to account for fixed banner */
body.ho-restaurant-closed-body {
    padding-top: 50px !important;
}

/* Applied to menu wrapper when restaurant is closed */
.ho-restaurant-closed {
    position: relative;
}

/* Full-width notice banner at the very top */
.ho-restaurant-closed::before {
    content: attr(data-closed-message);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    background: var(--ho-dark);
    color: #fff;
    text-align: center;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin: 0;
    min-height: 50px;
}

/* Gray out all product cards */
.ho-restaurant-closed .ho-product-card {
    opacity: 0.6;
    filter: grayscale(40%);
    cursor: not-allowed;
}

.ho-restaurant-closed .ho-product-card:hover {
    transform: none;
    box-shadow: none;
    border-color: #eee;
}

/* Disable add buttons */
.ho-restaurant-closed .ho-add-btn {
    background: #ccc !important;
    border-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    pointer-events: none;
}

.ho-restaurant-closed .ho-product-card:hover .ho-add-btn {
    background: #ccc !important;
    border-color: #ccc !important;
    color: #666 !important;
}

/* Add closed badge to each category section */
.ho-restaurant-closed .ho-category-section {
    position: relative;
}

.ho-restaurant-closed .ho-cat-title::after {
    content: "CLOSED";
    display: inline-block;
    background: #f44336;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 15px;
    vertical-align: middle;
    letter-spacing: 1px;
}

/* Gray out sticky nav */
.ho-restaurant-closed .ho-sticky-nav {
    opacity: 0.8;
    background: #f5f5f5;
}

/* Gray out menu tabs */
.ho-restaurant-closed .ho-menu-tab {
    opacity: 0.7;
}

.ho-restaurant-closed .ho-menu-tab.active {
    opacity: 1;
}




/* ==========================================
   WOOCOMMERCE ACCOUNT PAGE OVERRIDES
   ========================================== */

/* Force body background on special pages */
body.woocommerce-checkout,
body.woocommerce-account {
    background-color: var(--ho-bg-body);
}

/* Account Layout */
.woocommerce-account .woocommerce {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}
@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
    }
}

/* Navigation */
.woocommerce-MyAccount-navigation {
    flex: 0 0 250px;
    background: var(--ho-bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--ho-border-color);
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation-link {
    margin-bottom: 5px;
}

.woocommerce-MyAccount-navigation-link a {
    display: block;
    padding: 12px 15px;
    color: var(--ho-text-muted);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.woocommerce-MyAccount-navigation-link a:hover {
    background: var(--ho-bg-light);
    color: var(--ho-text-body);
}

.woocommerce-MyAccount-navigation-link.is-active a {
    background: var(--ho-primary);
    color: var(--ho-on-primary);
    font-weight: 600;
}

/* Content Area */
.woocommerce-MyAccount-content {
    flex: 1;
    background: var(--ho-bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--ho-border-color);
    color: var(--ho-text-body);
}

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    margin-top: 0;
    color: var(--ho-text-body);
}

.woocommerce-MyAccount-content p {
    color: var(--ho-text-body);
}

/* Addresses */
.woocommerce-Address-title h3 {
    font-size: 1.2rem;
    float: none;
}
.woocommerce-Address {
    background: var(--ho-bg-light);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--ho-border-color);
}
.woocommerce-Address address {
    font-style: normal;
    color: var(--ho-text-muted);
}

/* Orders Table */
.woocommerce-orders-table {
    border: 1px solid var(--ho-border-color);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.woocommerce-orders-table th {
    background: var(--ho-bg-light);
    color: var(--ho-text-body);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--ho-border-color);
}
.woocommerce-orders-table td {
    padding: 15px;
    border-bottom: 1px solid var(--ho-border-color);
    color: var(--ho-text-muted);
    background: var(--ho-bg-card);
}
.woocommerce-orders-table tr:last-child td {
    border-bottom: none;
}

/* Buttons */
.woocommerce-Button.button {
    background: var(--ho-primary) !important;
    color: var(--ho-on-primary) !important;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    border: none;
}
.woocommerce-Button.button:hover {
    opacity: 0.9;
}

/* Forms in Account */
.woocommerce-EditAccountForm fieldset {
    border: 1px solid var(--ho-border-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    background: var(--ho-bg-light);
}
.woocommerce-EditAccountForm legend {
    color: var(--ho-text-body);
    font-weight: 600;
    padding: 0 10px;
}


/* Floating Cart */
#ho-floating-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--ho-btn-bg);
    color: var(--ho-btn-text);
    padding: var(--ho-btn-padding-y) var(--ho-btn-padding-x);
    border-radius: 30px; /* Keep pill shape */
    display: none; /* Toggled by JS */
    z-index: 999;
    font-weight: var(--ho-btn-font-weight);
    box-shadow: 0 5px 15px color-mix(in srgb, var(--ho-btn-bg), transparent 60%);
    cursor: pointer;
    transition: all 0.3s ease;
}

#ho-floating-cart:hover {
    transform: translateY(-2px);
    background: color-mix(in srgb, var(--ho-btn-bg), black 10%);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--ho-btn-bg), transparent 50%);
    color: var(--ho-btn-text);
}


/* Section Split Layouts - Image Left/Right */
.ho-section-split-body {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 30px;
}

.ho-section-split-body .ho-section-image-wrapper {
    flex: 0 0 35%;
    max-width: 35%;
}

.ho-section-split-body .ho-section-image {
    width: 100%;
    height: auto;
    border-radius: var(--ho-border-radius);
    object-fit: cover;
}

.ho-section-split-body .ho-section-menu-items {
    flex: 1;
    min-width: 0;
    width: 100%;
    overflow: visible;
}

/* Image on Left (default order) */
.ho-section-image-left .ho-section-image-wrapper {
    order: 1;
}

.ho-section-image-left .ho-section-menu-items {
    order: 2;
}

/* Image on Right */
.ho-section-image-right .ho-section-image-wrapper {
    order: 2;
}

.ho-section-image-right .ho-section-menu-items {
    order: 1;
}

/* Section header (title/description at top) */
.ho-section-header {
    margin-bottom: 20px;
}

.ho-section-header .ho-section-title {
    font-size: 2rem;
    margin: 0 0 10px;
    color: var(--ho-text-body);
}

.ho-section-header .ho-section-description {
    font-size: 1rem;
    color: var(--ho-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
    .ho-section-split-body {
        flex-direction: column;
    }
    
    .ho-section-split-body .ho-section-image-wrapper {
        flex: 0 0 auto;
        max-width: 100%;
        order: 1 !important;
    }
    
    .ho-section-split-body .ho-section-menu-items {
        flex: 0 0 auto;
        order: 2 !important;
    }
}