/* shop.css - Responsive Shop Page Styles */

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #e6fbff 0%, #f0f8ff 100%) !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Layout */
.shop-main {
    min-height: 100vh;
    padding-top: 2rem;
}

/* Section Styles */
.product-section {
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.section-title {
    text-align: center;
    margin: 0 0 3rem 0;
    font-size: 2.5rem;
    font-weight: 600;
    color: #222;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    justify-items: center;
}

/* Product Cards */
.product-card {
    background: #222;
    color: #fff;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    max-width: 380px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.product-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        0deg, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(0, 0, 0, 0.7) 70%, 
        rgba(0, 0, 0, 0.2) 100%
    );
    padding: 1.5rem;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.card-description {
    font-size: 1rem;
    color: #e0e0e0;
    line-height: 1.4;
}

/* Brand Grid */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    justify-items: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Brand Cards */
.brand-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    background: #fff;
}

.brand-logo {
    margin-bottom: 1.5rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo img {
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-card:hover .brand-logo img {
    transform: scale(1.05);
}

.brand-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #222;
}

.brand-description {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Security Section Specific Styles */
.security-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    margin: 3rem 0;
}

.security-section .section-title {
    color: #2c3e50;
}

.security-section .section-title::after {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

/* Responsive Design */

/* Large Desktop */
@media (min-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    
    .section-title {
        font-size: 3rem;
        margin-bottom: 4rem;
    }
    
    .product-grid {
        gap: 2.5rem;
    }
    
    .brand-grid {
        gap: 3rem;
    }
}

/* Desktop */
@media (max-width: 1199px) and (min-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .product-card {
        max-width: 350px;
    }
    
    .brand-card {
        max-width: 350px;
    }
}

/* Tablet */
@media (max-width: 991px) and (min-width: 768px) {
    .product-section {
        margin-bottom: 3rem;
        padding: 1.5rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .brand-card {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }
    
    .card-overlay {
        padding: 1.2rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-description {
        font-size: 0.9rem;
    }
}

/* Mobile Large */
@media (max-width: 767px) and (min-width: 576px) {
    .shop-main {
        padding-top: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .product-section {
        margin-bottom: 2.5rem;
        padding: 1rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .product-grid,
    .brand-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .product-card img {
        height: 200px;
    }
    
    .brand-card {
        max-width: 100%;
        padding: 1.5rem;
    }
    
    .brand-logo {
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .brand-logo img {
        max-width: 150px;
        max-height: 60px;
    }
    
    .brand-title {
        font-size: 1.2rem;
    }
    
    .brand-description {
        font-size: 0.9rem;
    }
}

/* Mobile Small */
@media (max-width: 575px) {
    .shop-main {
        padding-top: 0.5rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .product-section {
        margin-bottom: 2rem;
        padding: 0.5rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title::after {
        width: 60px;
        height: 2px;
    }
    
    .product-grid,
    .brand-grid {
        gap: 1rem;
    }
    
    .product-card img {
        height: 180px;
    }
    
    .card-overlay {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-description {
        font-size: 0.85rem;
    }
    
    .brand-card {
        padding: 1.2rem 1rem;
    }
    
    .brand-logo {
        height: 50px;
        margin-bottom: 0.8rem;
    }
    
    .brand-logo img {
        max-width: 120px;
        max-height: 50px;
    }
    
    .brand-title {
        font-size: 1.1rem;
    }
    
    .brand-description {
        font-size: 0.85rem;
    }
    
    .security-section {
        margin: 2rem 0;
        border-radius: 15px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .product-card img {
        height: 160px;
    }
    
    .card-overlay {
        padding: 0.8rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-description {
        font-size: 0.8rem;
    }
    
    .brand-card {
        padding: 1rem 0.8rem;
    }
    
    .brand-title {
        font-size: 1rem;
    }
    
    .brand-description {
        font-size: 0.8rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-card,
    .brand-card {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }
    
    .product-card:hover,
    .brand-card:hover {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .brand-card {
        background: #2c3e50;
        border-color: #34495e;
    }
    
    .brand-card:hover {
        background: #34495e;
    }
    
    .brand-title {
        color: #ecf0f1;
    }
    
    .brand-description {
        color: #bdc3c7;
    }
    
    .security-section {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    .security-section .section-title {
        color: #ecf0f1;
    }
}

/* Print Styles */
@media print {
    .shop-main {
        padding-top: 0;
    }
    
    .product-card,
    .brand-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .product-card:hover,
    .brand-card:hover {
        transform: none;
    }
    
    .section-title::after {
        display: none;
    }
}