/* ===================================
   CSS Variables
   =================================== */
:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --accent-color: #f1faee;
    --dark-color: #0a0a0a;
    --light-color: #ffffff;
    --gray-color: #6c757d;
    --success-color: #2a9d8f;
    --warning-color: #e76f51;
    
    --font-heading: 'Bebas Neue', cursive;
    --font-body: 'Roboto', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--light-color);
    background-image: 
        linear-gradient(to bottom, rgba(255, 140, 0, 0.85) 0%, rgba(255, 140, 0, 0.85) 60%, rgba(0, 0, 0, 0.85) 60%, rgba(0, 0, 0, 0.85) 100%),
        url('https://hips.hearstapps.com/hmg-prod/amv-prod-cad-assets/wp-content/uploads/2017/09/tires-626x382.jpg?resize=1800:*');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed, fixed;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--dark-color);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--light-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--light-color);
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: var(--light-color);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: #ffffff;
    letter-spacing: 5px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6),
                 0 0 10px rgba(0, 0, 0, 0.4);
    animation: fadeInDown 1s ease;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 1px;
}

.btn-primary {
    background: #ff8c00;
    color: var(--light-color);
}

.btn-primary:hover {
    background: #ff6600;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--light-color);
    border: 2px solid var(--light-color);
}

.btn-secondary:hover {
    background: var(--light-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    animation: fadeInUp 1s ease 0.8s both;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================================
   Section Styles
   =================================== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--light-color);
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--light-color);
}

/* ===================================
   About Section
   =================================== */
.about {
    background: var(--accent-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.feature-text {
    font-weight: 600;
    color: var(--secondary-color);
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-color));
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--light-color);
    box-shadow: var(--shadow-lg);
}

.placeholder-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.image-placeholder p {
    font-size: 1.5rem;
    font-weight: 600;
}

/* ===================================
   Services Section
   =================================== */
.services {
    background: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid rgba(255, 140, 0, 0.5);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-image {
    width: 100%;
    max-width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(255, 140, 0, 0.5);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--light-color);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.service-description {
    color: var(--light-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-list {
    list-style: none;
}

.service-list li {
    padding: 8px 0;
    color: var(--light-color);
    position: relative;
    padding-left: 25px;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff8c00;
    font-weight: bold;
}

/* ===================================
   Inventory Section
   =================================== */
.inventory {
    background: transparent;
}

.inventory-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid rgba(255, 140, 0, 0.5);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--light-color);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.category-description {
    color: var(--light-color);
    margin-bottom: 1.5rem;
}

.category-details {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.detail {
    background: #ff8c00;
    color: var(--light-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.inventory-cta {
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    color: var(--light-color);
    padding: 3rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 140, 0, 0.5);
}

.inventory-cta h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.inventory-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    background: transparent;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--light-color);
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    border-left: 5px solid #ff8c00;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.info-icon {
    font-size: 2rem;
}

.info-text strong {
    display: block;
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.info-text p {
    color: #ffffff;
    line-height: 1.6;
    font-weight: 500;
}

.logo-placeholder {
    background: rgba(0, 0, 0, 0.7);
    border-left: 5px solid #ff8c00;
    text-align: center;
    padding: 2rem;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-upload-area {
    width: 100%;
}

.logo-upload-area .logo-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.logo-upload-area strong {
    display: block;
    color: #ff8c00;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.logo-upload-area p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-style: italic;
}

.contact-form-wrapper {
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 3px solid #ff8c00;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #ff8c00;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
    font-weight: 500;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6600;
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.4);
    background: #ffffff;
}

.form-group textarea {
    resize: vertical;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ff8c00' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 35px;
    cursor: pointer;
}

.form-group select option {
    background: #ffffff;
    color: #000000;
    padding: 10px;
    font-weight: 500;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.btn-submit:disabled {
    background: var(--gray-color);
    cursor: not-allowed;
}

.form-status {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    margin-top: 1rem;
    display: none;
}

.form-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 3rem 0 1rem;
}

.footer-logo-placeholder {
    margin-top: 1rem;
    padding: 1rem;
    text-align: center;
}

.footer-logo-image {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.footer-logo-placeholder .logo-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-logo-placeholder p {
    color: #ff8c00;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--gray-color);
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--gray-color);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    margin-bottom: 8px;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-contact p {
    color: var(--gray-color);
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-color);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .logo-image {
        height: 45px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--dark-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .inventory-categories {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .logo-text {
        font-size: 1.3rem;
    }
}

/* ===================================
   Tire Inventory Grid
   =================================== */
.tires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tire-card {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 140, 0, 0.5);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.tire-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.3);
    border-color: #ff8c00;
}

.tire-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff8c00;
    color: var(--dark-color);
    padding: 8px 16px;
    border-radius: 25px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    z-index: 2;
}

.tire-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.5);
}

