/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #1a1a1a;
    --accent-color: #cc0000;
    --text-dark: #ffffff;
    --text-light: #cccccc;
    --bg-light: #0a0a0a;
    --bg-dark: #000000;
    --border-color: #333;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.9;
    color: var(--text-dark);
    background-color: var(--bg-dark) !important;
    background: var(--bg-dark) !important;
    width: 100%;
    min-height: 100vh;
    display: block;
    overflow-x: hidden;
    visibility: visible !important;
}

body[data-lang='ar'] {
    font-family: 'Cairo', 'Roboto', 'Segoe UI', sans-serif;
    direction: rtl;
}

body[data-lang='ar'] .nav-menu,
body[data-lang='ar'] .product-grid,
body[data-lang='ar'] .team-grid,
body[data-lang='ar'] .stats-grid,
body[data-lang='ar'] .footer-content {
    text-align: right;
}

body[data-lang='ar'] h1, 
body[data-lang='ar'] h2,
body[data-lang='ar'] h3 {
    text-align: right;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--white);
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: -2px;
}

h2 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-style: italic;
}

h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-style: italic;
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
}

/* ===== Navigation ===== */
.navbar {
    background: #000000;
    color: var(--white);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    border-bottom: 2px solid #1a1a1a;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 50px;
    height: 50px;
    fill: white;
    filter: brightness(1.2);
}

.nav-brand h1 {
    font-size: 2rem;
    color: var(--white);
    letter-spacing: 3px;
    font-style: italic;
    font-weight: 900;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    opacity: 0.8;
    text-decoration: underline;
}

.cart-icon {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

#cart-count {
    background: var(--accent-color);
    padding: 3px 10px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 5px 0;
    transition: 0.3s;
}

/* ===== Language Selector ===== */
.lang-selector {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-btn {
    padding: 6px 12px;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 0px;
    font-size: 0.85rem;
}

.lang-btn.active {
    background: var(--accent-color);
    color: var(--white);
}

.lang-btn:hover:not(.active) {
    background: rgba(255, 22, 84, 0.1);
}

/* ===== Buttons ===== */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 22, 84, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--white);
}

/* ===== Hero Section ===== */
.hero {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><linearGradient id="grad" x1="0%25" y1="0%25" x2="100%25" y2="100%25"><stop offset="0%25" style="stop-color:%231a1a1a;stop-opacity:1" /><stop offset="100%25" style="stop-color:%232a2a2a;stop-opacity:1" /></linearGradient></defs><rect width="1200" height="600" fill="url(%23grad)"/></svg>');
    background-color: #1a1a1a;
    background-attachment: fixed;
    background-size: cover;
    color: var(--white);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 22, 84, 0.15), transparent 50%),
                rgba(0, 0, 0, 0.3);
    z-index: 1;
    pointer-events: none;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    display: block;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 22, 84, 0.1);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-content h2 {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 900;
    font-style: italic;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
}

/* ===== Featured Section ===== */
.featured {
    padding: 4rem 0;
    background-color: var(--bg-dark);
}

.featured h2 {
    color: var(--white);
}

/* ===== Products Section ===== */
.products-section {
    padding: 4rem 0;
    background-color: var(--bg-dark);
    min-height: 100vh;
}

.products-section h2 {
    color: var(--white);
    margin-bottom: 3rem;
}

.filters-section {
    margin-bottom: 3rem;
}

.filters-container {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.filter-select {
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
}

.filter-select option {
    background: #1a1a1a;
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.product-card {
    background: linear-gradient(180deg, #111118, #0e0e14);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
    transform: translateZ(0);
    outline: none;
}

.product-card::before {
    content: "";
    position: absolute;
    inset: -60px;
    background: radial-gradient(closest-side at 35% 20%, rgba(255, 31, 61, 0.60), transparent 60%),
                radial-gradient(closest-side at 70% 70%, rgba(255, 31, 61, 0.35), transparent 65%);
    filter: blur(26px);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
    transform: scale(0.98);
    z-index: 0;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.65);
}

.product-card:hover::before {
    opacity: 1;
    transform: scale(1.02);
}

.product-card:active {
    transform: translateY(0px) scale(0.995);
}

.product-card:active::before {
    opacity: 1;
    transform: scale(1.05);
    filter: blur(28px);
}

.product-card > * {
    position: relative;
    z-index: 1;
}

.product-image {
    border-radius: 14px;
    overflow: hidden;
    background: radial-gradient(700px 240px at 30% 0%, rgba(255, 31, 61, 0.22), transparent 55%),
                rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    margin: 18px 18px 0 18px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55));
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 16px 18px 18px 18px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin: 0 0 5px 0;
    line-height: 1.4;
    font-family: 'Roboto', 'Cairo', sans-serif;
    letter-spacing: -0.5px;
}

