/*
Theme Name: Boxd
Theme URI: https://boxdmeals.com
Author: TQH
Author URI: https://boxdmeals.com
Description: Custom theme for Boxd Meals website
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: boxd
*/

/* Color Variables */
:root {
    /* Primary Colors */
    --primary-red: #F4230D;
    --primary-white: #FFFFFF;
    --primary-black: #000000;

    /* Text Colors */
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;

    /* Background Colors */
    --bg-light: #F1F1F1;
    --bg-white: #FFFFFF;
    --bg-white-80: rgba(255, 255, 255, 0.8);

    /* Border Colors */
    --border-light: #EEEEEE;
    --border-gray: #DDDDDD;
    --border-dark: #707070;

    /* Status Colors */
    --success: #28A745;
    --warning: #FFC107;
    --error: #DC3545;

    /* Overlay Colors */
    --overlay-dark: rgba(0, 0, 0, 0.5);
    --overlay-light: rgba(255, 255, 255, 0.8);
}

/* Font Declarations */
@font-face {
    font-family: 'Barbarous';
    src: url('assets/fonts/BarbarousRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sen';
    src: url('assets/fonts/Sen-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sen';
    src: url('assets/fonts/Sen-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sen';
    src: url('assets/fonts/Sen-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sen';
    src: url('assets/fonts/Sen-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sen';
    src: url('assets/fonts/Sen-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alata';
    src: url('assets/fonts/Alata-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

body {
    font-family: 'Sen';
    line-height: 1.1;
}

/* Header styles */

header.entry-header{
    padding: 5px 15px;
    margin: 0px -15px 0px -15px;
    background: var(--primary-black);
    color: var(--primary-white);
}

header.entry-header h1{
    font-size: 38px;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding: 0px 15px;
    width: 100%;
    justify-content: flex-start;
}

header.entry-header h1:before{
    content: '';
    display: block;
    background: url(./assets/images/ico-caret-right.png) center center no-repeat;
    background-size: contain;
    width: 16px;
    height: 20px;
    margin-right: 10px;    
}

.boxd-top-header {
    color: var(--primary-black);
    padding: 0;
    position: relative;
}

.boxd-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 15px;
    position: absolute;
    top: 39px;
}

.boxd-logo {
    display: flex;
    align-items: center;
}

.boxd-logo img {
    height: 260px;
}

.boxd-phone-number {
    display: flex;
    justify-content: flex-end;
}

.boxd-phone-number a {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-white);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background-color: var(--primary-red);
    padding: 2px 10px;
    clip-path: polygon(5% 0, 100% 0, 100% 100%, 0% 100%);
    width: 100%;
    max-width: 790px;
    border: 1px solid var(--border-dark);
}

.boxd-phone-number a:before {
    content: '';
    display: block;
    width: 34px;
    height: 30px;
    background: url(assets/images/ico-phone.png) center center no-repeat;
    background-size: contain;
}

.boxd-header-buttons {
    display: flex;
    gap: 15px;
    margin-top: 4px;
    position: absolute;
    right: 160px;
    top: 43px;
    z-index: 2;
}

.boxd-header-buttons a {
    font-family: 'Sen';
    font-size: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-red);
    border-radius: 0;
    padding: 7px 34px;
}

.boxd-header-buttons a.boxd-event-info-button:first-child:before {
    content: '';
    display: block;
    width: 22px;
    height: 21px;
    background-image: url(assets/images/ico-download.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 5px;
}

.boxd-header-buttons a.boxd-faq-button:last-child:before {
    content: '?';
    display: block;
    color: var(--primary-red);
    font-size: 25px;
    font-weight: 800;
    margin-right: 5px;
}

.boxd-header-button {
    border: 1px solid var(--primary-white);
    padding: 2px 8px;
    font-size: 10px;
    border-radius: 3px;
    text-decoration: none;
    color: var(--primary-black);
    display: inline-block;
}

header .boxd-cart-summary {
    position: absolute;
    top: 130px;
    right: 64px;
    display: flex;
    gap: 4px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Sen';
    font-size: 25px;
    font-weight: 800;
    color: var(--primary-black);
    padding-left: 60px;
}

header .boxd-quick-cart-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px !important;
    height: 50px;
    background: url(assets/images/ico-cart.svg) center center no-repeat;
    background-size: contain;
}

header .boxd-cart-summary > * {
    flex-basis: 100%;
    width: 100%;
}

.boxd-cart-summary span {
    color: var(--primary-black);
}

header .boxd-cart-summary > div {
    padding: 1px 7px;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
}

.boxd-sticky-header .boxd-cart-summary .boxd-cart-summary-gr1{
    display: flex;
    gap: 10px;
    background: transparent;
}

.boxd-sticky-header .boxd-cart-summary .boxd-cart-summary-gr1 > div {
    padding: 1px 7px;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    background: #fff;
}

header .boxd-cart-summary a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-black);
}

.boxd-checkout-button:after {
    content: '';
    display: block;
    width: 27px;
    height: 27px;
    background-image: url('assets/images/ico-caret-right-black.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 5px;
}

.boxd-tournament-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    margin-top: 80px;
    margin-bottom: 35px;
}

.boxd-tournament-logo img {
    height: 360px;
    max-width: 400px;
}

.boxd-tournament-info {
    color: var(--primary-black);
    text-align: center;
    font-size: 26px;
    width: 100%;
    font-weight: 600;
    position: relative;
}

.boxd-tournament-title {
    font-family: 'Alata';
    font-size: 48px;
    font-weight: normal;
    text-transform: uppercase;
    color: var(--primary-red);
    line-height: 1.1;
    margin-bottom: 15px;
}

.boxd-tournament-dates {
    background: var(--primary-white);
    width: fit-content;
    z-index: 2;
    position: relative;
    margin: 0 auto -28px auto;
    padding: 0 5px;
    line-height: 1.1;
}

.boxd-dotted-line {
    height: 5px;
    background-image: linear-gradient(to right, var(--primary-red) 50%, transparent 50%);
    background-size: 10px 5px;
    background-repeat: repeat-x;
    margin: 10px auto;
    max-width: 1800px;
    z-index: 1;
}

/* Sticky header */
.boxd-sticky-header {
    position: fixed;
    top: -210px;
    left: 0;
    right: 0;
    background-color: var(--primary-black);
    color: var(--primary-white);
    z-index: 1000;
    transition: top 0.3s;
    box-shadow: 0 2px 5px var(--overlay-dark);
    display: flex;
    justify-content: space-between;
    height: 73px;
}

.boxd-sticky-header.visible {
    top: 0;
    padding: 0px 15px;
}

.boxd-sticky-header .boxd-left {
    display: flex;
    align-items: center;
}

.boxd-sticky-header .boxd-left img {
    height: 100%;
}

.boxd-sticky-header .boxd-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.boxd-sticky-header .boxd-phone-number {
    align-items: center;
    gap: 5px;
    font-size: 38px;
    justify-content: center;
}

.boxd-sticky-header .boxd-phone-number a {
    background: none;
    clip-path: unset;
    border: none;
    font-size: 38px;
}

.boxd-sticky-header .boxd-cart-summary {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    align-items: center;
}

.boxd-sticky-header .boxd-cart-summary .boxd-cart-summary-gr1 {
    font-family: 'Sen';
    font-size: 25px;
    font-weight: 800;
    color: var(--primary-red);
}

.boxd-sticky-header .boxd-cart-summary .boxd-checkout-button {
    color: #fff;
    font-family: 'Sen';
    font-size: 39px;
    font-weight: 800;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.boxd-sticky-header .boxd-cart-summary .boxd-checkout-button:after {
    background-image: url(assets/images/ico-caret-right.png);
    width: 16px;
    height: 20px;
}

.boxd-sticky-header .boxd-cart-summary .boxd-checkout-button:before {
    display: none;
}

.boxd-quick-cart-icon {
    content: '';
    display: block;
    width: 35px;
    height: 35px;
    background: url(assets/images/ico-cart-white.svg) center center no-repeat;
    background-size: contain;
    cursor: pointer;
}

body.home header,
body.home header.entry-header{
	display: none;
}
body.home{
	background: #fff;
}
body.home main#primary{
	border: none !important;
	margin: 0 !important;
	padding: 20px !important;
}
.boxd-dashed-title{
	border-top: 4px dashed  #A1A1A1;
	position: relative;
}

.boxd-dashed-title h2{
	position: absolute;
	width: 250px;
	height: 24px;
	background: #fff;
	top: -15px;
	left: calc(50% - 115px);
}

.boxd-faq {
    font-family: 'Sen';
    line-height: 1.1;
    font-size: 24px;
    padding-top: 40px;
}

.boxd-faq .elementor-widget-container{
	color: var(--primary-black);
	font-weight: 600;
}
.boxd-faq .elementor-widget-container p{
	margin-bottom: 8px;
}
.boxd-faq .elementor-widget-container strong{
	color: var(--primary-red);
	font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 1700px) {
    .boxd-logo img {
        height: 200px;
    }
}

@media (max-width: 1600px) {
    .boxd-menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1300px) {
    .boxd-quantity-label {
        font-size: 22px;
    }
    .boxd-quantity-input {
        font-size: 26px;
    }
    .boxd-add-to-cart {
        font-size: 18px;
        padding: 2px 10px;
    }
    .boxd-sticky-header .boxd-phone-number {
        display: none;
    }
}

@media (max-width: 1199px) {
    .boxd-header-buttons,
    header .boxd-cart-summary {
        right: 15px;
    }
}

@media (max-width: 1024px) {
    .boxd-logo img {
        height: 150px;
    }
    .boxd-header-buttons a:last-child:before,
    header .boxd-cart-summary,
    .boxd-header-buttons a {
        font-size: 17px;
    }
    .boxd-header-buttons a:first-child:before {
        width: 16px;
        height: 16px;
    }
    .boxd-header-buttons a {
        padding: 1px 20px;
        height: 34px;
    }
    header .boxd-quick-cart-icon {
        width: 36px !important;
        height: 35px;
    }
    header .boxd-cart-summary {
        padding-left: 40px;
    }
    .boxd-tournament-title {
        font-size: 42px;
    }
    .boxd-sticky-header .boxd-left {
        display: none !important;
    }
    .boxd-sticky-header,
    .boxd-sticky-header .boxd-right {
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    .boxd-menu-grid {
        grid-template-columns: 1fr;
    }
    .boxd-tournament-title {
        font-size: 30px;
    }
    .boxd-tournament-logo img {
        height: 220px;
        max-width: 230px;
    }
    .boxd-logo img {
        height: 88px;
    }
    .boxd-phone-number a {
        clip-path: unset;
    }
    header .boxd-cart-summary {
        top: 110px;
    }
    .boxd-sticky-header .boxd-cart-summary .boxd-checkout-button {
        font-size: 25px;
    }
    .boxd-sticky-header .boxd-cart-summary > div {
        font-size: 20px;
    }
}

@media (max-width: 600px) {
    .boxd-header-buttons span {
        display: none;
    }
    .boxd-header-buttons a:before {
        margin-right: 0 !important;
    }
    .boxd-tournament-logo img {
        height: 120px;
    }
    .boxd-sticky-header .boxd-cart-summary .boxd-checkout-button:before {
        display: none;
    }

    .boxd-tournament-header {
        align-items: flex-start;
        margin-top: 80px;
    }
}

@media (max-width: 480px) {
    .boxd-phone-number,
    .boxd-cart-summary,
    .boxd-checkout-button {
        position: relative;
        top: auto;
        right: auto;
    }
    .boxd-tournament-logo img {
        height: 88px;
        max-width: calc(100vw - 165px);
    }
    .boxd-sticky-header.visible {
        padding: 4px 15px;
    }
    .boxd-sticky-header .boxd-cart-summary > div {
        font-size: 16px !important;
        line-height: 1.1;
    }
    .boxd-sticky-header .boxd-cart-summary .boxd-checkout-button {
        font-size: 22px;
    }
}

@media (max-width: 360px) {
    header .boxd-cart-summary {
        font-size: 14px;
        padding-left: 30px;
    }
    header .boxd-quick-cart-icon {
        width: 23px !important;
        height: 23px;
    }
    .boxd-header-buttons a {
        height: 27px;
        padding: 1px 15px;
    }
}

/* Cart Modal Styles */
.boxd-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.boxd-modal.active {
    display: block;
}

.boxd-modal-content {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.boxd-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.boxd-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: var(--primary-black);
}

.boxd-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-gray);
}

.boxd-modal-body {
    padding: 20px 0;
}

.boxd-modal-footer {
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.boxd-cart-items {
    margin-bottom: 20px;
}

.boxd-cart-period {
    margin-bottom: 20px;
}

.boxd-cart-period-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--primary-red);
}

.boxd-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.boxd-cart-item-info {
    flex: 1;
}

.boxd-cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.boxd-cart-item-price {
    color: var(--text-gray);
}

.boxd-cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.boxd-quantity-btn {
    background: var(--primary-red);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.boxd-quantity-input {
    width: 50px;
    text-align: center;
    padding: 5px;
    border-radius: 0;
}

.boxd-remove-item {
    color: var(--error);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
}

.boxd-cart-totals {
    margin-bottom: 20px;
}

.boxd-cart-totals > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.boxd-quick-cart-total {
    font-weight: 600;
    font-size: 18px !important;
    color: var(--primary-red);
}

.boxd-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.boxd-update-cart-btn,
.boxd-checkout-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.boxd-update-cart-btn {
    background: var(--text-gray);
    color: white;
}

.boxd-checkout-btn {
    background: var(--primary-red);
    color: white;
}

@media (max-width: 768px) {
    .boxd-modal-content {
        margin: 20px auto;
        width: 95%;
    }
    
    .boxd-cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .boxd-cart-item-quantity {
        width: 100%;
        justify-content: flex-start;
    }
    
    .boxd-modal-actions {
        flex-direction: column;
    }
    
    .boxd-update-cart-btn,
    .boxd-checkout-btn {
        width: 100%;
        text-align: center;
    }
}

/* Cart Modal Loading & Error States */
.boxd-loading,
.boxd-error {
    text-align: center;
    padding: 20px;
    font-family: 'Sen', sans-serif;
}

.boxd-loading {
    color: var(--primary-red);
}

.boxd-error {
    color: #dc3545;
}

.boxd-empty-cart {
    text-align: center;
    padding: 30px;
    font-family: 'Sen', sans-serif;
    color: #666;
}