/* wwwroot/css/site.css - Consolidated Dark Theme for IMH Construction */

/* ===== VARIABLES ===== */
:root {
    /* Colors */
    --primary-bg: #0a0a0a; /* Main background - near black */
    --secondary-bg: #121212; /* Secondary background - slightly lighter black */
    --accent-color: #C5A572; /* Gold accent color */
    --text-primary: #ffffff; /* Primary text color - white */
    --text-secondary: rgba(255, 255, 255, 0.7); /* Secondary text - semi-transparent white */
    --text-muted: rgba(255, 255, 255, 0.5); /* Muted text - more transparent white */
    --danger-color: #e74c3c; /* Red for alerts/errors */
    --success-color: #2ecc71; /* Green for success states */
    /* Typography */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    /* Effects */
    --text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    --gradient-text: linear-gradient(to bottom, #ffffff, rgba(255, 255, 255, 0.7));
    --gradient-accent: linear-gradient(135deg, #C5A572, #e6c992);
    --transition-standard: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Spacing */
    --header-height: 80px;
    --section-spacing: 120px;
    --container-padding: 5vw;
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--text-shadow);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition-standard);
}

    a:hover {
        color: #ffffff;
    }

img {
    max-width: 100%;
    height: auto;
}

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.main-content {
    padding: 0;
}

section {
    padding: var(--section-spacing) 0;
    position: relative;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.home-logo-link svg {
    width: 50px;
    height: 50px;
    fill: none;
    stroke: var(--text-primary);
    stroke-width: 7;
    transition: var(--transition-standard);
}

.home-logo-link:hover svg {
    stroke: var(--accent-color);
}

.cart-link-wrapper {
    position: relative;
}

.cart-icon-link svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: var(--text-primary);
    stroke-width: 2;
    transition: var(--transition-standard);
}

.cart-icon-link:hover svg {
    stroke: var(--accent-color);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: bold;
    border: 1px solid var(--primary-bg);
}

/* Minimalist Navigation (integrated into header) */
.top-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

    .top-nav-menu a {
        color: var(--text-primary);
        font-family: var(--font-body);
        font-size: 1rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        position: relative;
        padding-bottom: 5px;
    }

        .top-nav-menu a::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 0;
            height: 2px;
            background: var(--gradient-accent);
            transition: width 0.3s ease;
        }

        .top-nav-menu a:hover::after,
        .top-nav-menu a.active::after {
            width: 100%;
        }

/* ===== HERO SECTION ===== */
.hero-section {
    height: calc(100vh - var(--header-height));
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    position: relative;
    overflow: hidden;
    background-color: var(--primary-bg); /* Fallback background */
}

/* Spline Canvas Container (Desktop Only) */
.canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Ensure Spline doesn't capture scroll */
    touch-action: none;
    -webkit-overflow-scrolling: none;
    overflow: hidden;
}

#canvas3d {
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
}

/* Mobile Hero Background (Mobile Only) */
.mobile-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-bg); /* Fallback */
    background-image: url('/images/welding-bg-mobile.jpg'); /* Add a dark welding image */
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.mobile-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.95));
    z-index: 1;
}

.mobile-hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Hero Content Overlay (Common to both desktop and mobile) */
.hero-content {
    position: relative; /* Changed from absolute to relative to flow within flex container */
    z-index: 3; /* Ensure content is above both 3D and mobile background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Center content horizontally */
    text-align: center; /* Center text */
    padding: 2rem;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    max-width: 800px; /* Limit width for readability */
}

    .hero-content.loaded {
        opacity: 1;
    }

/* Typography for Hero Content */
.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    font-weight: 500;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
    max-width: 600px;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap; /* Allow buttons to wrap on small screens */
    justify-content: center; /* Center buttons */
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    min-height: 50px; /* Ensure minimum height for usability */
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-standard);
    border: 2px solid; /* Common border for both */
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--primary-bg);
    border-color: var(--accent-color);
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(197, 165, 114, 0.3);
        color: var(--primary-bg); /* Keep text color same on hover */
        background: var(--gradient-accent); /* Keep background same on hover */
    }

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

    .btn-secondary:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: var(--accent-color);
        color: var(--accent-color);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
    }

/* ===== 3D SERVICE CARDS ===== */
.services-section {
    /* height: 100vh; Removed for standard scroll */
    padding: var(--section-spacing) 0; /* Standard padding */
    display: flex;
    flex-direction: column; /* Stack cards vertically */
    align-items: center;
    justify-content: center;
    perspective: 1000px; /* For 3D effect */
    background-color: var(--secondary-bg); /* Background for this section */
}

.service-card-container {
    width: 100%;
    height: calc(100vh - var(--header-height)); /* Make container full height of viewport minus header */
    position: relative;
    scroll-snap-type: y mandatory; /* Enable snap scrolling */
    overflow-y: scroll;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* gap: 4rem; Removed gap for snap scrolling */
}

