/* public/assets/css/style.css */
:root {
    --primary-color: #0a2540;
    --primary-hover: #06182c;
    --secondary-color: #0046be;
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #888888;
    --bg-color: #ffffff;
    --bg-light: #f7f7f7;
    --border-color: #dddddd;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --container-width: 1280px;
    --header-height: 120px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 25px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px !important;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.2);
}

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

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

/* Header */
.main-header {
    background-color: var(--primary-color);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    padding: 20px 0;
}

.header-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.search-bar {
    flex: 1;
    max-width: 700px;
    position: relative;
}

.search-bar form {
    display: flex;
    background-color: white;
    border-radius: 30px;
    overflow: hidden;
    padding: 5px;
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    outline: none;
}

.search-bar button {
    background-color: white;
    border: none;
    padding: 0 20px;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
}

.header-actions {
    display: flex;
    gap: 25px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.action-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.cart-icon {
    position: relative;
}

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

.main-nav {
    background-color: var(--primary-hover);
    padding: 10px 0;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.main-nav a:hover {
    color: white;
}

/* Hero Section */
.hero {
    padding: 40px 0;
}

.hero-banner {
    background-color: #f1f6ff;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    overflow: hidden;
    min-height: 450px;
}

.hero-content {
    padding: 60px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.hero-image img {
    height: 100%;
    object-fit: cover;
}

/* Product Grid & Rails */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
}

.section-title h2 {
    font-size: 1.8rem;
}

.view-all {
    color: var(--text-light);
    font-weight: 600;
    text-decoration: underline;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f9f9f9;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

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

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1rem;
    margin: 5px 0 15px;
    height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #0f172a;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    cursor: pointer;
    margin-top: auto;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 37, 64, 0.3);
}

/* Footer */
.main-footer {
    background-color: #f7f7f7;
    padding: 80px 0 40px;
    margin-top: 100px;
    border-top: 1px solid #eee;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
}

.footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-legal a {
    margin-left: 20px;
}

/* Responsive & Mobile Optimizations */
@media (max-width: 992px) {
    .hero-banner { grid-template-columns: 1fr; text-align: center; }
    .hero-content { padding: 40px 20px; }
    .hero-content h1 { font-size: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-top .container { 
        flex-direction: row; 
        flex-wrap: wrap;
        gap: 15px; 
        padding: 10px 15px;
    }
    
    .logo { order: 1; }
    .header-actions { order: 2; }
    .search-bar { order: 3; width: 100%; max-width: 100%; margin-top: 10px; }
    
    .logo-text { font-size: 1.5rem; }
    
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card { padding: 8px; }
    .product-info h3 { font-size: 0.85rem; height: 2em; }
    .product-price { font-size: 1rem; }
    .add-to-cart-btn { font-size: 0.8rem; padding: 6px; }

    .pdp-grid { grid-template-columns: 1fr !important; gap: 20px; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .social-links { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 15px; }
    .footer-legal a { margin: 0 10px; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.8rem; }
    .product-grid { grid-template-columns: 1fr; }
    .logo-text { font-size: 1.2rem; }
}
/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.show-mobile { display: none !important; }

@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    .hide-mobile { display: none !important; }
    .show-mobile { display: block !important; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav ul li a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

.add-to-cart-large {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.add-to-cart-large:hover {
    background-color: #a10000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(204, 0, 0, 0.4) !important;
}

/* Image Fallbacks */
.product-image img[src=""], 
.product-image img:not([src]) {
    content: url('https://via.placeholder.com/400x400?text=Statelite+Product');
}
