/* 
   SOMNU LUXURY BEDDING — Stylesheet
   Design: Minimalist, High-End, Spacious
*/

:root {
    --primary: #1a1a1a;
    --secondary: #fdfaf7;
    --accent: #c4b5a2;
    --muted: #8e8e8e;
    --white: #ffffff;
    --cream: #fefcfb;
    --transition: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--secondary);
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/natural-paper.png');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

h1, h2, h3, h4, h5, .logo {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: all 0.5s var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo {
    font-size: 24px;
    letter-spacing: -1px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    margin-right: 40px;
}

.nav-link, .icon-btn {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--primary);
    margin: 0 20px;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-link:hover, .icon-btn:hover {
    color: var(--accent);
}

.nav-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.nav-left {
    display: flex;
    align-items: center;
}
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.subtitle {
    letter-spacing: 5px;
    font-size: 11px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 90px);
    line-height: 0.9;
    letter-spacing: -2px;
    margin-bottom: 40px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 18px 40px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 3px;
    font-weight: 700;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.added-success {
    background-color: #2b7a4b !important;
    color: white !important;
    pointer-events: none;
}

.btn-outline {
    border: 1px solid var(--white);
    color: var(--white);
    margin-left: 20px;
}

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

/* --- COLLECTIONS --- */
.intro-section {
    padding: 120px 0;
    text-align: center;
}

.intro-section h2 {
    font-size: 42px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.intro-section p {
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

.collection-section {
    padding: 100px 0;
}

.bg-alt {
    background-color: #fff;
}

.section-header {
    margin-bottom: 60px;
}

.tag {
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--accent);
    font-weight: 700;
}

.section-header h3 {
    font-size: 36px;
}

/* --- PRODUCT CARD --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.coming-soon-panel {
    grid-column: 1 / -1;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--white);
    padding: 70px 32px;
}

.coming-soon-panel h2 {
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1;
    margin: 14px 0 18px;
}

.coming-soon-panel p:last-child {
    max-width: 520px;
    color: var(--muted);
}

.product-card {
    text-align: center;
}

.card-img-wrapper {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.05);
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--transition);
}

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

.card-actions {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    gap: 10px;
    transform: translateY(100%);
    transition: transform 0.4s var(--transition);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.product-card:hover .card-actions {
    transform: translateY(0);
}

.card-btn {
    flex: 1;
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.card-btn:hover {
    background: var(--accent);
    color: var(--white);
}

.product-card h4 {
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.price {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* --- FEATURES --- */
.features {
    display: flex;
    border-top: 1px solid #eee;
    background: #fff;
}

.feature-card {
    flex: 1;
    padding: 80px 40px;
    text-align: center;
    border-right: 1px solid #eee;
}

.feature-card:last-child {
    border-right: none;
}

.number {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--accent);
    display: block;
    margin-bottom: 20px;
}

.feature-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--muted);
}

/* --- FOOTER --- */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 100px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-brand p {
    color: #888;
    margin-top: 20px;
    max-width: 250px;
}

.footer-links h5 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: var(--accent);
}

.footer-links a, .footer-links p {
    display: block;
    color: #888;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.6;
}

.footer-links input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #444;
    padding: 10px 0;
    color: white;
    margin-bottom: 15px;
    outline: none;
}

.btn-text {
    background: none;
    border: none;
    color: white;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    font-weight: 700;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 60px 0;
    text-align: center;
    color: #555;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.social-links a {
    color: white;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 1;
}

/* --- MODALS & SIDEBAR --- */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    max-width: 100%;
    height: 100%;
    background: white;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(0,0,0,0.08); /* Stronger shadow for depth */
}

.cart-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    animation: slideInRight 0.4s ease forwards;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.cart-item img {
    width: 80px;
    height: 105px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.cart-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #bbb;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s;
}

.cart-item-remove:hover { color: var(--accent); }

.cart-item-meta {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

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

/* --- TOAST NOTIFICATIONS --- */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    color: var(--primary);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    border-left: 4px solid var(--accent);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* --- CHECKOUT PREMIUM UI --- */
#checkout-form {
    padding: 20px 0;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}

.form-input {
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 4px;
    font-family: 'Inter';
    font-size: 13px;
    transition: border-color 0.3s;
}

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

