/* ==========================================================================
   1. GLOBAL RESETS & BASE STYLES
   ========================================================================== */
   * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    outline: none;
}

/* ==========================================================================
   2. HEADER & MAIN NAVIGATION
   ========================================================================== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
}

.search-container {
    display: flex;
    align-items: center;
    flex-grow: 1;
    max-width: 600px;
    margin: 0 30px;
    padding: 8px 16px;
    background-color: #f5f5f8;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.search-icon {
    width: 18px;
    height: 18px;
    stroke: #718096;
    margin-right: 10px;
    flex-shrink: 0;
}

.search-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #2d3748;
}

.search-input::placeholder {
    color: #a0aec0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2d3748;
    font-size: 14px;
    font-weight: 500;
}

.nav-icon {
    width: 20px;
    height: 20px;
    stroke: #2d3748;
    flex-shrink: 0;
}

.nav-item:hover {
    color: #000000;
}

.nav-item:hover .nav-icon {
    stroke: #000000;
}

/* ==========================================================================
   3. SUB-NAVBAR CATEGORIES
   ========================================================================== */
.sub-navbar {
    background-color: #121212;
    padding: 0 24px;
}

.sub-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
    height: 48px;
}

.sub-nav-link {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s ease;
}

.sub-nav-link:hover {
    opacity: 0.8;
}

.sub-nav-link.highlight {
    color: #e53e3e;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.dropdown-arrow {
    font-size: 10px;
    color: #ffffff;
}

/* ==========================================================================
   4. HERO BANNER
   ========================================================================== */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 60px 20px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 750px;
}

.hero-tagline {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ff4d4d;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.5;
    color: #e2e8f0;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-primary {
    background-color: #e53e3e;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #c53030;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #ffffff;
    color: #121212;
}

.btn-secondary:hover {
    background-color: #f7fafc;
    transform: translateY(-2px);
}

/* ==========================================================================
   5. PRODUCT CATALOG GRID
   ========================================================================== */
.products-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.product-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #ffffff;
    display: flex;
    align-items: center;  
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.product-category {
    font-size: 0.8rem;
    color: #dd6f09;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-price {
    margin-top: auto;
    padding-top: 8px;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding: 8px 0;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1ea71e;
}

.stock-count {
    font-size: 12px;
    color: #718096;
}

.add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin: 10px 0;
    
    /* Green Background & White Text */
    background-color: #16a34a; /* Vibrant Green */
    color: #ffffff;
    
    /* Rounded Shape & Spacing */
    padding: 10px 24px;
    border-radius: 50px; /* High value creates fully rounded sides */
    border: none;
    
    /* Typography & Effects */
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

/* Interactive Hover Effect */
.add-to-cart-btn:hover {
    background-color: #15803d; /* Darker Green on hover */
    transform: translateY(-2px); }/* Slight lift */

/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================= */
.purchase-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.purchase-layout {
    display: grid;
    grid-template-columns: minmax(320px, 40%) minmax(420px, 1fr);
    gap: 36px;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.purchase-image-panel {
    background: #f9fafb;
    border-radius: 12px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.purchase-image {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    display: block;
}

.purchase-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.back-link {
    color: #dd6f09;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.purchase-category {
    color: #dd6f09;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.purchase-title {
    color: #1a202c;
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin: 0;
}

.purchase-description {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.purchase-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.purchase-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.purchase-form {
    margin: 0;
}

.purchase-button {
    background-color: #16a34a;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.purchase-button:hover {
    background-color: #15803d;
    transform: translateY(-2px);
}

.purchase-confirmation {
    color: #15803d;
    font-weight: 700;
    margin: 0;
}

/* ==========================================================================
   6. FOOTER PROMO BANNER
   ========================================================================== */
.footer {
    width: 100%;
}

.footer-top-bar {
    background-color: #121212;
    padding: 14px 24px;
    border-bottom: 1px solid #2d3748;
}

.footer-top-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 16px;
}

.delivery-promo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.delivery-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-limited {
    background-color: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-top-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.footer-top-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.footer-top-link:hover {
    opacity: 0.8;
}

.footer-icon {
    width: 18px;
    height: 18px;
    stroke: #ffffff;
    flex-shrink: 0;
}

/* Dark Minimal Footer Bar */
.site-footer {
    background-color: #121212;
    border-top: 1px solid #2d3748;
    width: 100%;
}

.footer-promo-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    font-size: 14px;
}

.bold-promo {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-promo {
    background-color: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.promo-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.promo-link:hover {
    opacity: 0.8;
}