.service-card-wrapper {
    height: calc(100vh - var(--header-height)); /* Each wrapper takes full viewport height minus header */
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start; /* Snap to the start of each card */
    width: 100%; /* Ensure wrapper takes full width */
}

.service-card {
    width: 80%; /* Keep width */
    max-width: 1000px;
    height: 450px; /* Adjusted fixed height for better control */
    position: relative;
    transform-style: preserve-3d; /* Enable 3D transformations for children */
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg); /* Initial 3D tilt */
    transition: transform 0.5s ease; /* Smooth transition for 3D effect */
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(255, 255, 255, 0.05); /* Make card more visible */
}

    /* No hover effect on service cards as requested */
    .service-card:hover {
        transform: perspective(1000px) rotateX(5deg) rotateY(5deg); /* Reset to initial state */
    }

.service-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.1), rgba(10, 10, 10, 0.9)); /* Make overlay more transparent at top, opaque at bottom */
    z-index: 2;
}

.service-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem;
    z-index: 3;
    transform: translateZ(50px); /* Push content forward in 3D space */
}

.service-card-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card-description {
    font-size: 1.2rem;
    max-width: 80%;
    color: var(--text-secondary);
}

/* ===== PRODUCTS SECTION (Grid Display) ===== */
.products-section {
    background-color: var(--primary-bg);
    padding: var(--section-spacing) 0; /* Standard padding */
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background: var(--gradient-accent);
    }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* 4 products per row on large screens */
    gap: 2rem;
}

.product-card { /* Reusing existing product-card styles */
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition-standard);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex; /* Use flexbox for internal layout */
    flex-direction: column;
}

    .product-card:hover {
        transform: translateY(-10px);
    }

.product-image {
    height: 250px; /* Fixed height for product images */
    overflow: hidden;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition-standard);
    }

.product-details {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1; /* Allows content to push button to bottom */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute space */
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary); /* Ensure product title is white */
}

.product-price {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-accent); /* Use gradient for button */
    color: var(--primary-bg);
    border: none; /* No border for gradient button */
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition-standard);
    cursor: pointer;
    margin-top: auto; /* Push button to bottom of flex container */
}

    .product-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(197, 165, 114, 0.3);
    }

/* ===== CONTACT SECTION ===== */
.contact-section {
    background-color: var(--secondary-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-family: var(--font-body); /* Changed to font-body for form labels */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-standard);
}

    .form-control:focus {
        outline: none;
        border-color: var(--accent-color);
        box-shadow: 0 0 0 2px rgba(197, 165, 114, 0.2);
    }

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    padding: 2.5rem;
}

.contact-info-item {
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 1rem;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary); /* Ensure contact info headings are white */
}

.contact-text p {
    color: var(--text-secondary);
}

/* Submit Button */
.submit-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    min-height: 50px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-standard);
    border: none;
    cursor: pointer;
    background: var(--gradient-accent);
    color: var(--primary-bg);
}

    .submit-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(197, 165, 114, 0.3);
    }

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--secondary-bg);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    margin-bottom: 2rem;
}

    .footer-logo svg {
        width: 60px;
        height: 60px;
        fill: none;
        stroke: var(--text-primary);
        stroke-width: 7;
    }