.promo-section {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.promo-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #eee;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-btn {
    padding: 0 20px;
    font-size: 10px;
    font-weight: 700;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.checkout-summary {
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 8px;
    color: var(--muted);
}

.summary-line.total {
    color: var(--primary);
    font-weight: 800;
    font-size: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 10px;
}

.success-modal-content {
    background: white;
    padding: 60px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border-radius: 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 30px;
}

.sidebar.active {
    transform: translateX(0);
}

/* --- MODALS --- */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    width: 90%;
    max-width: 1000px;
    background: white;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--transition);
    border-radius: 2px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.modal-content {
    position: relative;
    padding: 60px;
}

.modal .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
}

.sidebar-header {
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.close-btn {
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
}

#cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
}

.sidebar-footer {
    padding: 40px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    font-family: 'Playfair Display';
    font-size: 20px;
    font-weight: 700;
}

#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

#overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- UTILS --- */
.flex-center { display: flex; justify-content: center; gap: 40px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.text-center { text-align: center; }

/* --- PAGE TRANSITIONS --- */
.page-container {
    display: none;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(10px);
}

.page-container.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 1.2s var(--transition) forwards;
}

/* --- REFINEMENTS --- */
.product-card {
    transition: all 0.5s var(--transition);
}

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

.card-img-wrapper {
    border-radius: 4px;
    background: #f1f1f1;
}

.card-actions {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
}

.btn {
    border-radius: 2px;
}

.summary-card {
    border: 1px solid #f0f0f0;
}

.success-modal-content {
    animation: fadeIn 0.6s var(--transition) forwards;
}

/* --- LEGAL CONTENT STYLING --- */
.legal-content h4 {
    letter-spacing: 0.5px;
    font-weight: 600;
}

.legal-content p {
    font-size: 15px;
}

.collection-header.has-bg {
    color: white;
}

.collection-header.has-bg .tag {
    border-color: white;
    color: white;
}

.collection-header.has-bg #shop-header-overlay {
    display: block !important;
}

.collection-header .hero-overlay {
    background: rgba(0, 0, 0, 0.4);
}

/* --- FILTER BAR --- */
.filter-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 30px 0;
    position: sticky;
    top: 60px;
    z-index: 500;
}

.hotel-disclaimer {
    display: none;
    max-width: 980px;
    margin: 22px auto 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
    text-align: center;
}

.hotel-disclaimer.active {
    display: block;
}

header.scrolled + .page-container .filter-bar {
    top: 50px;
}

.filter-btn {
    background: none;
    border: none;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
    cursor: pointer;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

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

/* --- REVIEWS --- */
.reviews-section {
    padding: 120px 0;
    background: var(--cream);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.review-card {
    background: white;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
}

.stars {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 14px;
}

.author {
    display: block;
    margin-top: 25px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--muted);
}

/* --- ABOUT PAGE UPGRADES --- */
.about-hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.about-hero .hero-overlay {
    background: rgba(0,0,0,0.4);
}

.about-hero h1 {
    color: white;
    font-size: clamp(40px, 8vw, 80px);
}

.about-mission {
    padding: 150px 0;
}

.mission-text h2 {
    font-size: 48px;
    margin-bottom: 30px;
}

.mission-visual img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.06);
}

.about-materiality {
    padding: 120px 0;
    background: var(--cream);
}

.material-card {
    text-align: center;
    transition: transform 0.6s var(--transition);
}

.material-card:hover {
    transform: translateY(-10px);
}

.material-card img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 25px;
}

/* --- PARTNERS PAGE UPGRADES --- */
.partners-hero {
    padding: 220px 0 100px;
    background: white;
}

.partners-hero h1 {
    font-size: clamp(40px, 7vw, 72px);
    margin-bottom: 30px;
}

.partners-grid {
    padding-bottom: 150px;
    background: white;
}

.partner-showcase {
    position: relative;
    height: 650px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.partner-showcase img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s var(--transition);
}

.partner-showcase:hover img {
    transform: scale(1.1);
}

.partner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 50px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    width: 100%;
    color: white;
    transform: translateY(20px);
    transition: transform 0.6s var(--transition);
}

.partner-showcase:hover .partner-overlay {
    transform: translateY(0);
}

.partner-card {
    padding: 40px;
    background: #fafafa;
    border-radius: 4px;
    text-align: center;
    transition: all 0.4s ease;
}

.partner-card:hover {
    background: white;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.partner-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 25px;
}

