/*
Theme Name: TealCOD
Theme URI: https://example.com/tealcod
Author: Antigravity
Description: A professional Arabic-first WooCommerce theme with Teal color scheme and COD focus.
Version: 1.0.0
Text Domain: tealcod
*/

:root {
    --primary-teal: #008080;
    --dark-teal: #006666;
    --light-teal: #e6f2f2;
    --accent-teal: #20b2aa;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --border-color: #dddddd;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    direction: rtl;
    text-align: right;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: var(--primary-teal);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-teal);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-teal);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-right: 2rem;
}

.main-nav ul li a {
    font-weight: 500;
    color: var(--text-dark);
}

.main-nav ul li a:hover {
    color: var(--primary-teal);
}

.hero {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--dark-teal) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-teal);
    margin-bottom: 1rem;
}

.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-teal);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.button:hover {
    background-color: var(--dark-teal);
    color: var(--white);
}

/* COD Form Styles */
.cod-form-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.cod-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-teal);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-teal);
    width: 20px;
    text-align: center;
}

.form-control {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: var(--white);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-teal);
}

.price-summary {
    background: var(--light-teal);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.summary-line.total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-teal);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-teal);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--dark-teal);
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .container {
        width: 95%;
    }

    header .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .main-nav ul li {
        margin: 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .product-title {
        font-size: 0.95rem;
        text-align: center;
    }

    .product-price {
        font-size: 1rem;
    }

    .cod-form-container {
        padding: 1.5rem 1rem;
    }

    .cod-form-title {
        font-size: 1.2rem;
    }

    .price-summary {
        padding: 1rem;
    }

    .summary-line {
        font-size: 0.85rem;
    }

    .summary-line.total {
        font-size: 1.1rem;
    }
}

footer {
    background: #222;
    color: #eee;
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
}