.tire-info {
    padding: 1.5rem;
}

.tire-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--light-color);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.tire-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.tire-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.detail-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    color: var(--light-color);
    font-size: 1rem;
    font-weight: 600;
}

.tire-price {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #ff8c00;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.view-photos-btn {
    width: 100%;
    text-align: center;
}

/* ===================================
   Tire Modal
   =================================== */
.tire-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background: var(--dark-color);
    border: 2px solid #ff8c00;
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 3rem;
    color: #ff8c00;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: #ff6600;
    transform: rotate(90deg);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--light-color);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.modal-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 140, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 140, 0, 0.3);
}

.modal-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tire-modal-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #ff8c00;
    font-weight: 700;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.modal-gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(255, 140, 0, 0.5);
    transition: var(--transition);
    cursor: pointer;
}

.modal-gallery-image:hover {
    border-color: #ff8c00;
    transform: scale(1.05);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-actions .btn {
    flex: 1;
    min-width: 200px;
}

/* ===================================
   Shopping Cart Icon
   =================================== */
.cart-icon {
    position: relative;
    cursor: pointer;
    margin-left: 1.5rem;
    transition: var(--transition);
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-emoji {
    font-size: 1.8rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff8c00;
    color: var(--dark-color);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ===================================
   Tire Actions Buttons
   =================================== */
.tire-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tire-actions .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

/* ===================================
   Shopping Cart Modal
   =================================== */
.cart-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.cart-modal-content {
    background: var(--dark-color);
    border: 2px solid #ff8c00;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 2px solid rgba(255, 140, 0, 0.3);
}

.cart-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--light-color);
    letter-spacing: 2px;
    margin: 0;
}

.cart-items {
    padding: 1.5rem 2rem;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 140, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 1rem;
    align-items: center;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 140, 0, 0.5);
}

