/* 
 * ============================================================================
 * FILE: style.css
 * TIME ZONE: GMT+0 (Burkina Faso)
 * CREATION DATE: 18-03-2026 12:24
 * MODIFICATION DATE: 18-03-2026 16:05
 * ============================================================================
 */

:root {
    --primary-color: #2e7d32; /* Forest Green */
    --secondary-color: #795548; /* Brown */
    --accent-color: #ff5722; /* Natural Orange */
    --background-color: #ffffff;
    --card-bg: #fdfdfd;
    --text-color: #333333;
    --text-muted: #666666;
    --cream: #fff8e1;
    --shadow: 0 4px 10px -1px rgba(0, 0, 0, 0.2), 0 2px 8px -1px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    scroll-behavior: smooth;
}

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

/* Header */
header {
    background: #fff;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-text span {
    color: var(--accent-color);
}

.logo-text span.faso {
    color: #ffc107; /* Burkina Yellow */
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--primary-color);
    cursor: pointer;
    position: relative;
    padding: 5px;
    transition: transform 0.2s;
}

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

#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--cream) 0%, #e8f5e9 100%);
    padding: 6rem 0;
    text-align: center;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--secondary-color);
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.2rem;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

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

.btn-primary:hover {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-whatsapp-header {
    background: #25d366;
    color: #fff;
}

.btn-whatsapp-header:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.btn-clear {
    background: #f5f5f5;
    color: #666;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
}

.btn-clear:hover {
    background: #eeeeee;
    color: #ff5252;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Products */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

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

.product-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    position: relative;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 420px; /* Fixed height for uniformity */
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.stock-limited {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 87, 34, 0.9);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.card-actions {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.card-actions .btn {
    flex: 1;
    justify-content: center;
}

/* Modal / Cart Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: flex-end;
    z-index: 2000;
}

.cart-modal {
    width: 400px;
    max-width: 90%;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease-out;
}

/* Confirmation Modal */
#confirm-overlay {
    justify-content: center;
    align-items: center;
}

.confirm-modal {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    width: 400px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.confirm-modal h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.confirm-modal p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.confirm-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.cart-items {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 1rem;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cart-item-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.remove-item {
    background: none;
    border: none;
    color: #ff5252;
    cursor: pointer;
    font-size: 1.1rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background: #fdfdfd;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.empty-msg {
    text-align: center;
    color: var(--text-muted);
    margin-top: 3rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 50px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.3);
    z-index: 100;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.2);
}

.whatsapp-float.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Sections Style */
.how-to {
    background: var(--cream);
    padding: 5rem 0;
    border-radius: 30px;
    margin: 5rem auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.step-num {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.info-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 5rem;
}

.info-block {
    padding: 2rem;
    background: #f5f5f5;
    border-radius: var(--border-radius);
}

.info-block h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.testimonials {
    text-align: center;
    margin-bottom: 5rem;
}

.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.testimonial {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 450px;
    font-style: italic;
}

.testimonial span {
    display: block;
    margin-top: 1rem;
    font-weight: 700;
    font-style: normal;
    color: var(--primary-color);
}

/* Footer */
footer {
    background: #263238;
    color: #fff;
    padding: 5rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo .logo-text {
    color: #fff;
    font-size: 2rem;
}

.footer-logo p {
    color: #b0bec5;
    margin-top: 0.5rem;
}

.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: #fff;
}

.footer-contact p {
    color: #b0bec5;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-contact i {
    color: var(--accent-color);
    width: 20px;
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #37474f;
    color: #78909c;
    font-size: 0.9rem;
}

/* Sparkle Particles */
.particle {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 5000;
    transition: all 1s ease-out;
    opacity: 1;
}

@keyframes fly-away {
    0% { transform: scale(1) translate(0, 0); opacity: 1; }
    100% { transform: scale(0) translate(var(--tx), var(--ty)); opacity: 0; }
}

/* Validation Checkmark */
.validation-check {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #4caf50;
    font-size: 5rem;
    z-index: 5001;
    pointer-events: none;
    opacity: 0;
    animation: pop-check 1s forwards;
    text-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@keyframes pop-check {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    30% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 115px;
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.2);
    z-index: 100;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.2);
}

#back-to-top:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .info-blocks {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
