:root {
    --primary: #00B4D8;
    --primary-light: #90E0EF;
    --secondary: #0077B6;
    --dark: #03045E;
    --bg: #ffffff;
    --text: #03045E;
    --nav-glass: rgba(255, 255, 255, 0.95);
    --shadow: rgba(0, 119, 182, 0.1);
    --shadow-hover: rgba(0, 119, 182, 0.25);
}

.dark-mode {
    --bg: #03045E;
    --text: #CAF0F8;
    --nav-glass: rgba(3, 4, 94, 0.95);
    --primary: #00B4D8;
    --shadow: rgba(0, 180, 216, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    transition: all 0.4s ease;
    overflow-x: hidden;
}

/* ======================== NAVBAR ======================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    z-index: 1000;
    transition: all 0.3s ease;
    background: var(--nav-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 180, 216, 0.1);
}

.navbar.scrolled {
    padding: 12px 8%;
    box-shadow: 0 4px 30px var(--shadow);
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    transition: width 0.3s ease;
}

.nav-item.active a::after,
.nav-item a:hover::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

#theme-toggle {
    background: var(--primary);
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

#theme-toggle:hover {
    transform: rotate(20deg) scale(1.1);
}

.cart-btn {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    border: none;
}

.cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow-hover);
}

#cart-count {
    background: white;
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 900;
}

/* ======================== HERO ======================== */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(3, 4, 94, 0.85) 0%, rgba(0, 119, 182, 0.7) 100%),
                url('https://coosaclimate.com/wp-content/uploads/2025/10/5ea305b5a2fd915fc94874c9.webp') no-repeat center center/cover;
    background-attachment: fixed;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 180, 216, 0.2) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 950px;
    padding: 20px;
    color: #fff;
}

.hero-badge {
    background: rgba(144, 224, 239, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(144, 224, 239, 0.3);
    margin-bottom: 30px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title span {
    color: var(--primary-light);
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 45px;
    opacity: 0.95;
    line-height: 1.9;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 17px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--dark);
    box-shadow: 0 15px 35px rgba(144, 224, 239, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    background: #fff;
    color: var(--dark);
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    opacity: 0.7;
}

.scroll-down::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: scrollMove 2s infinite;
}

@keyframes scrollMove {
    0% { opacity: 0; top: 10px; }
    50% { opacity: 1; }
    100% { opacity: 0; top: 35px; }
}

/* ======================== APP DOWNLOAD BANNER ======================== */
.app-download-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 180, 216, 0.4);
    z-index: 999;
    display: none;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s;
    animation: slideUpBanner 0.5s ease;
}

@keyframes slideUpBanner {
    from {
        opacity: 0;
        transform: translate(-50%, 100px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.app-download-banner:hover {
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 180, 216, 0.6);
}

.app-download-banner .icon {
    font-size: 2rem;
}

.app-download-banner .text h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.app-download-banner .text p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.app-download-banner .close-banner {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.3s;
}

.app-download-banner .close-banner:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.app-download-banner.hidden {
    display: none !important;
}

/* ======================== SECTIONS ======================== */
.section-padding {
    padding: 100px 8%;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    color: var(--dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 10px;
}

.bg-soft {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(144, 224, 239, 0.05) 100%);
}

/* ======================== AC CALCULATOR ======================== */
.calc-card {
    background: var(--bg);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 60px var(--shadow);
    max-width: 700px;
    margin: auto;
    border: 1px solid rgba(0, 180, 216, 0.1);
}

.calc-header {
    text-align: center;
    margin-bottom: 35px;
}

.calc-header h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.calc-header p {
    color: var(--text);
    opacity: 0.7;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text);
    font-size: 0.95rem;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

input, select {
    width: 100%;
    padding: 15px 20px;
    border-radius: 15px;
    border: 2px solid rgba(0, 180, 216, 0.2);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.1);
}

.action-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 800;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.result-area {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(144, 224, 239, 0.1), rgba(0, 180, 216, 0.05));
    border-radius: 15px;
    border-right: 4px solid var(--primary);
    display: none;
}