.footer-links {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-link {
    margin: 0 1rem;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

    .footer-link:hover {
        color: var(--accent-color);
    }

.footer-social {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.social-link {
    margin: 0 0.75rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-standard);
}

    .social-link:hover {
        background-color: var(--accent-color);
    }

    .social-link i {
        color: var(--text-primary);
        font-size: 1.2rem;
    }

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== CART & CHECKOUT STYLES ===== */
.cc-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.cc-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.cc-page-title {
    font-size: 2.8rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.cc-page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.cart-empty-state {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 50px 30px;
    text-align: center;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

    .cart-empty-state .empty-icon {
        font-size: 4rem;
        color: var(--accent-color);
        margin-bottom: 20px;
        opacity: 0.7;
    }

    .cart-empty-state h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .cart-empty-state p {
        color: var(--text-secondary);
        margin-bottom: 25px;
    }

.cart-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart-item {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow);
    margin-bottom: 25px;
    padding: 25px;
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-image img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-details .item-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    text-decoration: none;
}

    .cart-item-details .item-name:hover {
        color: var(--accent-color);
    }

.cart-item-details .item-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cart-item-price,
.cart-item-row-total {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: right;
}

.cart-item-quantity .quantity-input {
    width: 60px;
    height: 48px;
    padding: 0 10px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    color: var(--text-primary);
    -moz-appearance: textfield;
}

    .cart-item-quantity .quantity-input::-webkit-outer-spin-button,
    .cart-item-quantity .quantity-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .cart-item-quantity .quantity-input:focus {
        outline: none;
        border-color: var(--accent-color);
        box-shadow: 0 0 0 2px rgba(197, 165, 114, 0.2);
    }

.cart-item-actions .btn-remove {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: var(--transition-standard);
}

    .cart-item-actions .btn-remove:hover {
        color: #c0392b;
    }

.cart-summary-section {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-top: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-summary-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

    .cart-summary-row strong {
        color: var(--text-primary);
        font-weight: 500;
    }

.cart-grand-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

/* Checkout Layout */
.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.checkout-form-container,
.checkout-summary-container {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.checkout-section-header {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

    .checkout-section-header .icon {
        margin-right: 12px;
        color: var(--accent-color);
        font-size: 1.5rem;
    }

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-family: var(--font-body); /* Changed to font-body for form labels */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-standard);
}

    .form-control:focus {
        outline: none;
        border-color: var(--accent-color);
        box-shadow: 0 0 0 2px rgba(197, 165, 114, 0.2);
    }

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkout-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

    .checkout-order-item:last-of-type {
        border-bottom: none;
    }

    .checkout-order-item .item-info .name {
        color: var(--text-primary);
        font-weight: 500;
    }

    .checkout-order-item .item-info .qty {
        color: var(--text-secondary);
        font-size: 0.85rem;
        margin-left: 5px;
    }

    .checkout-order-item .item-total-price {
        color: var(--text-primary);
        font-weight: 500;
    }

.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

/* Button Styles (General) */
.cc-btn {
    display: inline-block;
    padding: 0 30px;
    height: 50px;
    line-height: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-standard);
    border: none;
    white-space: nowrap;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cc-btn-primary {
    background: var(--gradient-accent);
    color: var(--primary-bg);
}

    .cc-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(197, 165, 114, 0.3);
        color: var(--primary-bg);
    }

.cc-btn-success {
    background-color: var(--success-color);
    color: var(--primary-bg);
    width: 100%;
}

    .cc-btn-success:hover {
        background-color: #27ae60;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3);
    }

    .cc-btn-success .icon {
        margin-right: 8px;
    }

.cc-btn-outline {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

    .cc-btn-outline:hover {
        background-color: var(--accent-color);
        color: var(--primary-bg);
        transform: translateY(-2px);
    }

/* Specific Checkout Button from checkoutButton.css */
.containerPayment {
    margin: auto;
    background-color: rgba(255, 255, 255, 0.05); /* Adapted for dark theme */
    display: flex;
    max-width: 500px;
    height: 120px;
    position: relative;
    border-radius: var(--border-radius-md);
    transition: var(--transition-standard);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--box-shadow);
}

    .containerPayment:hover {
        transform: scale(1.03);
    }

        .containerPayment:hover .left-side {
            width: 100%;
        }

.left-side {
    background-color: var(--success-color); /* Green for payment success */
    width: 130px;
    height: 120px;
    border-radius: var(--border-radius-sm);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-standard);
    flex-shrink: 0;
    overflow: hidden;
}

.right-side {
    display: flex;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    justify-content: space-between;
    white-space: nowrap;
    transition: var(--transition-standard);
    flex-grow: 1; /* Allow it to take available space */
}

    .right-side:hover {
        background-color: rgba(255, 255, 255, 0.08); /* Lighter hover for dark theme */
    }

.arrow {
    width: 20px;
    height: 20px;
    margin-right: 20px;
    filter: invert(1); /* Make arrow white */
}

.new {
    font-size: 23px;
    font-family: var(--font-heading); /* Using site's font */
    margin-left: 20px;
    color: var(--text-primary); /* Ensure text is white */
}

.card {
    width: 70px;
    height: 46px;
    background-color: rgba(46, 204, 113, 0.5); /* Lighter green, semi-transparent */
    border-radius: var(--border-radius-sm);
    position: absolute;
    display: flex;
    z-index: 10;
    flex-direction: column;
    align-items: center;
    box-shadow: 9px 9px 9px -2px rgba(46, 204, 113, 0.3); /* Adjusted shadow color */
}

.card-line {
    width: 65px;
    height: 13px;
    background-color: rgba(46, 204, 113, 0.7); /* Darker green */
    border-radius: 2px;
    margin-top: 7px;
}

.buttons {
    width: 8px;
    height: 8px;
    background-color: rgba(46, 204, 113, 0.8); /* Darker green */
    box-shadow: 0 -10px 0 0 rgba(46, 204, 113, 0.6), 0 10px 0 0 rgba(46, 204, 113, 0.9); /* Adjusted shadow */
    border-radius: 50%;
    margin-top: 5px;
    transform: rotate(90deg);
    margin: 10px 0 0 -30px;
}

.post {
    width: 63px;
    height: 75px;
    background-color: rgba(255, 255, 255, 0.1); /* Adapted for dark theme */
    position: absolute;
    z-index: 11;
    bottom: 10px;
    top: 120px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.post-line {
    width: 47px;
    height: 9px;
    background-color: rgba(255, 255, 255, 0.2); /* Adapted for dark theme */
    position: absolute;
    border-radius: 0px 0px 3px 3px;
    right: 8px;
    top: 8px;
}

    .post-line:before {
        content: "";
        position: absolute;
        width: 47px;
        height: 9px;
        background-color: rgba(255, 255, 255, 0.3); /* Adapted for dark theme */
        top: -8px;
    }

.screen {
    width: 47px;
    height: 23px;
    background-color: var(--text-primary); /* White screen */
    position: absolute;
    top: 22px;
    right: 8px;
    border-radius: 3px;
}

.numbers {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.4); /* Adapted for dark theme */
    box-shadow: 0 -18px 0 0 rgba(255, 255, 255, 0.4), 0 18px 0 0 rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    position: absolute;
    transform: rotate(90deg);
    left: 25px;
    top: 52px;
}

.numbers-line2 {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.2); /* Adapted for dark theme */
    box-shadow: 0 -18px 0 0 rgba(255, 255, 255, 0.2), 0 18px 0 0 rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: absolute;
    transform: rotate(90deg);
    left: 25px;
    top: 68px;
}

.dollar {
    position: absolute;
    font-size: 16px;
    font-family: var(--font-heading); /* Using site's font */
    width: 100%;
    left: 0;
    top: 0;
    color: var(--success-color); /* Green dollar sign */
    text-align: center;
}

/* Keyframe Animations from checkoutButton.css */
@keyframes slide-top {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-70px) rotate(90deg);
    }

    60% {
        transform: translateY(-70px) rotate(90deg);
    }

    100% {
        transform: translateY(-8px) rotate(90deg);
    }
}

