/* ============================================
   style.css - Version Complète
   Site: حديقة داري - شتلات المورينجا وفاكهة التنين
   ============================================ */

/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
    --primary: #2d7d46;
    --primary-dark: #1f5a33;
    --primary-light: #4a9e64;
    --secondary: #f7931e;
    --secondary-dark: #d97d0e;
    --accent: #8b4513;
    --light: #f5f5f5;
    --light-gray: #e8ecef;
    --dark: #1a1a1a;
    --dark-gray: #333;
    --success: #28a745;
    --error: #dc3545;
    --info: #17a2b8;
    --warning: #ffc107;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ============================================
   HEADER
   ============================================ */
header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.8rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.header-left {
    flex: 0 0 auto;
}

.header-center {
    flex: 0 0 auto;
}

.header-right {
    flex: 0 0 auto;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.logo p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
}

.whatsapp-btn {
    background: #25d366;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-number {
    direction: ltr;
    display: inline-block;
    font-weight: 700;
}

.header-right ul {
    display: flex;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
}

.header-right ul li a {
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    font-size: 0.95rem;
}

.btn-buy {
    background: var(--secondary);
}

.btn-buy:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(247, 147, 30, 0.3);
}

.btn-contact {
    background: rgba(255,255,255,0.1);
    border: 2px solid white;
}

.btn-contact:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* ============================================
   HERO PRODUCTS (Images en premier)
   ============================================ */
.hero-products {
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-products-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.hero-product {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.hero-product:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.hero-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    background: #f0f0f0;
}

.hero-product-info {
    padding: 1.5rem;
    text-align: center;
}

.hero-product-info h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.hero-product-info p {
    color: #555;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.hero-prices {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.hero-prices span {
    background: var(--light);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-size: 0.9rem;
}

.hero-prices span:last-child {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, rgba(45,125,70,0.95), rgba(31,90,51,0.95));
    background-size: cover;
    background-position: center;
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ============================================
   SECTION TITLE
   ============================================ */
.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 10px auto;
    border-radius: 2px;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-card img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.product-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.product-card p {
    color: #666;
    margin-bottom: 1rem;
}

.product-options {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--light);
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.3rem;
}

.option-item span {
    font-weight: 500;
}

.delivery-badge {
    background: var(--success);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.delivery-badge-fixed {
    background: var(--secondary);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ============================================
   ORDER FORM
   ============================================ */
.order-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.order-form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45,125,70,0.1);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--primary-light);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

/* ============================================
   PRODUCT SELECTION
   ============================================ */
.product-selection {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-selection-item {
    background: var(--light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 2px solid #e0e0e0;
    transition: var(--transition);
}

.product-selection-item:hover {
    border-color: var(--primary-light);
}

.product-selection-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.product-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.moringa-item {
    border-color: var(--primary);
}

.dragon-item {
    border-color: var(--secondary);
}

/* ============================================
   RADIO BUTTONS POUR MORINGA
   ============================================ */
.moringa-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 0.5rem 0 1rem 0;
}

.radio-group {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    background: white;
    border-radius: var(--border-radius-sm);
    border: 2px solid #e0e0e0;
    transition: var(--transition);
    cursor: pointer;
}

.radio-group:hover {
    border-color: var(--primary-light);
    background: #f8f9fa;
}

.radio-group input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-left: 0.8rem;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.radio-group input[type="radio"]:checked + label {
    font-weight: 600;
}

.radio-group:has(input[type="radio"]:checked) {
    border-color: var(--primary);
    background: #e8f5e9;
    box-shadow: 0 0 0 3px rgba(45,125,70,0.1);
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    cursor: pointer;
    flex: 1;
    margin: 0;
}

.option-label {
    font-weight: 500;
    font-size: 1rem;
}

.option-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.radio-group .delivery-badge {
    margin-right: auto;
}

/* ============================================
   QUANTITY CONTROLS
   ============================================ */
.quantity-selector {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.quantity-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: white;
    border-radius: var(--border-radius-sm);
    border: 1px solid #eee;
}

.quantity-group label {
    flex: 1;
    min-width: 150px;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);

    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-btn.minus {
    background: var(--error);
}

.qty-btn.minus:hover {
    background: #c82333;
}

.quantity-control input[type="number"] {
    width: 60px;
    text-align: center;
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    -moz-appearance: textfield;
}

.quantity-control input[type="number"][readonly] {
    background: #f8f9fa;
    cursor: default;
}

.quantity-control input[type="number"]::-webkit-outer-spin-button,
.quantity-control input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Moringa quantity group - caché par défaut */
.moringa-qty-group {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: #e8f5e9;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--primary);
    margin-top: 0.5rem;
}

.moringa-qty-group label {
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

/* ============================================
   TOTAL PRICE
   ============================================ */
.total-price {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--border-radius);
    border: 2px solid var(--primary);
    text-align: center;
}

.total-price h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.total-price #total-amount {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.8rem;
}

.total-price #delivery-info {
    color: #555;
    font-size: 1.1rem;
    margin-top: 0.3rem;
}

.total-price #selected-products {
    color: #555;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