/* --- SEARCH OVERLAY --- */
.search-overlay {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    padding: 100px 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--transition);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-content {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

#search-input {
    width: 100%;
    border: none;
    border-bottom: 2px solid #eee;
    font-size: 40px;
    font-family: 'Playfair Display', serif;
    padding: 20px 0;
    outline: none;
}

.search-results-grid {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

/* --- PRODUCT DETAIL VIEW --- */
.product-detail-view {
    padding: 180px 0 100px;
}

.detail-view-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.detail-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.1); margin-bottom: 20px; }
.detail-gallery {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}
.gallery-thumb {
    width: 80px;
    height: 100px;
    flex-shrink: 0;
    cursor: pointer;
    border: 1px solid transparent;
    background: none;
    padding: 0;
    transition: all 0.3s;
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-thumb.active {
    border-color: var(--primary);
}
.gallery-thumb:hover {
    opacity: 0.8;
}

.size-guide-hidden {
    display: none;
    opacity: 0;
    transition: all 0.4s var(--transition);
}
.size-guide-visible {
    display: block;
    opacity: 1;
}

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

.detail-info h1 { font-size: 56px; margin-bottom: 20px; }
.detail-price { font-size: 24px; margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.detail-desc { font-style: italic; color: var(--muted); font-size: 18px; margin-bottom: 40px; line-height: 1.6; }

/* --- COLLECTION PREVIEW --- */
.split-banner {
    display: flex;
    height: 700px;
}

.banner-left, .banner-right {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.split-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--transition);
}

.banner-text {
    position: absolute;
    bottom: 60px;
    left: 60px;
    color: white;
}

.banner-text h3 {
    font-size: 40px;
    margin-bottom: 10px;
}

.split-banner div:hover img {
    transform: scale(1.05);
}

/* --- EDITORIAL GRID --- */
.editorial-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.editorial-main {
    position: relative;
    height: 600px;
    overflow: hidden;
}

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

.overlay-info {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px;
    background: linear-gradient(transparent, rgba(0,0,0,0.4));
    color: white;
}

.overlay-info h4 { font-size: 32px; margin-bottom: 10px; }
.overlay-info p { margin-bottom: 25px; }

.editorial-sub {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 40px;
}

.sub-item {
    background: white;
    display: flex;
    flex-direction: column;
}

.sub-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.p-20 { padding: 20px; }

/* --- NEWSLETTER --- */
.newsletter-section {
    padding: 120px 0;
    background: #f8f8f8;
}

.newsletter-section h3 { font-size: 32px; margin-bottom: 20px; }
.newsletter-form {
    max-width: 500px;
    margin: 40px auto 0;
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    outline: none;
}

/* --- PRODUCT OPTIONS --- */
.product-options {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.option-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--muted);
}

.color-swatches {
    display: flex;
    gap: 15px;
}

.swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swatch.selected {
    border-color: var(--primary);
    border-width: 2px;
    transform: scale(1.2);
}

.swatch:hover {
    transform: scale(1.2);
}

