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

:root {
    --primary-bg: #FFFFFF;
    --primary-text: #0F0F0F;
    --brand-blue: #6688B1;
    --neutral: #E6E8EC;
    --hover-blue: #5A7AA3;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    color: var(--primary-text);
    background-color: var(--primary-bg);
    line-height: 1.6;
    font-weight: 400;
}

/* Typography */
.flood-font {
    font-family: 'Flood', sans-serif;
    font-weight: normal;
    letter-spacing: -0.5px;
    line-height: 1;
}

h1, h2, h3 {
    font-weight: 500;
}

/* Layout & Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-bg);
    z-index: 100;
    border-bottom: 1px solid var(--neutral);
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.logo-text {
    font-family: 'Flood', sans-serif;
    font-size: 24px;
    color: var(--brand-blue);
    line-height: 1;
}

.logo-underline {
    height: 2px;
    width: 100%;
    background-color: var(--brand-blue);
    margin-top: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--primary-text);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

nav a:hover {
    color: var(--brand-blue);
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--brand-blue);
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 72px;
    margin-bottom: 20px;
    color: var(--primary-text);
}

.hero-subtext {
    font-size: 18px;
    color: var(--primary-text);
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--brand-blue);
    color: white;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}

.btn:hover {
    background-color: var(--hover-blue);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--neutral);
    color: var(--primary-text);
}

.btn-secondary:hover {
    background-color: var(--neutral);
}

/* Featured Section */
.featured {
    padding: 80px 0;
}

