/* RESET & CORE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    /* Full screen background */
    background: url("/assets/images/bg.jpg") no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    display: flex;
    flex-direction: column;
}

/* HEADER NAVIGATION */
.site-header {
    display: flex;
    align-items: center; /* Vertically centers logo and nav */
    padding: 15px 40px;
    background: rgba(0, 0, 0, 0.85);
    width: 100%;
}

/* LOGO - Stays on the left */
.logo {
    height: 60px;
    width: auto;
    display: block;
}


/* NAV LINKS - Pushed to the right */
.header-nav {
    margin-left: auto; /* Pushes the entire nav group to the right */
    display: flex;
    align-items: center;
}

.header-nav a {
    margin: 0 15px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: opacity 0.2s;
}

.header-nav a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* CART - Sits right after the links */
.cart-icon {
    position: relative;
    font-size: 22px;
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
    display: flex;
    align-items: center;
}

.cart-bubble {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #ff3b3b;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* PAGE CONTAINER */
.container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
    flex: 1; /* Allows container to grow to fill screen */
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

/* TILES - FORCED HORIZONTAL ROW */
.tiles {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap; /* Forces them to stay in one line on desktop */
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.tile {
    background: rgba(0, 0, 0, 0.75);
    padding: 40px 15px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    flex: 1; /* All 4 tiles take equal width */
    min-width: 0; /* Necessary for flex-basis calculations */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.7);
    background: rgba(20, 20, 20, 0.9);
}

.tile h2 {
    font-size: 19px;
    margin-bottom: 12px;
    color: #4da3ff; /* Light blue accent for titles */
}

.tile p {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.85;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 900px) {
    .tiles {
        flex-wrap: wrap; /* Stacks tiles on tablets/phones */
    }
    
    .tile {
        flex: 1 1 45%; /* 2 tiles per row on tablets */
    }

    .site-header {
        padding: 15px 20px;
    }
}

@media (max-width: 600px) {
    .tile {
        flex: 1 1 100%; /* 1 tile per row on phones */
    }
    
    .header-nav a {
        font-size: 14px;
        margin: 0 8px;
    }
}

.cta-btn {
    margin-top: 15px;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    background: #ffb703;
    color: #000;
    font-weight: 600;
    cursor: pointer;
}

.cta-btn:hover {
    background: #ffc933;
}

.cta-btn.big {
    font-size: 18px;
    padding: 14px 30px;
    text-decoration: none;
    display: inline-block;
}



/* CART BLACK BOX */
.cart-overlay {
    background: rgba(0, 0, 0, 0.75);
    padding: 30px;
    border-radius: 14px;
    max-width: 900px;
    margin: 0 auto 60px auto;
}

/* TABLE FIX */
.cart-table {
    width: 100%;
    margin-bottom: 25px;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    padding: 14px;
    text-align: left;
}

/* TOTALS */
.totals {
    margin-bottom: 25px;
    line-height: 1.6;
}

/* FORM INPUTS */
.cart-overlay input {
    width: 100%;
    padding: 12px;
    margin-bottom: 14px;
    border-radius: 6px;
    border: none;
    font-size: 15px;
}

/* PAY BUTTON FULL WIDTH */
.cart-overlay .cta-btn.big {
    width: 100%;
    padding: 16px;
    font-size: 18px;
}






/* ===== GLOBAL CTA BUTTON FIX ===== */

.cta-btn,
a.cta-btn {
    display: inline-block;
    background: #ffb703;
    color: #000 !important;
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none !important;
    text-align: center;
}

.cta-btn:hover,
a.cta-btn:hover {
    background: #ffc933;
}

/* Bigger primary actions */
.cta-btn.big {
    font-size: 18px;
    padding: 14px 30px;
}

/* Tile-specific spacing */
.tile .cta-btn {
    margin-top: 12px;
}



.tile p {
    margin: 8px 0;
}

.cta-btn.added {
    background: #555;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.7;
}


.about-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.about-hero {
    text-align: center;
    margin-bottom: 60px;
}

.about-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 15px;
}

.hero-subtext {
    font-size: 1.1rem;
    color: #555;
}

.about-section {
    margin-bottom: 50px;
}

.about-section h2 {
    margin-bottom: 15px;
}

.about-section ul {
    margin-left: 20px;
}

.about-columns {
    display: flex;
    gap: 40px;
}

.about-columns div {
    flex: 1;
}

.about-promise {
    text-align: center;
}

.about-cta {
    text-align: center;
    margin-top: 60px;
}


/* =========================
   PRODUCTS GRID (CATALOG)
   ========================= */

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}


.product-card {
    background: rgba(0, 0, 0, 0.75);
    padding: 24px 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);

    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card h2 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #4da3ff;
}

.product-card p {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 8px;
}

.product-card .cta-btn {
    margin-top: auto; /* pins button to bottom */
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-subject {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.7;
    margin-bottom: 6px;
}