.size-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-chip {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: none;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-chip.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.size-chip:hover {
    border-color: var(--primary);
}

.mini-features {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
    font-weight: 700;
}

/* --- UPDATED FILTER BAR --- */
.filter-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.filter-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.filter-btns {
    display: flex;
    gap: 30px;
}

.coll-btn, .type-btn {
    background: none;
    border: none;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    font-size: 11px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
}

.coll-btn.active, .type-btn.active {
    font-weight: 700;
    border-bottom-color: var(--primary);
}

/* --- FOOTER REFINEMENT --- */
.social-icon {
    text-decoration: none;
    color: #888;
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: white;
}

.social-icon svg {
    transition: transform 0.3s ease;
}

.social-icon:hover svg {
    transform: translateY(-3px);
}

/* --- CART BADGE --- */
.cart-badge {
    background: var(--primary);
    color: white;
    font-size: 8px;
    height: 16px;
    width: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    vertical-align: middle;
    margin-left: 5px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f0f0f0;
    width: fit-content;
    padding: 0;
    border-radius: 4px;
    margin-top: 10px;
    overflow: hidden;
}

.qty-btn {
    background: #f0f0f0;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--primary);
    padding: 8px 12px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.qty-btn:hover {
    background: #e5e5e5;
}

.qty-val {
    padding: 0 10px;
    font-family: 'Inter', sans-serif;
    min-width: 35px;
    text-align: center;
}

/* --- BENTO GRID --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
}

.bento-item {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.8s var(--transition);
}

.bento-item:hover {
    transform: scale(1.02);
}

.bento-item.main {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item.secondary {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-item.tertiary {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-item.detail {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    width: 100%;
}

.bento-content h3 {
    color: white;
    font-family: 'Playfair Display';
    font-size: 24px;
    margin-top: 10px;
}

/* --- CRAFTSMANSHIP SECTION --- */
.craft-flex {
    display: flex;
    align-items: center;
    gap: 100px;
}

.craft-image-group {
    position: relative;
    flex: 1.2;
}

.craft-image-group .base-img {
    width: 85%;
    border-radius: 4px;
    filter: grayscale(0.2);
    box-shadow: 0 40px 100px rgba(0,0,0,0.08);
}

.craft-image-group .floating-img {
    position: absolute;
    bottom: -80px;
    right: 0;
    width: 50%;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    border: 15px solid var(--white);
    transition: transform 0.5s ease;
}

.craft-image-group:hover .floating-img {
    transform: translateY(-20px);
}

.craft-text {
    flex: 1;
}

.craft-text h2 {
    font-family: 'Playfair Display';
    font-size: 56px;
    line-height: 1;
    margin: 25px 0;
}

.craft-text p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

/* --- DEDICATED CART & CHECKOUT PAGES --- */
.cart-page-section, .checkout-page-section {
    background: var(--secondary);
    min-height: 80vh;
}

.summary-card {
    background: var(--white);
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.cart-page-layout {
    margin-top: 40px;
}

#cart-page-items .cart-item {
    background: var(--white);
    padding: 30px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.03);
}

#cart-page-items .cart-item img {
    width: 120px;
    height: 160px;
}

.checkout-page-layout {
    align-items: start;
}

.payment-card {
    transition: all 0.3s ease;
}

.payment-card.selected {
    background: #f8f8f8;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .bento-item.main, .bento-item.detail {
        grid-column: span 1;
        grid-row: span 1;
        height: 350px;
    }
    .craft-flex {
        flex-direction: column;
        gap: 60px;
        text-align: center;
    }
    .craft-image-group .base-img {
        width: 100%;
    }
    .craft-text h2 {
        font-size: 36px;
    }
    .container { padding: 0 20px; }
    .nav-container { padding: 0 20px; }
    .nav-left { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .features { flex-direction: column; }
    .feature-card { border-right: none; border-bottom: 1px solid #eee; }
    .hero h1 { font-size: 50px; }
    .hero-btns {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .hero-btns .btn {
        margin-left: 0 !important;
    }
    .split-banner { flex-direction: column; height: auto; }
    .banner-left, .banner-right { height: 400px; }
    .banner-text {
        left: 28px;
        right: 28px;
        bottom: 36px;
    }
    .banner-text h3 {
        font-size: 32px;
    }
    .editorial-grid { grid-template-columns: 1fr; }
    .editorial-main { height: 400px; }
    .grid-2,
    .detail-view-grid,
    .cart-page-layout,
    .checkout-page-layout {
        grid-template-columns: 1fr !important;
        gap: 44px !important;
    }
    .partners-grid .container > div {
        grid-template-columns: 1fr !important;
    }
    .partner-showcase {
        height: 460px;
    }
    .filter-btns {
        overflow-x: auto;
        gap: 18px;
        padding-bottom: 10px;
        justify-content: flex-start;
    }
    .type-btn {
        flex: 0 0 auto;
    }
    .newsletter-form,
    .payment-options {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .sidebar { width: 100%; }
    .hero h1 {
        font-size: 42px;
    }
    .hero-content {
        left: 24px;
        right: 24px;
        bottom: 80px;
    }
    .collection-header h1,
    #faq-title,
    .partners-hero h1 {
        font-size: 40px !important;
    }
    .section-header h3,
    .newsletter-section h3 {
        font-size: 30px;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .overlay-info {
        padding: 32px;
    }
    .review-card,
    .partner-card,
    .summary-card {
        padding: 30px 22px !important;
    }
    .partner-overlay {
        padding: 32px;
    }
    .partner-showcase {
        height: 380px;
    }
    #search-input {
        font-size: 32px;
    }
}
