/*
Theme Name: Axxo Shopify COD Theme
Author: Abdelhakim
Description: High-converting, lightweight Shopify-style theme for local COD.
Version: 2.1
Text Domain: axxo-theme
*/

/* --- Global Reset & Fonts --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #121212;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* --- Containers --- */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Moving Announcement Bar --- */
.promo-bar {
    background: #000000;
    color: #ffffff;
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    direction: ltr;
}
.promo-marquee {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
}
@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* --- Shopify Clean Header --- */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 15px 0;
    position: sticky; top: 0; z-index: 999;
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-text {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: #43a047; /* Clean green accent */
}

/* --- Responsive Hero Banner --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 60vh;
    background: #121212;
    overflow: hidden;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
}
.hero-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    width: 90%;
}
.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}
.btn-shopify-white {
    display: inline-block;
    padding: 14px 40px;
    border: 2px solid #ffffff;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    transition: 0.2s ease;
}
.btn-shopify-white:hover {
    background: #ffffff;
    color: #121212;
}

/* --- Product Sections & Grid --- */
.section-padding { padding: 50px 0; }
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}
.section-main-title { font-size: 28px; font-weight: 700; }
.view-all-link { color: #707070; text-decoration: underline; font-size: 15px; }

.shopify-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}
.product-card-item {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    height: 100%; /* Forces cards to stay perfectly level */
}

/* Uniform image container setting a 4:5 vertical box ratio */
.card-img-container {
    position: relative;
    width: 100%;
    padding-bottom: 125%; 
    overflow: hidden;
    background: #f7f7f7;
    border-radius: 8px;
}

/* Forces mismatched product pictures to automatically center and fit layout bounds */
.card-img-container img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}
.product-card-item:hover .card-img-container img {
    transform: scale(1.03); /* Subtle premium hover zoom */
}

.promo-badge-tag {
    position: absolute;
    top: 10px; left: 10px;
    background: #ffffff;
    color: #121212;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid #e5e5e5;
    z-index: 2;
}

/* Restricts titles to exactly two lines to preserve uniform layout spacing */
.product-card-title {
    font-size: 14px;
    font-weight: 400;
    margin: 12px 0 6px 0;
    line-height: 1.4;
    color: #121212;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px; 
}
.price-box-flex {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: auto; /* Pushes product data down evenly */
}
.price-current-tag { font-size: 18px; font-weight: 700; color: #2e7d32; }
.price-old-tag { font-size: 14px; color: #707070; text-decoration: line-through; }

/* --- Bio Section --- */
.bio-bg { background: #f7f7f7; padding: 60px 15px; text-align: center; }
.bio-max { max-width: 700px; margin: 0 auto; }
.bio-max h3 { font-size: 24px; margin-bottom: 15px; }
.bio-max p { color: #707070; line-height: 1.6; font-size: 16px; }

/* --- Testimonials --- */
.reviews-grid-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}
.review-box {
    border: 1px solid #e5e5e5;
    padding: 25px;
    border-radius: 8px;
    background: #ffffff;
}
.review-stars { color: #ffb703; margin-bottom: 10px; }
.review-text { font-style: italic; color: #444; font-size: 15px; line-height: 1.5; }
.review-author { margin-top: 12px; font-size: 14px; font-weight: 600; }

/* --- Clean Footer --- */
.main-footer {
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    padding: 40px 0;
    margin-top: 40px;
}
.footer-grid-split {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}
.footer-col h4 { font-size: 16px; margin-bottom: 15px; text-transform: uppercase; }
.footer-col a { display: block; margin-bottom: 10px; color: #666; font-size: 14px; }
.social-links-flex a { margin-right: 15px; color: #000; font-weight: bold; }
.footer-bottom-bar { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; color: #707070; font-size: 14px; }

/* --- MOBILE RESPONSIVE GRAPHICS --- */
@media (max-width: 768px) {
    .hero-section { height: 45vh; }
    .hero-content h2 { font-size: 2.2rem; }
    .shopify-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Locks exactly 2 columns on phones */
        gap: 12px;
    }
    .reviews-grid-two { grid-template-columns: 1fr; }
    .product-card-title { 
        font-size: 13px; 
        height: 36px; 
    }
    .price-current-tag { font-size: 16px; }
}
/* ==========================================================
   INTERACTIVE HEADER ICONS & OVERLAYS STYLE
   ========================================================== */

/* 1. Active Drop-down Search Bar Overlay */
.search-overlay-bar {
    position: fixed;
    top: -100px; /* Hidden offscreen by default */
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px 0;
    z-index: 9999;
    transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-overlay-bar.open {
    top: 0; /* Drops down smoothly when clicked */
}
.search-form-flex {
    display: flex;
    align-items: center;
    gap: 15px;
}
.search-input-field {
    flex: 1;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    outline: none;
}
.search-input-field:focus {
    border-color: #121212;
}
.search-submit-btn {
    padding: 12px 25px;
    background: #121212;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}
.close-search {
    font-size: 20px;
    color: #707070;
    cursor: pointer;
    padding: 5px;
}

/* 2. Active Slide-out Mobile Sidebar Menu */
.mobile-side-menu {
    position: fixed;
    top: 0;
    left: -300px; /* Hidden offscreen to the left */
    width: 280px;
    height: 100%;
    background: #ffffff;
    box-shadow: 4px 0 12px rgba(0,0,0,0.1);
    z-index: 10000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}
.mobile-side-menu.open {
    left: 0; /* Slides open smoothly */
}
.menu-side-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}
.menu-side-header h3 { font-size: 18px; font-weight: 700; }
.close-menu-panel { font-size: 20px; cursor: pointer; color: #707070; }

.menu-side-body {
    padding: 20px;
    overflow-y: auto;
}
.menu-side-body ul, .fallback-mobile-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.menu-side-body ul li, .fallback-mobile-links li {
    margin-bottom: 18px;
}
.menu-side-body ul li a, .fallback-mobile-links li a {
    font-size: 16px;
    font-weight: 500;
    color: #121212;
    display: block;
    padding: 5px 0;
}

/* Background overlay when mobile sidebar opens */
.menu-panel-overlay-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
    display: none;
}
.menu-panel-overlay-bg.open {
    display: block;
}