@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #2c3e50;
    --secondary-color: #d4a373;
    --accent-color: #e2a0ad; /* soft pink */
    --bg-color: #faf9f8;
    --surface-color: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #eaeaea;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Header & Nav */
header {
    background-color: var(--surface-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
    font-size: 1.2rem;
}

.nav-icons a {
    color: var(--primary-color);
    transition: var(--transition);
}

.nav-icons a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    background-image: url('image/hero_banner.png');
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.4) 100%);
}

.hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 650px;
    color: var(--primary-color);
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(226, 160, 173, 0.4);
    color: #fff;
}

/* Collections / Products */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.product-card {
    background: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.product-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

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

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

.badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--accent-color);
    color: white;
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 20px;
    font-weight: 500;
    z-index: 2;
    letter-spacing: 1px;
    box-shadow: var(--shadow-sm);
}

.product-info {
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    display: block;
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.product-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: auto;
}

.product-price .current {
    color: var(--accent-color);
}

.old-price {
    text-decoration: line-through;
    color: #bbb;
    font-size: 0.95rem;
    margin-right: 10px;
}

.add-to-cart {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    text-transform: uppercase;
    border: none;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1.5rem;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(15px);
}

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

.add-to-cart:hover {
    background-color: var(--accent-color);
}

/* Features Section */
.features {
    background-color: var(--surface-color);
    padding: 5rem 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

.feature-icon {
    font-size: 2.8rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    transform: translateY(-5px);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.8);
    padding: 5rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    display: inline-block;
    font-weight: 700;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
}

.footer-col a:hover {
    color: var(--accent-color);
    padding-left: 8px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.95rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* In a real app, you'd add a hamburger menu */
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero {
        height: 70vh;
    }
    
    .section {
        padding: 4rem 1rem;
    }
}

/* =========================================
   NEW MODERN LAYOUTS (DETAIL & AUTH)
   ========================================= */

/* Detail Page Layout */
.product-detail-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.product-gallery {
    flex: 1;
    min-width: 300px;
}

.product-gallery img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-gallery img:hover {
    transform: scale(1.02);
}

.product-info-wrap {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.product-info-wrap h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.product-info-wrap h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin: 1.5rem 0;
}

.product-description {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.size-selection {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.size-selection select {
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
    outline: none;
    cursor: pointer;
}

.size-selection select:focus {
    border-color: var(--accent-color);
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.btn-add-cart {
    flex: 1;
    padding: 1.2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn-buy-now {
    flex: 1;
    padding: 1.2rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-cart:hover, .btn-buy-now:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    opacity: 0.9;
}

/* Auth / Form Layouts */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem;
}

.auth-card {
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.auth-card h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.auth-card .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.auth-card label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-card input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
}

.auth-card input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.auth-card .btn-submit {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: var(--transition);
}

.auth-card .btn-submit:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.auth-card .form-footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-card .form-footer a {
    color: var(--accent-color);
    font-weight: 600;
}

/* --- ABOUT PAGE STYLES --- */
.about-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-sidebar {
    flex: 0 0 350px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.about-sidebar h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    display: inline-block;
}

.store-location {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.store-location:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.store-location h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.store-location h4 i {
    color: var(--accent-color);
}

.store-location p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-left: 26px;
}

.about-content {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.about-content h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 2rem;
}

.about-content p {
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    font-size: 1.05rem;
    text-align: justify;
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }
    .about-sidebar {
        flex: 1;
        width: 100%;
    }
}

/* --- LAB PAGE STYLES --- */
.lab-page-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.lab-header {
    text-align: center;
    margin-bottom: 50px;
}

.lab-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.lab-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.lab-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.lab-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-top: 4px solid var(--accent-color);
}

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

.lab-icon {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.lab-card h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.lab-links li {
    margin-bottom: 12px;
}

.lab-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 1rem;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.lab-links a i {
    color: var(--accent-color);
    font-size: 0.85rem;
}

.lab-links a:hover {
    background-color: #fff0f2;
    color: var(--primary-color);
    border-left-color: var(--accent-color);
    padding-left: 20px;
}