.section-title {
    font-size: 32px;
    margin-bottom: 50px;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.product-card {
    text-decoration: none;
    color: var(--primary-text);
    transition: var(--transition);
    display: block;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: var(--neutral);
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-img.active {
    opacity: 1;
}

.image-switcher {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--brand-blue);
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.product-card:hover .image-switcher {
    opacity: 1;
}

.product-title {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 500;
}

.product-category {
    font-size: 14px;
    color: var(--brand-blue);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-price {
    font-size: 16px;
    font-weight: 500;
}

/* About Preview */
.about-preview {
    padding: 80px 0;
    background-color: var(--primary-bg);
    border-top: 1px solid var(--neutral);
    border-bottom: 1px solid var(--neutral);
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-quote {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--brand-blue);
}

.about-text {
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Footer */
footer {
    padding: 60px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    text-decoration: none;
    color: var(--primary-text);
    transition: var(--transition);
    font-weight: 300;
}

.footer-section a:hover {
    color: var(--brand-blue);
}

.social-link {
    color: var(--brand-blue) !important;
    font-weight: 500 !important;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--neutral);
    font-size: 14px;
    color: #888;
    font-weight: 300;
}

/* Product Page Styles */
.product-page {
    padding: 140px 0 80px;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.product-images {
    position: sticky;
    top: 120px;
}

.main-image {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: var(--neutral);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

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

.thumbnail-images {
    display: flex;
    gap: 15px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail.active {
    border-color: var(--brand-blue);
}

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

.product-info h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.product-description {
    margin: 20px 0;
    line-height: 1.8;
    color: #555;
}

.size-selector {
    margin: 30px 0;
}

.size-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.size-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--neutral);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.size-btn.active {
    border-color: var(--brand-blue);
    background-color: var(--brand-blue);
    color: white;
}

.size-btn:hover:not(.active) {
    border-color: var(--brand-blue);
}

.quantity-selector {
    margin: 30px 0;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--neutral);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.quantity-btn:hover {
    border-color: var(--brand-blue);
}

#quantity {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 2px solid var(--neutral);
    border-radius: 4px;
    font-size: 16px;
}

.btn-add-to-cart {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    margin: 20px 0;
}

.product-details {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--neutral);
}

.product-details ul {
    list-style: none;
    margin-top: 15px;
}

.product-details li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.product-details li:before {
    content: "•";
    color: var(--brand-blue);
    position: absolute;
    left: 0;
}

/* Shop Page Styles */
.shop-page {
    padding: 140px 0 80px;
}

.shop-header {
    text-align: center;
    margin-bottom: 60px;
}

.shop-header h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.shop-subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
}

.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.category-btn {
    padding: 10px 20px;
    border: 2px solid var(--neutral);
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.category-btn.active {
    border-color: var(--brand-blue);
    background-color: var(--brand-blue);
    color: white;
}

.category-btn:hover:not(.active) {
    border-color: var(--brand-blue);
}

/* About Page Styles */
.about-page {
    padding: 140px 0 80px;
}

.about-hero {
    text-align: center;
    margin-bottom: 60px;
}

.about-hero h1 {
    font-size: 48px;
}

.about-section {
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-section p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

/* Contact Page Styles */
.contact-page {
    padding: 140px 0 80px;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-header h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.contact-subtitle {
    font-size: 18px;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--neutral);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
}

.contact-method {
    margin-bottom: 30px;
}

.contact-method h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--brand-blue);
}

/* Cart Styles */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 20px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.cart-overlay.active {
    display: block;
}

.cart-header {
    padding: 25px;
    border-bottom: 1px solid var(--neutral);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 28px;
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-cart:hover {
    color: var(--primary-text);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--neutral);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
}

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

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.cart-item-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-change {
    background: var(--neutral);
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.quantity-change:hover {
    background: #ddd;
}

.cart-item-quantity span {
    min-width: 20px;
    text-align: center;
}

.remove-item {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}

.cart-summary {
    padding: 25px;
    border-top: 1px solid var(--neutral);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.btn-checkout {
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 992px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .shop-header h1 {
        font-size: 36px;
    }
    
    .about-hero h1 {
        font-size: 36px;
    }
    
    .contact-header h1 {
        font-size: 36px;
    }
    
    .hero h1 {
        font-size: 48px;
    }
    
    nav ul {
        gap: 15px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-subtext {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .about-quote {
        font-size: 28px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        gap: 20px;
    }
    
    .image-switcher {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .size-options {
        flex-wrap: wrap;
    }
    
    .size-btn {
        width: 45px;
        height: 45px;
    }
    
    .category-filter {
        gap: 10px;
    }
    
    .category-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}
/* ===============================
   RESPONSIVE OPTIMISATION
================================ */

/* Tablet */
@media (max-width: 992px) {

    .product-detail {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-images {
        position: relative;
        top: 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        padding: 160px 20px 80px;
    }

    .hero h1 {
        font-size: 56px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

}


/* Large Phones */
@media (max-width: 768px) {

    header {
        padding: 15px 0;
    }

    .container {
        padding: 0 16px;
    }

    .header-content {
        flex-direction: column;
        gap: 12px;
    }

    nav ul {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 140px 20px 60px;
    }

    .hero h1 {
        font-size: 42px;
        line-height: 1.1;
    }

    .hero-subtext {
        font-size: 16px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .product-title {
        font-size: 16px;
    }

    .product-price {
        font-size: 15px;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .btn {
        width: 100%;
    }

    .size-options {
        flex-wrap: wrap;
        gap: 12px;
    }

    .size-btn {
        width: 50px;
        height: 50px;
        font-size: 15px;
    }

}


/* Small Phones */
@media (max-width: 576px) {

    .hero {
        padding: 130px 16px 50px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-subtext {
        font-size: 15px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 35px;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .product-image {
        border-radius: 6px;
    }

    .product-title {
        font-size: 15px;
    }

    .product-category {
        font-size: 12px;
    }

    .about-quote {
        font-size: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .thumbnail-images {
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .thumbnail {
        min-width: 70px;
        min-height: 70px;
    }

}


/* Extra Small Phones */
@media (max-width: 420px) {

    .hero h1 {
        font-size: 30px;
    }

    nav ul {
        gap: 14px;
    }

    nav a {
        font-size: 14px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .btn {
        padding: 16px;
        font-size: 16px;
    }

}