/**
 * Complete Gedi Route Run 2026 Styles
 * Modern Dark Theme with Golden Accents
 */

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    background: #B1E5F2 !important;
    /* User Requested Global BG */
    color: #388087 !important;
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: #eca91d;
    color: #0b1320;
}

/* ===== NAVIGATION BAR (GOLDEN) ===== */
/* ===== NAVIGATION BAR (GOLDEN) ===== */
.site-header,
.main-header-bar,
header.site-header,
.navbar,
.gedi-navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999 !important;
    background: linear-gradient(135deg, rgba(236, 169, 29, 0.95) 0%, rgba(212, 148, 26, 0.95) 100%) !important;
    backdrop-filter: blur(15px);
    padding: 5px 40px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 5px 30px rgba(236, 169, 29, 0.4) !important;
}

.site-header .site-branding img,
.custom-logo-link img {
    filter: none !important;
}

.main-header-menu .menu-item>a,
.main-navigation a {
    color: #0b1320 !important;
    font-weight: 700 !important;
}

.main-header-menu .menu-item>a:hover,
.main-navigation a:hover {
    color: #ffffff !important;
    background: rgba(11, 19, 32, 0.2) !important;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 19, 32, 0.8), rgba(7, 11, 22, 0.8));
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(236, 169, 29, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem) !important;
    font-weight: 900 !important;
    color: #F6F6F2 !important;
    /* Light text on video */
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(56, 128, 135, 0.8);
}

.hero p {
    font-size: clamp(1.2rem, 3vw, 1.8rem) !important;
    font-weight: 600;
    color: #eca91d !important;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.hero h2 {
    font-size: clamp(1.8rem, 4vw, 3rem) !important;
    color: #eca91d !important;
    margin-bottom: 40px;
    font-weight: 700;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, #eca91d 0%, #d4941a 100%);
    color: #0b1320 !important;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(236, 169, 29, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(236, 169, 29, 0.5);
}

/* ===== ABOUT SECTION (Global) ===== */
.about-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: -50px auto 60px;
    background: transparent !important;
    /* Show Body BG (#B1E5F2) */
    backdrop-filter: blur(10px);
    border-radius: 20px;
    position: relative;
    z-index: 3;
    box-shadow: 0 25px 80px rgba(56, 128, 135, 0.15);
    border: 1px solid #C2EDCE;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.about-section h2 {
    font-size: clamp(2rem, 5vw, 3rem) !important;
    text-align: center;
    color: #388087 !important;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #388087, transparent);
}

.about-section p {
    font-size: clamp(1rem, 2vw, 1.2rem) !important;
    line-height: 1.8;
    text-align: center;
    color: #388087 !important;
    max-width: 900px;
    margin: 0 auto;
}