.result-area.show {
    display: block;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-area h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.result-area p {
    line-height: 1.8;
    margin-bottom: 10px;
}
/* ======================== SHOP CONTROLS ======================== */
.shop-controls {
    max-width: 900px;
    margin: 0 auto 40px;
}

.search-box {
    position: relative;
    margin-bottom: 25px;
}

.search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.2rem;
}

.search-box input {
    width: 100%;
    padding: 18px 60px 18px 20px;
    border-radius: 50px;
    border: 2px solid rgba(0, 180, 216, 0.2);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.1);
}

.categories-filter {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    background: var(--bg);
    border: 2px solid rgba(0, 180, 216, 0.2);
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cairo', sans-serif;
}

.category-btn:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .categories-filter {
        gap: 10px;
    }
    
    .category-btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}
/* ======================== PRODUCTS ======================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
}

.product-card {
    background: var(--bg);
    padding: 20px;
    border-radius: 20px;
    border: 1.5px solid rgba(0, 180, 216, 0.08);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px var(--shadow-hover);
    border-color: rgba(0, 180, 216, 0.2);
}

.product-image {
    width: 100%;
    height: 160px; /* Reduced from 220px */
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
}

.product-category {
    display: inline-block;
    background: rgba(0, 180, 216, 0.08);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    align-self: flex-start;
}

.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1.4;
    flex-grow: 1;
}

.product-card p {
    color: var(--text);
    opacity: 0.7;
    margin-bottom: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--secondary);
    margin: 10px 0;
}

.product-card .action-btn {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 0.85rem;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-card {
        padding: 15px;
        border-radius: 15px;
    }
    
    .product-image {
        height: 140px;
        border-radius: 10px;
        margin-bottom: 12px;
    }
    
    .product-card h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .product-card p {
        font-size: 0.8rem;
        margin-bottom: 10px;
        -webkit-line-clamp: 2;
    }
    
    .price {
        font-size: 1.3rem;
        margin: 8px 0;
    }
    
    .product-category {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
    
    .product-card .action-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .product-card {
        padding: 12px;
    }
    
    .product-image {
        height: 120px;
        margin-bottom: 10px;
    }
    
    .product-card h3 {
        font-size: 0.9rem;
    }
    
    .product-card p {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }
    
    .price {
        font-size: 1.2rem;
    }
    
    .product-card .action-btn {
        padding: 7px 12px;
        font-size: 0.75rem;
    }
}

/* For extra small screens */
@media (max-width: 360px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-card {
        padding: 10px;
    }
    
    .product-image {
        height: 100px;
    }
}

.loading {
    text-align: center;
    padding: 40px 20px;
    font-size: 1rem;
    color: var(--primary);
    grid-column: 1 / -1;
}

.loading i {
    font-size: 2.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Optional: Add a masonry-like effect for different content heights */
.product-card {
    min-height: 380px; /* Set a minimum height for consistency */
}

@media (max-width: 768px) {
    .product-card {
        min-height: 340px;
    }
}

@media (max-width: 480px) {
    .product-card {
        min-height: 300px;
    }
}
/* ======================== ABOUT ======================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.about-card {
    background: var(--bg);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 40px var(--shadow);
    border: 2px solid rgba(0, 180, 216, 0.1);
    transition: all 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px var(--shadow-hover);
}

.about-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-card p {
    line-height: 1.9;
    margin-bottom: 25px;
    opacity: 0.85;
}

.portfolio-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.p-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 15px 20px;
    border-radius: 15px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.p-badge:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 20px var(--shadow-hover);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.05), rgba(144, 224, 239, 0.05));
    border-radius: 20px;
    border: 2px solid rgba(0, 180, 216, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text);
    opacity: 0.8;
    font-weight: 600;
}

/* ======================== FOOTER ======================== */
.footer {
    background: linear-gradient(135deg, var(--dark), #001d3d);
    color: white;
    padding: 80px 8% 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-light);
}

.footer-section p {
    line-height: 1.9;
    opacity: 0.85;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.85;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-light);
    transform: translateX(-5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(144, 224, 239, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    transition: all 0.3s;
    border: 2px solid rgba(144, 224, 239, 0.2);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(144, 224, 239, 0.2);
    opacity: 0.7;
}

/* ======================== CART DRAWER ======================== */
.cart-drawer {
    position: fixed;
    left: -100%;
    top: 0;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    background: var(--bg);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    left: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-header-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.theme-toggle-drawer {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 8px 15px;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
    display: none;
}

.theme-toggle-drawer:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(20deg) scale(1.1);
}

.close-drawer {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 8px 15px;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s;
}

.close-drawer:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text);
    opacity: 0.6;
}

.cart-empty i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--primary);
    opacity: 0.3;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 180, 216, 0.05);
    border-radius: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 180, 216, 0.1);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text);
}