#total-with-delivery {
    display: none;
    color: var(--secondary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0.5rem;
    border-top: 2px dashed var(--secondary);
    padding-top: 0.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-submit {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(45,125,70,0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    border-right: 4px solid;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-right-color: var(--success);
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-right-color: var(--error);
}

.alert p {
    margin: 0;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: white;
    padding: 3rem 2rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.contact-item:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.contact-item i {
    color: var(--primary);
    font-size: 1.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--dark);
    color: white;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.footer-section p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.footer-section a {
    display: block;
    color: #ddd;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary);
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid #333;
    color: #888;
    font-size: 0.9rem;
}

/* ============================================
   CONFIRMATION PAGE
   ============================================ */
.confirmation-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 20px;
}

.confirmation-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    text-align: center;
}

.confirmation-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1rem;
}

.confirmation-title {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.confirmation-details {
    text-align: right;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--light);
    border-radius: var(--border-radius);
}

.confirmation-details h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--dark);
}

.detail-value {
    color: #555;
}

.total-amount {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

.order-status {
    display: inline-block;
    padding: 0.3rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 1rem;
}

.status-en_attente {
    background: #fff3cd;
    color: #856404;
}

.status-confirme {
    background: #d4edda;
    color: #155724;
}

.status-modifier {
    background: #cce5ff;
    color: #004085;
}

.status-supprimer {
    background: #f8d7da;
    color: #721c24;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-home {
    background: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-home:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45,125,70,0.3);
}

.btn-whatsapp-confirm {
    background: #25d366;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-whatsapp-confirm:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* ============================================
   ADMIN PAGES
   ============================================ */
.admin-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.admin-header {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.admin-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.admin-list {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 0.8rem;
    text-align: right;
    border-bottom: 1px solid #e0e0e0;
}

.admin-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.admin-table tr:hover {
    background: var(--light);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.btn-delete {
    background: var(--error);
    color: white;
    border: none;
    padding: 0.3rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-delete:hover {
    background: #c82333;
    transform: scale(1.05);
}

.btn-logout {
    background: var(--error);
    color: white;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.btn-logout:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-container {
    max-width: 400px;
    margin: 4rem auto;
    padding: 0 20px;
}

.login-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.login-card h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.login-card .form-group {
    text-align: right;
}

.login-btn {
    background: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
}

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .hero-products-container {
        gap: 1.5rem;
    }
    
    .hero-img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    /* Header */
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 0.5rem 15px;
    }
    
    .header-left, .header-center, .header-right {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .header-right ul {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .header-right ul li {
        width: 100%;
    }
    
    .header-right ul li a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.7rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .whatsapp-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Hero Products */
    .hero-products-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-img {
        height: 200px;
    }
    
    .hero-product-info h2 {
        font-size: 1.4rem;
    }
    
    .hero-prices {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-prices span {
        width: 100%;
        text-align: center;
    }
    
    /* Hero */
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    /* Order Form */
    .order-section {
        padding: 2rem 1rem;
    }
    
    .order-form {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .quantity-group {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .quantity-group label {
        min-width: auto;
        text-align: center;
    }
    
    .quantity-control {
        justify-content: center;
    }
    
    /* Radio buttons */
    .radio-group {
        flex-wrap: wrap;
    }
    
    .radio-group label {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .radio-group .delivery-badge {
        margin-right: 0;
        width: 100%;
        text-align: center;
    }
    
    .moringa-qty-group {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    /* Products */
    .products {
        padding: 2rem 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Contact */
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    /* Confirmation */
    .confirmation-card {
        padding: 1.5rem;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .confirmation-actions a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    /* Admin */
    .admin-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .admin-table {
        font-size: 0.85rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }
    
    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 15px;
    }
    
    .footer-section a {
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Header */
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .logo p {
        font-size: 0.75rem;
    }
    
    .whatsapp-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .whatsapp-number {
        font-size: 0.85rem;
    }
    
    .header-right ul li a {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    /* Hero Products */
    .hero-img {
        height: 160px;
    }
    
    .hero-product-info {
        padding: 1rem;
    }
    
    .hero-product-info h2 {
        font-size: 1.2rem;
    }
    
    .hero-prices span {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
    
    /* Hero */
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    /* Order Form */
    .order-form {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .qty-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .quantity-control input[type="number"] {
        width: 50px;
        padding: 0.3rem;
        font-size: 0.9rem;
    }
    
    .total-price h3 {
        font-size: 1.2rem;
    }
    
    .total-price #total-amount {
        font-size: 1.4rem;
    }
    
    #total-with-delivery {
        font-size: 1rem;
    }
    
    .btn-submit {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Confirmation */
    .confirmation-title {
        font-size: 1.5rem;
    }
    
    .confirmation-icon {
        font-size: 3rem;
    }
    
    .total-amount {
        font-size: 1.2rem;
    }
    
    /* Admin */
    .admin-header {
        padding: 1rem;
    }
    
    .admin-form,
    .admin-list {
        padding: 1rem;
    }
    
    .admin-table {
        font-size: 0.75rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.3rem;
    }
    
    .btn-delete {
        padding: 0.2rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
    display: none;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.hero-product {
    animation: fadeIn 0.8s ease-out;
}

.product-card {
    animation: fadeIn 0.6s ease-out;
}

.qty-btn:active {
    animation: pulse 0.2s ease;
}

.btn-submit:active {
    animation: pulse 0.2s ease;
}