.cart-item-details h4 {
    font-family: var(--font-heading);
    color: var(--light-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cart-item-size {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.cart-item-price {
    color: #ff8c00;
    font-weight: 600;
    font-size: 1rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 8px;
}

.qty-btn {
    background: #ff8c00;
    color: var(--dark-color);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    transition: var(--transition);
}

.qty-btn:hover {
    background: #ff6600;
    transform: scale(1.1);
}

.qty-value {
    color: var(--light-color);
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.cart-item-total {
    text-align: right;
}

.cart-item-total p {
    color: var(--light-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.remove-btn {
    background: transparent;
    color: #e76f51;
    border: 1px solid #e76f51;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.remove-btn:hover {
    background: #e76f51;
    color: var(--light-color);
}

.empty-cart {
    padding: 3rem 2rem;
    text-align: center;
}

.empty-cart p {
    color: var(--light-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.cart-summary {
    padding: 2rem;
    border-top: 2px solid rgba(255, 140, 0, 0.3);
}

/* ===================================
   Fulfillment Selection
   =================================== */
.fulfillment-selection {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 140, 0, 0.3);
}

.fulfillment-selection h3 {
    font-family: var(--font-heading);
    color: var(--light-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.fulfillment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fulfillment-option {
    position: relative;
    cursor: pointer;
    display: block;
}

.fulfillment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.fulfillment-option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(255, 140, 0, 0.1);
    border: 2px solid rgba(255, 140, 0, 0.3);
    border-radius: 10px;
    transition: var(--transition);
}

.fulfillment-option:hover .fulfillment-option-content {
    background: rgba(255, 140, 0, 0.15);
    border-color: rgba(255, 140, 0, 0.5);
}

.fulfillment-option input[type="radio"]:checked ~ .fulfillment-option-content {
    background: rgba(255, 140, 0, 0.2);
    border-color: #ff8c00;
    box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.2);
}

.fulfillment-icon {
    font-size: 2rem;
    line-height: 1;
}

.fulfillment-option-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.fulfillment-option-text strong {
    color: var(--light-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.fulfillment-option-text small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===================================
   Delivery Section
   =================================== */
.delivery-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 140, 0, 0.3);
}

.delivery-section h3 {
    font-family: var(--font-heading);
    color: var(--light-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.delivery-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.delivery-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.delivery-form input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 140, 0, 0.3);
    border-radius: 8px;
    color: var(--light-color);
    font-size: 1rem;
    transition: var(--transition);
}

.delivery-form input:focus {
    outline: none;
    border-color: #ff8c00;
    background: rgba(255, 255, 255, 0.15);
}

.delivery-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.address-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 0.8rem;
}

#calculate-delivery-btn {
    width: 100%;
    margin-top: 0.5rem;
}

.delivery-result {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: rgba(255, 140, 0, 0.15);
    border: 2px solid #ff8c00;
    border-radius: 10px;
}

.delivery-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--light-color);
    font-size: 1.1rem;
}

.delivery-info-item:first-child {
    border-bottom: 1px solid rgba(255, 140, 0, 0.3);
    margin-bottom: 0.5rem;
    padding-bottom: 0.8rem;
}

.delivery-fee-amount {
    color: #ff8c00;
    font-weight: 700;
    font-size: 1.2rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    color: var(--light-color);
    font-size: 1.1rem;
}

.cart-grand-total {
    border-top: 2px solid rgba(255, 140, 0, 0.5);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ff8c00;
}

/* ===================================
   Payment Method Selection
   =================================== */
.payment-method-selection {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 140, 0, 0.3);
}

.payment-method-selection h3 {
    font-family: var(--font-heading);
    color: var(--light-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-option {
    position: relative;
    cursor: pointer;
    display: block;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.payment-option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(255, 140, 0, 0.1);
    border: 2px solid rgba(255, 140, 0, 0.3);
    border-radius: 10px;
    transition: var(--transition);
}

.payment-option:hover .payment-option-content {
    background: rgba(255, 140, 0, 0.15);
    border-color: rgba(255, 140, 0, 0.5);
}

.payment-option input[type="radio"]:checked ~ .payment-option-content {
    background: rgba(255, 140, 0, 0.2);
    border-color: #ff8c00;
    box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.2);
}

.payment-icon {
    font-size: 2rem;
    line-height: 1;
}

.payment-option-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.payment-option-text strong {
    color: var(--light-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.payment-option-text small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===================================
   Square Payment Form
   =================================== */
#payment-form {
    margin-top: 2rem;
}

#card-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid rgba(255, 140, 0, 0.3);
    margin-bottom: 1.5rem;
}

#card-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
}

#card-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.payment-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.payment-status.success {
    background: rgba(42, 157, 143, 0.3);
    color: #2a9d8f;
    border: 1px solid #2a9d8f;
}

.payment-status.error {
    background: rgba(231, 111, 81, 0.3);
    color: #e76f51;
    border: 1px solid #e76f51;
}

/* ===================================
   Cart Notification
   =================================== */
.cart-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #ff8c00;
    color: var(--dark-color);
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 10001;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* ===================================
   Square Payment Modal
   =================================== */
.square-payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10002;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.square-payment-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.square-payment-container {
    background: var(--dark-color);
    border: 2px solid #ff8c00;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    padding: 2rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.square-payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 140, 0, 0.3);
}

.square-payment-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--light-color);
    letter-spacing: 2px;
    margin: 0;
}

.close-square-modal {
    background: transparent;
    border: none;
    color: #ff8c00;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-square-modal:hover {
    color: #ff6600;
    transform: rotate(90deg);
}

.order-summary {
    background: rgba(255, 140, 0, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 140, 0, 0.3);
}