@keyframes slide-post {
    50% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-70px);
    }
}

@keyframes fade-in-fwd {
    0% {
        opacity: 0;
        transform: translateY(-5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE STYLES ===== */
/* Desktop Only / Mobile Only Classes */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .service-card-title {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
        row-gap: 15px;
    }

    .cart-item-image {
        grid-row: 1 / span 3;
    }

    .cart-item-details {
        grid-column: 2;
        grid-row: 1;
    }

    .cart-item-price {
        grid-column: 2;
        grid-row: 2;
        text-align: left;
    }

    .cart-item-quantity {
        grid-column: 2;
        grid-row: 2;
        margin-left: auto;
    }

    .cart-item-row-total {
        grid-column: 2;
        grid-row: 3;
        text-align: left;
    }

    .cart-item-actions {
        grid-column: 2;
        grid-row: 3;
        margin-left: auto;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    /* Mobile Hero Specifics */
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .hero-content {
        text-align: center;
        padding: 0 1.5rem;
        z-index: 3; /* Ensure content is above mobile background */
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    /* Products Section */
    .product-display-wrapper {
        height: 70vh; /* Adjust height for mobile */
    }

    .product-display-slide {
        padding: 1rem;
    }

    .product-card {
        max-width: 400px; /* Adjust max-width for mobile product cards */
    }

    .product-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .product-nav-prev {
        left: 10px;
    }

    .product-nav-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .service-card-title {
        font-size: 1.8rem;
    }

    .service-card {
        width: 90%;
        height: 60vh;
    }

    .service-card-content {
        padding: 2rem;
    }

    .product-grid { /* This is for the old product grid, will be overridden */
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .form-row-split {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .service-card-title {
        font-size: 1.6rem;
    }

    .service-card {
        width: 95%;
        height: 50vh;
        transform: none !important; /* Disable 3D tilt on very small screens */
    }

    .service-card-content {
        padding: 1.5rem;
    }

    .service-card-description {
        font-size: 1rem;
    }

    .cart-item {
        grid-template-columns: 1fr; /* Stack everything */
        text-align: center;
    }

    .cart-item-image {
        grid-row: 1;
        margin: 0 auto 15px auto;
    }

    .cart-item-details {
        grid-row: 2;
        grid-column: 1;
        text-align: center;
    }

    .cart-item-price {
        grid-row: 3;
        grid-column: 1;
        text-align: center;
    }

    .cart-item-quantity {
        grid-row: 4;
        grid-column: 1;
        margin: 10px auto;
    }

    .cart-item-row-total {
        grid-row: 5;
        grid-column: 1;
        text-align: center;
    }

    .cart-item-actions {
        grid-row: 6;
        grid-column: 1;
        text-align: center;
    }

    .containerPayment {
        transform: scale(0.7);
    }

        .containerPayment:hover {
            transform: scale(0.74);
        }

    .new {
        font-size: 18px;
    }
}
