/* =====================================================
   BoxedToGo - Main Stylesheet
   ===================================================== */

/* CSS Variables - Colors match logo */
:root {
    --primary: #00a2e8;
    --primary-dark: #0082ba;
    --primary-light: #33b5ed;
    
    --accent: #f7931e;
    --accent-dark: #d97b0d;
    
    --danger: #dc2626;
    --success: #059669;
    
    --dark: #0f172a;
    --gray-800: #334155;
    --gray-600: #64748b;
    --gray-400: #cbd5e1;
    --gray-200: #f1f5f9;
    --gray-100: #f8fafc;
    --white: #ffffff;
    
    --font-display: 'Outfit', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--dark);
}

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

img {
    max-width: 100%;
    height: auto;
}

/* ===== Promo Banner ===== */
.promo-banner {
    background: linear-gradient(90deg, var(--dark), #1e293b);
    color: var(--white);
    text-align: center;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
}

.promo-banner i {
    color: var(--accent);
    margin-right: 0.5rem;
}

/* ===== Header ===== */
.header-main {
    background: var(--white);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.nav-main {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-800);
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.header-icons {
    display: flex;
    gap: 1rem;
}

.header-icon {
    font-size: 1.25rem;
    color: var(--gray-800);
    transition: color 0.2s;
}

.header-icon:hover {
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.hero-trust {
    margin-top: 2rem;
}

.hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-right: 1.5rem;
}

.hero-trust-item i {
    color: var(--success);
}

/* ===== Buttons ===== */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background: var(--white);
    border: 2px solid var(--gray-400);
    color: var(--dark);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--gray-100);
    border-color: var(--gray-600);
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--gray-600);
}

/* ===== Product Cards ===== */
.product-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--gray-100);
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 3rem;
    color: var(--gray-400);
}

.product-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.badge {
    padding: 0.25rem 0.625rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-sale {
    background: var(--danger);
    color: var(--white);
}

.badge-new {
    background: var(--primary);
    color: var(--white);
}

.badge-bestseller {
    background: var(--accent);
    color: var(--white);
}

.low-stock-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(220, 38, 38, 0.9);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem;
    text-align: center;
}

.product-card-content {
    padding: 1rem;
}

.product-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-current {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
}

.price-original {
    font-size: 0.875rem;
    color: var(--gray-600);
    text-decoration: line-through;
}

.out-of-stock {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--danger);
    font-weight: 600;
}

.btn-quick-add {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

.product-card:hover .btn-quick-add {
    opacity: 1;
    transform: translateY(0);
}

.btn-quick-add:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer h5 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    font-size: 0.875rem;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .hero {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    .promo-banner {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