.product-brand {
    color: #b7b7c3;
    font-size: 0.9rem;
    margin: 0 0 10px 0;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.product-rating .stars {
    color: var(--accent-color);
}

.product-rating .rating-text {
    color: #b7b7c3;
    font-size: 0.85rem;
}

.product-price {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(204, 0, 0, 0.5);
}

.btn-add-cart {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
}

/* ===== Modal Styles ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1a1a1a;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    position: relative;
    z-index: 2001;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--accent-color);
    cursor: pointer;
    padding: 0 10px;
    transition: 0.3s;
}

.close-btn:hover {
    transform: scale(1.2);
}

.modal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #333;
    background: #0a0a0a;
}

/* ===== Form Styles ===== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.form-group label {
    font-weight: 600;
    color: var(--white);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    background: #0a0a0a;
    border: 2px solid #333;
    color: var(--white);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group input::placeholder {
    color: #666;
}

/* ===== About Section ===== */
.about-section {
    padding: 4rem 0;
    background-color: var(--bg-dark);
}

.about-section h2 {
    color: var(--white);
}

.about-content {
    margin-top: 2rem;
}

.about-text h3 {
    color: var(--accent-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.values-list {
    list-style: none;
    margin-left: 0;
}

.values-list li {
    padding: 10px 0;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 4rem 0;
    background-color: var(--bg-dark);
}

.contact-section h2 {
    color: var(--white);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-form {
    background: #1a1a1a;
    padding: 2rem;
    border: 2px solid #333;
    border-radius: 5px;
}

.contact-form h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.form-status {
    margin-top: 1rem;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

.form-status.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
    display: block;
}

.form-status.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
    display: block;
}

/* ===== Footer ===== */
.footer {
    background: #1a1a1a;
    color: var(--text-light);
    padding: 3rem 0 1rem;
    border-top: 2px solid #333;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #666;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-brand h1 {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 5px;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        background: var(--white);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(10px, 10px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        background: #000000;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 99;
        padding: 0;
    }
    
    .nav-menu.active {
        max-height: 500px;
        border-bottom: 2px solid #1a1a1a;
    }
    
    .nav-menu li {
        padding: 0;
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #1a1a1a;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-card {
        border-radius: 8px;
    }
    
    .product-image img {
        height: 200px;
        object-fit: cover;
    }
    
    .product-info h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .product-brand {
        font-size: 0.8rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .size-btn {
        padding: 6px 12px;
        font-size: 0.85em;
    }
    
    .buttons-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .buttons-group button {
        padding: 10px;
        font-size: 0.9em;
    }
    
    .modal-content {
        width: 95%;
        max-width: 90vw;
        padding: 1.5rem;
        max-height: 90vh;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px;
        font-size: 16px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 1em;
    }
    
    .filter-select {
        padding: 8px;
        font-size: 0.9em;
    }
    
    .search-box input {
        padding: 10px;
        font-size: 1em;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .nav-brand h1 {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .logo {
        width: 35px;
        height: 35px;
    }
    
    .nav-menu {
        top: 60px;
    }
    
    .nav-menu a {
        padding: 0.8rem;
        font-size: 0.95em;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .product-image {
        border-radius: 6px;
        overflow: hidden;
    }
    
    .product-image img {
        height: 200px;
    }
    
    .product-info {
        padding: 0.8rem;
    }
    
    .product-info h3 {
        font-size: 0.95rem;
    }
    
    .product-brand {
        font-size: 0.75rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .size-selector {
        margin: 0.8rem 0;
        gap: 0.4rem;
    }
    
    .size-btn {
        padding: 5px 10px;
        font-size: 0.8em;
    }
    
    .buttons-group {
        gap: 0.4rem;
    }
    
    .buttons-group button {
        padding: 10px 8px;
        font-size: 0.85em;
        min-height: 44px;
    }
    
    .modal-content {
        width: 98%;
        max-width: 98vw;
        padding: 1.2rem;
        margin: 1rem auto;
        border-radius: 8px;
        max-height: 85vh;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .close-btn {
        font-size: 1.3em;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9em;
        margin-bottom: 0.4rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px;
        font-size: 16px !important;
        border-radius: 4px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 0.95em;
        min-height: 44px;
    }
    
    .cart-item {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .cart-total {
        padding: 0.8rem;
        margin: 0.8rem 0;
    }
    
    .cart-actions {
        gap: 0.5rem;
    }
    
    .cart-actions button {
        padding: 10px;
        font-size: 0.85em;
        min-height: 44px;
    }
    
    .filters-section {
        margin-bottom: 1.5rem;
        padding: 0.8rem 0;
    }
    
    .filters-container {
        gap: 0.8rem;
    }
    
    .search-box input {
        padding: 10px;
        font-size: 16px !important;
        min-height: 44px;
    }
    
    .filter-select {
        padding: 10px;
        font-size: 0.95em;
        min-height: 44px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    h3 {
        font-size: 1rem;
    }
    
    h4 {
        font-size: 0.95rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-section {
        width: 100%;
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .lang-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}

/* ===== Why Choose Us Section ===== */
.why-us {
    padding: 4rem 0;
    background-color: var(--bg-dark);
}

.why-us h2 {
    color: var(--white);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.feature h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature p {
    color: var(--text-light);
}

/* ===== Newsletter Section ===== */
.newsletter {
    padding: 4rem 0;
    background-color: var(--secondary-color);
    text-align: center;
}

.newsletter h2 {
    color: var(--white);
}

.newsletter p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #333;
    background: #0a0a0a;
    color: var(--white);
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.newsletter-form button {
    padding: 12px 30px;
}

/* ===== Enhanced Modal & Form Styles ===== */

/* Size Selection Styles */
.size-selector {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.size-btn {
    padding: 8px 16px;
    border: 2px solid rgba(204, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 0.9em;
}

.size-btn:hover {
    border-color: #cc0000;
    background: rgba(204, 0, 0, 0.2);
}

.size-btn.selected {
    background: #cc0000;
    border-color: #cc0000;
    color: #fff;
}

/* Button Groups */
.buttons-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.buttons-group button {
    flex: 1;
    padding: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 0.95em;
}

.btn-cart {
    background: rgba(204, 0, 0, 0.3);
    color: #fff;
    border: 2px solid #cc0000;
}

.btn-cart:hover {
    background: rgba(204, 0, 0, 0.5);
}

.btn-buy-now {
    background: #cc0000;
    color: #fff;
}

.btn-buy-now:hover {
    background: #990000;
    transform: translateY(-2px);
}

/* Modal Base Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

/* Ensure modals stack properly */
#sizeModal { z-index: 1000; }
#cartModal { z-index: 1001; }
#checkoutModal { z-index: 1002; }

.modal-content {
    background: #1a1a1a;
    border: 2px solid rgba(204, 0, 0, 0.5);
    border-radius: 8px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(204, 0, 0, 0.6);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(204, 0, 0, 0.3);
    padding-bottom: 1rem;
}

.modal-header h2 {
    color: #cc0000;
    font-size: 1.5em;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 2em;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #cc0000;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(204, 0, 0, 0.2);
    color: #fff;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input::placeholder,
.form-group select::placeholder {
    color: #666;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #cc0000;
    box-shadow: 0 0 15px rgba(204, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.9);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #cc0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #990000;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(204, 0, 0, 0.4);
}

/* Cart Styles */
.cart-icon {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    background: #cc0000;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    font-weight: bold;
    top: -8px;
    right: -8px;
    box-shadow: 0 2px 8px rgba(204, 0, 0, 0.5);
}

.cart-item {
    background: rgba(204, 0, 0, 0.1);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border-left: 4px solid #cc0000;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-item-info {
    flex: 1;
}

.cart-item h4 {
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-size: 1.1em;
}

.cart-item-details {
    color: #bbb;
    font-size: 0.85em;
    line-height: 1.6;
}

.remove-item-btn {
    background: #990000;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.85em;
}

.remove-item-btn:hover {
    background: #cc0000;
    transform: scale(1.05);
}

.cart-total {
    background: rgba(204, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 4px;
    text-align: right;
    margin: 1.5rem 0;
    border: 2px solid rgba(204, 0, 0, 0.4);
}

.cart-total h3 {
    color: #cc0000;
    margin: 0;
    font-size: 1.3em;
    text-transform: uppercase;
}

.cart-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.cart-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.9em;
}

.checkout-btn {
    background: #cc0000;
    color: white;
}

.checkout-btn:hover {
    background: #990000;
    transform: translateY(-2px);
}

.continue-btn {
    background: rgba(204, 0, 0, 0.3);
    color: white;
    border: 2px solid #cc0000;
}

.continue-btn:hover {
    background: rgba(204, 0, 0, 0.5);
}

.empty-cart {
    text-align: center;
    padding: 3rem 2rem;
    color: #bbb;
}

.empty-cart p {
    font-size: 1.1em;
    margin-bottom: 1.5rem;
}
