/* styles.css - Main stylesheet for Chronox watch e-commerce site */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f8f8;
}

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

ul {
    list-style: none;
}

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

.section-title {
    text-align: center;
    font-size: 24px;
    margin: 40px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: #333;
}


/* Hero Banner */
.hero-banner {
    position: relative;
    height: 600px;
    background-color: #d8c198;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 2;
}

.hero-text h1 {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-image {
    width: 100%;
    height: 100%;
}

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

/* Product Grid */
.product-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
}

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

.trending-grid {
    grid-template-columns: repeat(3, 1fr);
}

.product-card {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.product-image {
    height: 230px;
    overflow: hidden;
    position: relative;
}

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

.product-details {
    padding: 15px;
    text-align: center;
    background-color: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.rating {
    margin-bottom: 10px;
}

.stars {
    color: #f8cc00;
    font-size: 14px;
}

.product-price {
    font-weight: 600;
}

.current-price {
    color: #333;
    font-size: 18px;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
    font-size: 14px;
}

/* Feature Banner */
.feature-banner {
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin: 40px 0;
}

.full-width-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Explore More */
.explore-more {
    text-align: center;
    margin: 30px 0;
}

/* Footer */

/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .product-section {
        max-width: 1400px;
        padding: 50px 20px;
    }
    
    .hero-text h1 {
        font-size: 42px;
    }
    
    .section-title {
        font-size: 28px;
        margin: 50px 0;
    }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .product-section {
        max-width: 1000px;
        padding: 40px 20px;
    }
    
    .product-grid {
        gap: 25px;
    }
    
    .hero-text h1 {
        font-size: 34px;
    }
}

/* Tablet Landscape (768px to 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .hero-banner {
        height: 500px;
    }
    
    .hero-text {
        left: 5%;
    }
    
    .hero-text h1 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .product-section {
        padding: 30px 15px;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 22px;
        margin: 30px 0;
    }
    
    .product-image {
        height: 200px;
    }
    
    .feature-banner {
        height: 250px;
        margin: 30px 0;
    }
}

/* Tablet Portrait (576px to 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .hero-banner {
        height: 400px;
    }
    
    .hero-text {
        left: 5%;
        right: 5%;
    }
    
    .hero-text h1 {
        font-size: 24px;
        line-height: 1.4;
    }
    
    .product-section {
        padding: 25px 15px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 20px;
        margin: 25px 0;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-details {
        padding: 12px;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .current-price {
        font-size: 16px;
    }
    
    .feature-banner {
        height: 200px;
        margin: 25px 0;
    }
    
    .explore-more {
        margin: 20px 0;
    }
}

/* Mobile Large (480px to 575px) */
@media (max-width: 575px) and (min-width: 480px) {
    .hero-banner {
        height: 350px;
    }
    
    .hero-text {
        left: 5%;
        right: 5%;
    }
    
    .hero-text h1 {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 15px;
    }
    
    .product-section {
        padding: 20px 10px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 18px;
        margin: 20px 0;
        letter-spacing: 0.5px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-details {
        padding: 10px;
    }
    
    .product-name {
        font-size: 13px;
        margin-bottom: 3px;
    }
    
    .stars {
        font-size: 12px;
    }
    
    .current-price {
        font-size: 15px;
    }
    
    .original-price {
        font-size: 12px;
    }
    
    .feature-banner {
        height: 180px;
        margin: 20px 0;
    }
    
    .explore-more {
        margin: 15px 0;
    }
}

/* Mobile Small (320px to 479px) */
@media (max-width: 479px) {
    .hero-banner {
        height: 300px;
    }
    
    .hero-text {
        left: 3%;
        right: 3%;
    }
    
    .hero-text h1 {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 10px;
    }
    
    .product-section {
        padding: 15px 8px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .trending-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 16px;
        margin: 15px 0;
        letter-spacing: 0.3px;
    }
    
    .product-card {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-details {
        padding: 12px;
    }
    
    .product-name {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .stars {
        font-size: 13px;
    }
    
    .current-price {
        font-size: 16px;
    }
    
    .original-price {
        font-size: 13px;
    }
    
    .feature-banner {
        height: 150px;
        margin: 15px 0;
    }
    
    .explore-more {
        margin: 12px 0;
    }
}

/* Extra Small Mobile (below 320px) */
@media (max-width: 319px) {
    .hero-banner {
        height: 250px;
    }
    
    .hero-text h1 {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .product-section {
        padding: 10px 5px;
    }
    
    .section-title {
        font-size: 14px;
        margin: 10px 0;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-details {
        padding: 8px;
    }
    
    .product-name {
        font-size: 12px;
    }
    
    .current-price {
        font-size: 14px;
    }
    
    .feature-banner {
        height: 120px;
        margin: 10px 0;
    }
}

/* Landscape orientation adjustments for mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-banner {
        height: 250px;
    }
    
    .hero-text h1 {
        font-size: 18px;
    }
    
    .section-title {
        margin: 15px 0;
    }
    
    .product-section {
        padding: 15px;
    }
    
    .feature-banner {
        height: 150px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-image img,
    .hero-image img,
    .full-width-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .hero-banner,
    .feature-banner {
        height: auto;
        page-break-inside: avoid;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-card {
        break-inside: avoid;
    }
}