/* ===== RACE CATEGORIES SECTION ===== */
.categories-section {
    padding: 100px 20px;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.categories-section h2 {
    font-size: clamp(2rem, 5vw, 3rem) !important;
    text-align: center;
    color: #000000 !important;
    /* Black Text */
    margin-bottom: 20px;
    font-weight: 700;
}

.categories-section>p {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #000000;
    /* Black Text */
    margin-bottom: 60px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.category-card {
    background: rgba(25, 30, 40, 0.98) !important;
    /* Dark card like about section */
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(236, 169, 29, 0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transform-style: preserve-3d;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(236, 169, 29, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.category-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(236, 169, 29, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.category-card:hover {
    transform: translateY(-20px) scale(1.02);
    border-color: #eca91d;
    box-shadow: 0 30px 60px rgba(236, 169, 29, 0.2);
}

.category-card:hover::before,
.category-card:hover::after {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 1;
}

.category-card h3 {
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
    color: #eca91d !important;
    margin-bottom: 15px;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.category-card:hover h3 {
    transform: scale(1.05);
}

.category-distance {
    font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
    font-weight: 900;
    color: #eca91d !important;
    margin: 20px 0;
    transition: all 0.3s ease;
    text-shadow: 0 0 30px rgba(236, 169, 29, 0.3);
}

.category-card:hover .category-distance {
    color: #ffffff !important;
    text-shadow: 0 0 40px rgba(236, 169, 29, 0.5);
}

.category-card p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #d0d0d0;
    margin-bottom: 25px;
    min-height: 50px;
}

.category-price {
    font-size: clamp(1.8rem, 3vw, 2.5rem) !important;
    color: #eca91d !important;
    font-weight: 700;
    margin-top: 20px;
    transition: transform 0.3s ease;
}

.category-card:hover .category-price {
    transform: scale(1.1);
    color: #ffffff !important;
}

.card-button {
    display: inline-block !important;
    margin-top: 25px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #eca91d 0%, #d4941a 100%);
    border: none;
    color: #0b1320 !important;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    box-shadow: 0 10px 30px rgba(236, 169, 29, 0.3);
}

.card-button:hover {
    background: linear-gradient(135deg, #d4941a 0%, #eca91d 100%);
    color: #0b1320 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 40px rgba(236, 169, 29, 0.5);
}

/* ===== RACE ROUTE SECTION ===== */
.route-section {
    background: rgba(25, 30, 40, 0.98) !important;
    /* Dark like about section */
    padding: 80px 20px;
    max-width: 1200px;
    margin: 60px auto;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(236, 169, 29, 0.2);
}

.route-section h2 {
    color: #eca91d !important;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    font-weight: 800;
}

.route-section p {
    color: #d0d0d0 !important;
    max-width: 700px;
    margin: 0 auto 40px;
}

.route-map-placeholder {
    max-width: 90%;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(236, 169, 29, 0.2);
    border: 3px solid rgba(236, 169, 29, 0.3);
    transition: all 0.5s ease;
    width: 100%;
    display: block;
}

.route-map-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 80px rgba(236, 169, 29, 0.3);
    border-color: #eca91d;
}

/* ===== ABOUT PAGE STYLES ===== */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 20px 80px;
}

.about-hero {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.about-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem) !important;
    color: #eca91d !important;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.about-hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #b0b0b0;
    max-width: 800px;
    margin: 0 auto;
}

.about-content {
    background: rgba(25, 30, 40, 0.98);
    border-radius: 20px;
    padding: 60px 50px;
    border: 1px solid rgba(236, 169, 29, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.about-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
    color: #eca91d !important;
    margin-bottom: 25px;
    font-weight: 700;
}

.about-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #d0d0d0;
    line-height: 1.9;
    margin-bottom: 25px;
}

.about-content ul {
    list-style: none;
    margin: 30px 0;
}

.about-content ul li {
    padding: 15px 0;
    color: #d0d0d0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.about-content ul li::before {
    content: '✓';
    color: #eca91d;
    font-weight: 700;
    font-size: 1.5rem;
}

.highlight-box {
    background: rgba(236, 169, 29, 0.1);
    border-left: 4px solid #eca91d;
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 10px;
}

.highlight-box p {
    margin: 0;
    font-style: italic;
    color: #ffffff !important;
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 140px 20px 80px;
}

.contact-hero {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.contact-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem) !important;
    color: #eca91d !important;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.contact-hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #b0b0b0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    background: rgba(25, 30, 40, 0.98);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(236, 169, 29, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: #eca91d;
    box-shadow: 0 30px 60px rgba(236, 169, 29, 0.2);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 1.5rem !important;
    color: #eca91d !important;
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-card p {
    font-size: 1.1rem;
    color: #d0d0d0;
    line-height: 1.8;
}

.contact-card a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

.contact-card a:hover {
    color: #eca91d !important;
}

.info-section {
    background: rgba(25, 30, 40, 0.98);
    border-radius: 20px;
    padding: 50px 40px;
    border: 1px solid rgba(236, 169, 29, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.info-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
    color: #eca91d !important;
    margin-bottom: 25px;
    font-weight: 700;
}

.info-section p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #d0d0d0;
    line-height: 1.9;
    margin-bottom: 15px;
}

.info-section strong {
    color: #ffffff;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
    }

    .about-section {
        padding: 60px 20px;
        margin-top: -30px;
    }

    .categories-section {
        padding: 60px 20px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .route-section {
        padding: 60px 20px;
    }

    .about-container,
    .contact-container {
        padding: 100px 20px 60px;
    }

    .about-content {
        padding: 40px 25px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .info-section {
        padding: 40px 25px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem !important;
    }

    .cta-button {
        padding: 15px 35px;
        font-size: 1rem;
    }

    .category-card {
        padding: 30px 20px;
    }
}


/* ===== SHOP PAGE STYLES ===== */
.shop-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}

.breadcrumb {
    color: #b0b0b0;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.breadcrumb a {
    color: #eca91d;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.shop-header h1 {
    font-size: clamp(2rem, 5vw, 3rem) !important;
    color: #eca91d !important;
    font-weight: 700;
}

.shop-results {
    color: #b0b0b0;
    font-size: 1rem;
}

.shop-sorting {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-sorting select,
.orderby {
    background: rgba(25, 30, 40, 0.98) !important;
    color: #ffffff !important;
    border: 1px solid rgba(236, 169, 29, 0.2) !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-sorting select:hover,
.orderby:hover {
    border-color: #eca91d !important;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: rgba(25, 30, 40, 0.98);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(236, 169, 29, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: #eca91d;
    box-shadow: 0 30px 60px rgba(236, 169, 29, 0.2);
}

.product-badge {
    display: inline-block;
    background: linear-gradient(135deg, #eca91d 0%, #d4941a 100%);
    color: #0b1320;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
}

.product-distance {
    font-size: 4rem !important;
    font-weight: 900;
    color: #eca91d !important;
    text-align: center;
    margin: 20px 0;
    text-shadow: 0 0 30px rgba(236, 169, 29, 0.3);
}

.product-title {
    font-size: 1.5rem !important;
    color: #ffffff !important;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: center;
}

.product-subtitle {
    font-size: 0.95rem;
    color: #b0b0b0;
    margin-bottom: 20px;
    text-align: center;
}

.product-price {
    font-size: 2rem !important;
    color: #eca91d !important;
    font-weight: 700;
    text-align: center;
    margin: 20px 0;
}

.add-to-cart-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #eca91d 0%, #d4941a 100%);
    color: #0b1320 !important;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(236, 169, 29, 0.3);
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(236, 169, 29, 0.5);
}

.view-details-link {
    display: block;
    text-align: center;
    color: #eca91d !important;
    text-decoration: none;
    margin-top: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.view-details-link:hover {
    color: #ffffff !important;
}

/* ===== PRODUCT PAGE STYLES ===== */
.product-container {
    max-width: 700px;
    /* Reduced width for better stacked look */
    margin: 0 auto;
    padding: 80px 20px 60px;
    /* Reduced top padding */
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: stretch;
}

.product-image {
    background: rgba(25, 30, 40, 0.98);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(236, 169, 29, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.distance-display {
    font-size: 8rem !important;
    font-weight: 900;
    color: #eca91d !important;
    line-height: 1;
    text-shadow: 0 0 50px rgba(236, 169, 29, 0.3);
    margin-bottom: 20px;
}

.distance-label {
    font-size: 2rem !important;
    color: #ffffff !important;
    font-weight: 600;
    letter-spacing: 5px;
}

.product-details {
    background: rgba(25, 30, 40, 0.98);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(236, 169, 29, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #eca91d !important;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.back-link:hover {
    gap: 12px;
}

.product-description {
    color: #d0d0d0;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(236, 169, 29, 0.2);
}

.product-features {
    margin-bottom: 30px;
}

.product-features h4 {
    color: #eca91d !important;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 10px 0;
    color: #d0d0d0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-list li::before {
    content: '✓';
    color: #eca91d;
    font-weight: 700;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center alignment */
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-selector label {
    color: #ffffff;
    font-weight: 600;
}

.quantity-input {
    display: flex;
    align-items: center;
    background: transparent;
    /* Removed dark background since buttons are gone */
    border-radius: 10px;
    overflow: hidden;
}

.qty-btn {
    display: none !important;
    /* User requested removal */
}

.qty-value,
.qty {
    width: 80px;
    /* Slightly wider for better visibility */
    height: 45px;
    /* Better touch target */
    background: #eca91d !important;
    border: 1px solid #eca91d !important;
    color: #0b1320 !important;
    font-weight: 700;
    border-radius: 8px;
    /* Slightly more rounded */
    text-align: center;
    font-size: 1.1rem;
}

/* ===== FIX: HIDE MOBILE TOGGLE ON DESKTOP ===== */
.menu-toggle {
    display: none !important;
    /* Force hide on desktop */
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
        /* Show only on mobile */
    }
}

/* ===== CART & CHECKOUT RESPONSIVE FIXES ===== */

/* Make Cart Table Responsive & COMPACT */
@media screen and (max-width: 768px) {

    /* Hide Table Header */
    .woocommerce table.shop_table thead {
        display: none;
    }

    /* Row as a Compact Card */
    .woocommerce table.shop_table tr {
        display: grid;
        grid-template-columns: 3fr 1fr auto;
        grid-template-areas:
            "product price"
            "qty total"
            "remove remove";
        gap: 10px;
        align-items: center;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(236, 169, 29, 0.2);
        border-radius: 12px;
        margin-bottom: 12px;
        /* reduced margin */
        padding: 12px;
        position: relative;
    }

    /* Product Name Cell */
    .woocommerce table.shop_table td.product-name {
        grid-area: product;
        display: block;
        padding: 0 !important;
        border: none !important;
        font-weight: 700;
        font-size: 1rem;
        color: #fff;
    }

    /* Meta data (like "Distance: 10km") styling correction */
    .woocommerce table.shop_table td.product-name dl.variation {
        display: flex;
        gap: 5px;
        font-size: 0.8rem;
        color: #b0b0b0;
        margin: 0;
    }

    /* Price Cell */
    .woocommerce table.shop_table td.product-price {
        grid-area: price;
        display: block;
        padding: 0 !important;
        border: none !important;
        text-align: right;
        font-size: 0.9rem;
        color: #eca91d;
    }

    /* Quantity Cell */
    .woocommerce table.shop_table td.product-quantity {
        grid-area: qty;
        display: block;
        padding: 0 !important;
        border: none !important;
    }

    /* Subtotal Cell */
    .woocommerce table.shop_table td.product-subtotal {
        grid-area: total;
        display: block;
        padding: 0 !important;
        border: none !important;
        text-align: right;
        font-weight: 700;
    }

    /* Remove Button Cell */
    .woocommerce table.shop_table td.product-remove {
        grid-area: remove;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
        border-bottom: none !important;
        width: 100%;
    }

    .woocommerce table.shop_table td.product-remove a.remove {
        width: auto !important;
        /* Allow it to be naturally sized or bigger */
        padding: 5px 20px !important;
        border-radius: 20px !important;
        height: auto !important;
        line-height: normal !important;
        background: rgba(255, 68, 68, 0.1);
        color: #ff6b6b !important;
        border: 1px solid #ff6b6b;
        text-decoration: none;
        font-size: 0.9rem;
    }

    .woocommerce table.shop_table td.product-remove a.remove::after {
        content: ' Remove Item';
        font-size: 0.9rem;
        font-weight: 600;
        margin-left: 5px;
    }

    /* Hide Thumbnail to save space if needed, or make it tiny */
    .woocommerce table.shop_table td.product-thumbnail {
        display: none;
    }

    /* Remove "Data Title" pseudo-elements designed for the block layout */
    .woocommerce table.shop_table td::before {
        content: none !important;
    }

    /* Fix Input Sizes */
    .woocommerce .quantity .qty {
        width: 40px !important;
        height: 30px !important;
        font-size: 0.9rem !important;
    }

    /* Coupon Section Compact */
    .coupon {
        display: flex !important;
        flex-direction: row !important;
        /* Side by side */
        gap: 5px !important;
        margin-top: 10px;
    }

    .coupon input {
        width: 60% !important;
    }

    .coupon button {
        width: 40% !important;
        padding: 10px !important;
        font-size: 0.9rem !important;
    }

    /* Cart Collage/Totals Compact */
    .cart-collaterals {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Container Padding Fix */
    .cart-container {
        padding: 100px 10px 40px !important;
        /* Maximize width */
    }
}

/* Common Form Field Fixes */
.woocommerce form .form-row {
    display: block;
    width: 100% !important;
    margin-bottom: 15px;
}

.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2 {
    float: none;
    width: 100%;
}

/* Checkout Payment Responsive */
#order_review_heading,
#order_review {
    width: 100%;
    overflow-x: hidden;
}

/* ===== CART PAGE STYLES ===== */
.cart-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}

.cart-header {
    margin-bottom: 40px;
}

.cart-header h1 {
    font-size: clamp(2rem, 5vw, 3rem) !important;
    color: #eca91d !important;
    font-weight: 700;
}

/* --- CHANGED TO GRID FOR SIDE-BY-SIDE LAYOUT --- */
.cart-content {
    display: grid;
    grid-template-columns: 68% 30%;
    /* Optimal Ratio */
    gap: 2%;
    align-items: start;
}

/* Cart Item Card - Redesigned to match Summary */
.cart-item {
    background: #FFFFFF !important;
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(56, 128, 137, 0.15);
    box-shadow: 0 10px 30px rgba(56, 128, 137, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(56, 128, 137, 0.15);
    border-color: #388087;
}

/* Distance Badge - Circular */
.cart-item-distance {
    background: linear-gradient(135deg, #388087 0%, #6FB3B8 100%);
    color: #FFFFFF !important;
    font-size: 1.8rem;
    font-weight: 900;
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(56, 128, 135, 0.3);
}

/* Product Info */
.cart-item-info {
    flex: 1;
    min-width: 150px;
}

.cart-item-title {
    font-size: 1.1rem !important;
    color: #272635 !important;
    margin: 0 0 5px 0 !important;
    font-weight: 700 !important;
}

.cart-item-subtitle {
    color: #888 !important;
    font-size: 0.85rem !important;
    margin: 0 !important;
}

/* Right Section - Price, Qty, Total */
.cart-item-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Price Box */
.cart-item-price-box,
.cart-item-qty-box,
.cart-item-total-box {
    text-align: center;
}

.price-label,
.qty-label,
.total-label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.price-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #388087;
}

/* Quantity Input - Simple Golden Box */
.qty-input {
    width: 60px;
    height: 40px;
    text-align: center;
    background: #eca91d !important;
    border: none !important;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0b1320 !important;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.qty-input:focus {
    outline: 2px solid #d4941a;
    outline-offset: 2px;
}

/* Total Box */
.total-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #388087;
}

/* Remove Button - Top Right */
.cart-item-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #FF6B6B !important;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
    line-height: 1;
}

.cart-item-remove:hover {
    background: #FF6B6B;
    color: #FFFFFF !important;
    transform: scale(1.1);
    border-color: #FF6B6B;
}

/* Summary Box */
.cart-summary {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(56, 128, 137, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    font-size: 1.4rem !important;
    color: #272635 !important;
    margin-bottom: 25px;
    border-bottom: 2px solid #F0F0F0;
    padding-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(56, 128, 135, 0.1);
    color: #555;
    font-size: 1rem;
}

.summary-total {
    border-top: 2px solid #C2EDCE;
    border-bottom: none;
    margin-top: 10px;
    padding-top: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #388087;
}

.summary-total span:last-child {
    color: #388087;
    font-size: 1.5rem;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: #388087;
    color: #FFF !important;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 25px;
    display: block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(56, 128, 137, 0.3);
}

.checkout-btn:hover {
    background: #2A6065;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(56, 128, 137, 0.4);
}

.continue-shopping {
    display: block;
    text-align: center;
    color: #388087 !important;
    text-decoration: none;
    margin-top: 20px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.continue-shopping:hover {
    color: #6FB3B8 !important;
}

/* General Layout Fixes */
.product-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ===== RESPONSIVE FOR SHOP & CART ===== */
@media (max-width: 1024px) {
    .cart-content {
        grid-template-columns: 1fr;
        /* Stack on Tablet/Mobile */
    }

    .cart-summary {
        position: static;
        width: 100%;
    }
}

@media (max-width: 768px) {

    .shop-container,
    .cart-container {
        padding: 100px 20px 60px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-container {
        grid-template-columns: 1fr;
        padding: 100px 20px 40px;
        gap: 30px;
    }

    .distance-display {
        font-size: 5rem !important;
    }

    .product-title {
        font-size: 2rem !important;
    }

    .product-price {
        font-size: 2.5rem !important;
    }

    /* Cart Item Mobile */
    .cart-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }

    .cart-item-distance {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .cart-item-right {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .cart-item-price-box,
    .cart-item-qty-box,
    .cart-item-total-box {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .cart-item-total-box {
        border-bottom: none;
        padding-top: 15px;
        border-top: 2px solid #388087;
    }

    .shop-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-items {
        padding: 0;
    }
}


/* ===== TERMS & POLICIES PAGE STYLES ===== */
.terms-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 140px 20px 80px;
}

.terms-hero {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.terms-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.terms-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem) !important;
    color: #eca91d !important;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.terms-hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #b0b0b0;
}

.terms-hero .organized-by {
    margin-top: 10px;
    font-size: 1.1rem;
    color: #d0d0d0;
}

.terms-hero .organized-by strong {
    color: #eca91d;
}

.terms-content {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.terms-card {
    background: rgba(25, 30, 40, 0.98);
    border-radius: 15px;
    padding: 30px 35px;
    margin-bottom: 25px;
    border: 1px solid rgba(236, 169, 29, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.terms-card:hover {
    border-color: rgba(236, 169, 29, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(236, 169, 29, 0.15);
}

.terms-card h2 {
    font-size: clamp(1.3rem, 3vw, 1.6rem) !important;
    color: #eca91d !important;
    margin-bottom: 20px;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(236, 169, 29, 0.2);
}

.terms-card p {
    font-size: 1.05rem;
    color: #d0d0d0;
    line-height: 1.8;
    margin-bottom: 15px;
}

.terms-card p:last-child {
    margin-bottom: 0;
}

.terms-card ul {
    list-style: none;
    margin: 15px 0;
    padding: 0;
}

.terms-card ul li {
    padding: 12px 0;
    color: #d0d0d0;
    font-size: 1.05rem;
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terms-card ul li:last-child {
    border-bottom: none;
}

.terms-card ul li::before {
    content: '•';
    color: #eca91d;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.terms-card strong {
    color: #ffffff;
}

/* Special Header Cards */
.privacy-header,
.payment-header,
.legal-header {
    background: linear-gradient(135deg, rgba(236, 169, 29, 0.15) 0%, rgba(25, 30, 40, 0.98) 100%);
    text-align: center;
    padding: 40px 35px;
    margin-top: 50px;
}

.privacy-header h2,
.payment-header h2,
.legal-header h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.privacy-icon,
.payment-icon,
.legal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Terms Footer */
.terms-footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
}

.back-home-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #eca91d 0%, #d4941a 100%);
    color: #0b1320 !important;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(236, 169, 29, 0.3);
}

.back-home-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(236, 169, 29, 0.5);
}

/* Responsive for Terms Page */
@media (max-width: 768px) {
    .terms-container {
        padding: 100px 15px 60px;
    }

    .terms-card {
        padding: 25px 20px;
    }

    .terms-icon {
        font-size: 3rem;
    }

    .privacy-icon,
    .payment-icon,
    .legal-icon {
        font-size: 2.5rem;
    }
}

/* ===== FOOTER STYLES ===== */
.site-footer,
footer.site-footer {
    background: rgba(15, 20, 30, 0.98) !important;
    border-top: 1px solid rgba(236, 169, 29, 0.2) !important;
    padding: 40px 20px !important;
}

.footer-links {
    text-align: center;
    padding: 20px 0;
}

.footer-links a {
    color: #eca91d !important;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff !important;
}

.footer-copyright {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-top: 20px;
}

/* ===== CHECKOUT RUNNER DETAILS STYLES ===== */
.gedi-runner-section {
    background: rgba(25, 30, 40, 0.98);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid rgba(236, 169, 29, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gedi-section-title {
    color: #eca91d !important;
    font-size: 1.5rem !important;
    margin-bottom: 5px !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gedi-section-desc {
    color: #b0b0b0;
    font-size: 0.95rem;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

/* Grid Layout for Desktop */
.gedi-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Custom Field Styles */
.gedi-custom-field p.form-row {
    margin: 0 !important;
    padding: 0;
    width: 100% !important;
}

.gedi-custom-field label {
    display: block;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.field-icon {
    display: inline-block;
    width: 20px;
}

.gedi-custom-field input,
.gedi-custom-field select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    padding: 12px 15px !important;
    border-radius: 8px !important;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.gedi-custom-field input:focus,
.gedi-custom-field select:focus {
    border-color: #eca91d !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(236, 169, 29, 0.2);
}

/* Checkout Container Width Fix for Desktop */
.woocommerce-checkout {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Responsive Fallback */
@media (max-width: 768px) {
    .gedi-fields-grid {
        grid-template-columns: 1fr;
    }

    .gedi-runner-section {
        padding: 20px;
    }
}


/* ===== CHECKOUT PAGE LAYOUT FIX - SINGLE COLUMN STACKED ===== */

/* Ensure proper stacking and spacing */
.woocommerce-checkout form.checkout {
    display: block !important;
    /* Stacked layout */
    max-width: 900px;
    /* Centered narrow width for better readability */
    margin: 40px auto;
}

#customer_details,
#order_review_heading,
#order_review {
    width: 100%;
    margin-bottom: 30px;
}

/* Make sections look like distinct cards */
#customer_details .col-1,
#customer_details .col-2 {
    background: rgba(25, 30, 40, 0.98);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(236, 169, 29, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    float: none;
    width: 100%;
}

/* Order Review Section Card */
#order_review {
    background: rgba(25, 30, 40, 0.98);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(236, 169, 29, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Headings */
#customer_details h3,
#order_review_heading {
    color: #eca91d;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-left: 10px;
    border-left: 4px solid #eca91d;
}

/* Styling the Order Table */
.woocommerce-checkout #payment {
    background: transparent;
    border-radius: 0;
}

.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.woocommerce table.shop_table {
    border: 1px solid rgba(236, 169, 29, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.woocommerce table.shop_table th {
    background: rgba(236, 169, 29, 0.1);
    color: #eca91d;
    font-weight: 700;
}

.woocommerce table.shop_table td {
    background: rgba(0, 0, 0, 0.2);
    color: #e0e0e0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Fix Additional Info Textarea */
.woocommerce-additional-fields__field-wrapper textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 15px;
    border-radius: 8px;
}


/* ===== LAST DAY OFFER HIGHLIGHTS ===== */
.last-day-banner {
    background: linear-gradient(90deg, #ff416c, #ff4b2b, #ff416c);
    background-size: 200% auto;
    color: #fff !important;
    text-align: center;
    padding: 10px 20px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: sticky;
    top: 0;
    z-index: 10000;
    box-shadow: 0 4px 15px rgba(255, 75, 43, 0.4);
    animation: gradient-move 3s linear infinite, banner-pulse 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes gradient-move {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

@keyframes banner-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.last-day-offer-badge {
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 20;
    box-shadow: 0 5px 15px rgba(255, 75, 43, 0.4);
    animation: offer-pulse 2s infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes offer-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 75, 43, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 75, 43, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 75, 43, 0);
    }
}

.last-day-sidebar-highlight {
    background: rgba(255, 75, 43, 0.1);
    border: 2px dashed #ff4b2b;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: center;
    animation: border-flicker 2s infinite;
}

.last-day-sidebar-highlight h4 {
    color: #ff4b2b !important;
    margin-bottom: 5px;
    font-weight: 800;
}

.last-day-sidebar-highlight p {
    color: #fff !important;
    font-size: 1.1rem !important;
    margin: 0 !important;
    font-weight: 700;
}

@keyframes border-flicker {

    0%,
    100% {
        border-color: #ff4b2b;
        opacity: 1;
    }

    50% {
        border-color: #ff416c;
        opacity: 0.8;
    }
}