.order-summary h3 {
    font-family: var(--font-heading);
    color: var(--light-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    color: var(--light-color);
    border-bottom: 1px solid rgba(255, 140, 0, 0.2);
}

.order-item:last-of-type {
    border-bottom: none;
}

.order-subtotal,
.order-tax {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    color: var(--light-color);
    font-size: 1rem;
}

.order-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    margin-top: 0.5rem;
    border-top: 2px solid rgba(255, 140, 0, 0.5);
    color: #ff8c00;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.customer-info-form {
    margin-bottom: 2rem;
}

.customer-info-form h3 {
    font-family: var(--font-heading);
    color: var(--light-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.customer-info-form input,
.customer-info-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 140, 0, 0.3);
    border-radius: 8px;
    color: var(--light-color);
    font-size: 1rem;
    transition: var(--transition);
}

.customer-info-form input:focus,
.customer-info-form textarea:focus {
    outline: none;
    border-color: #ff8c00;
    background: rgba(255, 255, 255, 0.15);
}

.customer-info-form input::placeholder,
.customer-info-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.card-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid rgba(255, 140, 0, 0.3);
    margin-bottom: 1.5rem;
    min-height: 100px;
}

.square-pay-btn {
    width: 100%;
    padding: 15px;
    background: #ff8c00;
    color: var(--dark-color);
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 1px;
}

.square-pay-btn:hover {
    background: #ff6600;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
}

.square-pay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===================================
   Cash Order Info Boxes
   =================================== */
.cash-order-info {
    margin-bottom: 2rem;
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(255, 140, 0, 0.1);
    border-left: 4px solid #ff8c00;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.info-icon {
    font-size: 2rem;
    line-height: 1;
}

.info-text h4 {
    font-family: var(--font-heading);
    color: var(--light-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.info-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

.info-text strong {
    color: #ff8c00;
    font-weight: 700;
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 2rem;
    }
    
    .tires-grid {
        grid-template-columns: 1fr;
    }
    
    .tire-image {
        height: 250px;
    }
    
    .tire-details {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
    }
    
    .modal-close {
        font-size: 2.5rem;
        top: 10px;
        right: 15px;
    }
    
    .modal-title {
        font-size: 1.5rem;
        padding-right: 40px;
    }
    
    .modal-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-gallery {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
        min-width: auto;
    }
    
    .cart-icon {
        margin-left: 1rem;
    }
    
    .cart-emoji {
        font-size: 1.5rem;
    }
    
    .cart-modal-content {
        max-height: 95vh;
    }
    
    .cart-header {
        padding: 1.5rem;
    }
    
    .cart-header h2 {
        font-size: 1.5rem;
    }
    
    .cart-items {
        padding: 1rem;
    }
    
    .cart-item {
        grid-template-columns: 60px 1fr;
        gap: 0.8rem;
        padding: 1rem;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-quantity {
        grid-column: 1 / -1;
        justify-content: center;
    }
    
    .cart-item-total {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .cart-summary {
        padding: 1.5rem;
    }
    
    .cart-total {
        font-size: 1rem;
    }
    
    .cart-grand-total {
        font-size: 1.2rem;
    }
    
    .tire-actions {
        flex-direction: column;
    }
    
    .tire-actions .btn {
        width: 100%;
        min-width: auto;
    }
    
    .cart-notification {
        right: 10px;
        left: 10px;
        top: 80px;
    }
    
    .square-payment-container {
        padding: 1.5rem;
        max-height: 95vh;
    }
    
    .square-payment-header h2 {
        font-size: 1.5rem;
    }
    
    .close-square-modal {
        font-size: 2rem;
        width: 35px;
        height: 35px;
    }
    
    .order-summary {
        padding: 1rem;
    }
    
    .order-summary h3 {
        font-size: 1.1rem;
    }
    
    .customer-info-form h3 {
        font-size: 1.1rem;
    }
    
    .customer-info-form input,
    .customer-info-form textarea {
        font-size: 16px; /* Prevent iOS zoom */
    }
    
    .square-pay-btn {
        font-size: 1.1rem;
        padding: 12px;
    }
    
    .address-row {
        grid-template-columns: 1fr;
    }
    
    .delivery-form input {
        font-size: 16px; /* Prevent iOS zoom */
    }
    
    .delivery-section h3 {
        font-size: 1.1rem;
    }
    
    .delivery-info-item {
        font-size: 1rem;
    }
}