.cart-item-price {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.qty-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.qty-btn:hover {
    transform: scale(1.1);
}

.qty-display {
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

.remove-item {
    background: #ff4757;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.remove-item:hover {
    background: #ee5a6f;
    transform: scale(1.05);
}

.cart-footer {
    padding: 25px;
    border-top: 2px solid rgba(0, 180, 216, 0.1);
    background: var(--bg);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 900;
}

.checkout-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(72, 187, 120, 0.4);
}

.checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ======================== CHECKOUT FORM ======================== */
.checkout-form {
    display: none;
}

.checkout-form.show {
    display: block;
}

.checkout-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.back-btn {
    background: rgba(0, 180, 216, 0.1);
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--primary);
    font-size: 1.2rem;
    transition: all 0.3s;
}

.back-btn:hover {
    background: var(--primary);
    color: white;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid rgba(0, 180, 216, 0.2);
    background: var(--bg);
    color: var(--text);
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.1);
}

.order-summary {
    background: rgba(0, 180, 216, 0.05);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.order-summary h4 {
    color: var(--primary);
    margin-bottom: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 180, 216, 0.1);
}

.place-order-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
}

.place-order-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.place-order-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ======================== SUCCESS MESSAGE ======================== */
.success-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.success-message.show {
    display: block;
}

.success-icon {
    font-size: 5rem;
    color: #48bb78;
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.success-message p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.order-id {
    font-weight: 900;
    color: var(--secondary);
    font-size: 1.3rem;
}

/* ======================== MOBILE MENU ======================== */
.mobile-menu-btn {
    display: none;
    background: var(--primary);
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
    position: fixed;
    right: -100%;
    top: 0;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 30px;
}

.mobile-menu-drawer.open {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 180, 216, 0.1);
}

.mobile-menu-header h3 {
    color: var(--primary);
    font-size: 1.5rem;
}

.close-mobile-menu {
    background: rgba(0, 180, 216, 0.1);
    border: none;
    padding: 8px 15px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--primary);
    font-size: 1.3rem;
    transition: all 0.3s;
}

.close-mobile-menu:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links li {
    margin-bottom: 20px;
}

.mobile-nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 10px;
    transition: all 0.3s;
}

.mobile-nav-links a:hover,
.mobile-nav-links li.active a {
    background: rgba(0, 180, 216, 0.1);
    color: var(--primary);
    transform: translateX(-5px);
}

.mobile-theme-toggle {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid rgba(0, 180, 216, 0.1);
}

.mobile-theme-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.mobile-theme-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow-hover);
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    #theme-toggle {
        display: none;
    }

    .theme-toggle-drawer {
        display: block;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-padding {
        padding: 60px 5%;
    }

    .calc-card {
        padding: 30px 20px;
    }

    .input-row {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .cart-drawer {
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .app-download-banner {
        max-width: 90%;
        padding: 12px 20px;
    }

    .app-download-banner .text h4 {
        font-size: 0.9rem;
    }

    .app-download-banner .text p {
        font-size: 0.75rem;
    }

    .app-download-banner .icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 15px 5%;
    }

    .logo {
        font-size: 1.4rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
