/* Tess Maurice - Urban Lifestyle E-commerce */
:root {
    --primary: #8B4513;
    --secondary: #D2691E;
    --accent: #F4A460;
    --background: #FFF8DC;
    --text-dark: #2C1810;
    --text-light: #6B4423;
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --border: #E0D5C5;
}

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

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
}

/* Top Bar */
.top-bar {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 10px;
    font-size: 14px;
    letter-spacing: 0.5px;
}

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

.header-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

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

.search-bar input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid var(--border);
    border-radius: 30px;
    font-size: 14px;
    background: var(--background);
    transition: border-color 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--secondary);
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.currency-selector select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--white);
    color: var(--text-dark);
    cursor: pointer;
}

.cart-icon {
    position: relative;
    text-decoration: none;
    color: var(--text-dark);
}

.cart-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--primary);
}

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

/* Navigation */
nav {
    background: var(--white);
    border-top: 1px solid var(--border);
}

.nav-menu {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
}

.nav-menu a {
    display: block;
    padding: 15px 0;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s;
}

.nav-menu a:hover {
    color: var(--secondary);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* 3D Scene Section (Homepage) */
.scene-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--background) 0%, #F5E6D3 50%, var(--background) 100%);
    display: flex;
    align-items: center;
    padding: 100px 30px;
    overflow: hidden;
    position: relative;
}

.scene-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(139, 69, 19, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.scene-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.scene-text {
    z-index: 1;
}

.scene-text h1 {
    font-size: 64px;
    color: var(--primary);
    margin-bottom: 25px;
    line-height: 1.1;
}

.scene-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 35px;
    line-height: 1.8;
    max-width: 500px;
}

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

.scene-text .btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.scene-visual {
    position: relative;
    height: 600px;
    perspective: 1000px;
}

.floating-product {
    position: absolute;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(139, 69, 19, 0.25);
    transition: transform 0.6s ease;
}

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

.floating-product.primary {
    width: 320px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(-5deg) rotateX(5deg);
    z-index: 3;
    animation: float-primary 6s ease-in-out infinite;
}

.floating-product.secondary {
    width: 240px;
    height: 300px;
    top: 20%;
    right: 5%;
    transform: rotateY(15deg) rotateX(-5deg);
    z-index: 2;
    animation: float-secondary 5s ease-in-out infinite;
    opacity: 0.9;
}

.floating-product.tertiary {
    width: 180px;
    height: 220px;
    bottom: 15%;
    left: 0;
    transform: rotateY(-20deg) rotateX(10deg);
    z-index: 1;
    animation: float-tertiary 7s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes float-primary {
    0%, 100% { transform: translate(-50%, -50%) rotateY(-5deg) rotateX(5deg) translateY(0); }
    50% { transform: translate(-50%, -50%) rotateY(-5deg) rotateX(5deg) translateY(-15px); }
}

@keyframes float-secondary {
    0%, 100% { transform: rotateY(15deg) rotateX(-5deg) translateY(0); }
    50% { transform: rotateY(15deg) rotateX(-5deg) translateY(-20px); }
}

@keyframes float-tertiary {
    0%, 100% { transform: rotateY(-20deg) rotateX(10deg) translateY(0); }
    50% { transform: rotateY(-20deg) rotateX(10deg) translateY(-10px); }
}

/* Responsive for Scene */
@media (max-width: 1024px) {
    .scene-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .scene-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .scene-visual {
        height: 400px;
        order: -1;
    }
    
    .floating-product.primary {
        width: 200px;
        height: 250px;
    }
    
    .floating-product.secondary {
        width: 150px;
        height: 190px;
        right: 10%;
    }
    
    .floating-product.tertiary {
        width: 120px;
        height: 150px;
        left: 5%;
    }
}

@media (max-width: 768px) {
    .scene-text h1 {
        font-size: 42px;
    }
    
    .scene-visual {
        height: 300px;
    }
}

/* Fullscreen Section (Homepage) */
.fullscreen-section {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.fullscreen-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}

.fullscreen-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
    padding: 0 30px;
}

.fullscreen-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.fullscreen-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--primary);
}

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

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: all 0.3s;
}

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

/* Section Styles */
.section {
    padding: 80px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-title h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    font-size: 16px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.product-info h3 a {
    color: inherit;
    text-decoration: none;
}

.product-info h3 a:hover {
    color: var(--secondary);
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.product-price .original {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 10px;
}

/* Brand Story */
.brand-story {
    background: var(--white);
    padding: 100px 30px;
}

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

.story-content h2 {
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 30px;
}

.story-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Blog Preview */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.blog-image {
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-info {
    padding: 25px;
}

.blog-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.blog-info h3 a {
    color: var(--text-dark);
    text-decoration: none;
}

.blog-info h3 a:hover {
    color: var(--secondary);
}

.blog-meta {
    color: var(--text-light);
    font-size: 14px;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 30px 30px;
}

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

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--accent);
}

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

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

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    max-width: 1400px;
    margin: 40px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    opacity: 0.8;
}

/* Lineup Page */
.page-header {
    background: var(--primary);
    color: var(--white);
    padding: 60px 30px;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Unit Page */
.product-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

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

.main-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: var(--secondary);
}

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

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

.product-info-detail .price {
    font-size: 28px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 25px;
}

.product-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.add-to-cart {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.quantity-selector button {
    width: 45px;
    height: 50px;
    background: var(--gray-light);
    border: none;
    cursor: pointer;
    font-size: 18px;
}

.quantity-selector input {
    width: 60px;
    height: 50px;
    border: none;
    text-align: center;
    font-size: 16px;
}

.btn-add-cart {
    flex: 1;
    padding: 15px 30px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add-cart:hover {
    background: var(--secondary);
}

/* Cart Page */
.cart-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 30px;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto auto;
    gap: 20px;
    align-items: center;
    padding: 25px;
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

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

.cart-item-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.cart-summary {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.summary-row.total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    border-bottom: none;
    padding-top: 20px;
}

/* Checkout Page */
.checkout-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 30px;
}

.checkout-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

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

/* Success Page */
.success-container {
    max-width: 600px;
    margin: 80px auto;
    text-align: center;
    padding: 0 30px;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.success-icon svg {
    width: 50px;
    height: 50px;
    fill: white;
}

.success-container h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary);
}

.success-container p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Info Pages */
.info-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 30px;
}

.info-page h1 {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--primary);
}

.info-page h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--text-dark);
}

.info-page p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-light);
}

/* Product Features */
.product-features {
    margin-top: 30px;
    padding: 25px;
    background: var(--gray-light);
    border-radius: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-light);
    font-size: 14px;
}

.feature-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Product Tabs */
.product-tabs {
    margin-top: 30px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    background: var(--gray-light);
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s;
}

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

.tab-btn.active {
    background: var(--white);
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.tab-content {
    padding: 25px;
    background: var(--white);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane ul {
    list-style: none;
    padding: 0;
}

.tab-pane li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-light);
}

.tab-pane li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .header-main {
        flex-wrap: wrap;
        padding: 15px;
    }
    
    .search-bar {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 15px;
    }
    
    .fullscreen-content h1 {
        font-size: 36px;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .product-gallery {
        position: relative;
        top: 0;
    }
    
    .cart-item {
        grid-template-columns: 100px 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
