/* ====== V5 AMERICAN E-COMMERCE STYLING ====== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Outfit:wght@200;300;400;500;600;700&display=swap');

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

:root {
    --bg-white: #FFFFFF;
    --text-black: #111111;
    --border-gray: #E0E0E0;
    --accent-gray: #757575;
    --brand-gold: #B89A58;
    --brand-ivory: #F6F1EA;
    --brand-teal: #4F7E7A;
    --brand-rose: #D7A6A7;
    
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.05);
}

html { scroll-behavior: smooth; font-family: 'Outfit', sans-serif; }

body { background-color: var(--bg-white); color: var(--text-black); line-height: 1.6; -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4, h5, h6, .brand-font { font-family: 'Cormorant Garamond', serif; font-weight: 400; letter-spacing: 0.05em; }

a { color: inherit; text-decoration: none; transition: var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }

/* ====== UTILITIES ====== */
.container { max-width: 1440px; margin: 0 auto; padding: 0 5%; }
.section-padding { padding-top: 6rem; padding-bottom: 6rem; }
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.75rem; font-weight: 500; }

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2.5rem; text-transform: uppercase; font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.15em; transition: var(--transition-fast); cursor: pointer;
    border: 1px solid var(--text-black); background: transparent; color: var(--text-black);
    position: relative; overflow: hidden;
}
.btn::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: var(--brand-ivory); z-index: -1; transition: var(--transition-fast);
}
.btn:hover::after { left: 0; }
.btn:hover { color: var(--text-black); background: var(--brand-ivory); }
.btn-primary { background: var(--text-black); color: var(--bg-white); }
.btn-primary:hover { background: var(--brand-teal); color: var(--bg-white); border-color: var(--brand-teal); }

/* ====== ANNOUNCEMENT BAR ====== */
.announcement-bar {
    background-color: var(--brand-ivory); color: var(--text-black);
    text-align: center; padding: 0.6rem 0; font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.15em; border-bottom: 1px solid var(--border-gray);
}

/* ====== NAVIGATION ====== */
header { position: sticky; top: 0; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); z-index: 999; border-bottom: 1px solid var(--border-gray); }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 90px; }
.nav-left, .nav-right { flex: 1; display: flex; align-items: center; gap: 2rem; }
.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }
.logo { font-size: 2.5rem; letter-spacing: 0.15em; flex: 0 0 auto; text-align: center; font-weight: 300; }
nav ul { display: flex; list-style: none; gap: 2rem; margin: 0; padding: 0; }
nav ul a { font-size: 0.75rem; text-transform: uppercase; font-weight: 600; color: var(--text-black); letter-spacing: 0.1em; position: relative; padding: 0.3rem 0; }
nav ul a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
    background: var(--brand-gold); transition: var(--transition-fast);
}
nav ul a:hover::after, nav ul a.active::after { width: 100%; }
nav ul a:hover, nav ul a.active { color: var(--brand-gold); }

/* SVG Icon Buttons */
.nav-icons { display: flex; align-items: center; gap: 1.2rem; }
.icon-btn {
    background: none; border: none; padding: 0.4rem; cursor: pointer; color: var(--text-black);
    display: flex; align-items: center; justify-content: center; position: relative; transition: var(--transition-fast);
}
.icon-btn:hover { color: var(--brand-gold); }
.icon-svg { width: 20px; height: 20px; fill: currentColor; }
.icon-badge {
    position: absolute; top: -3px; right: -3px; background-color: var(--brand-teal); color: var(--bg-white);
    font-size: 0.6rem; font-weight: 600; width: 15px; height: 15px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-family: 'Outfit', sans-serif;
    transition: var(--transition-fast);
}
.icon-badge.hidden { display: none; }


/* ====== HAMBURGER BUTTON ====== */
.hamburger-menu-btn {
    display: none; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 6px; width: 25px; height: auto;
    z-index: 1001; padding: 0; border-radius: 0;
}
.hamburger-menu-btn span {
    display: block; width: 100%; height: 1px; background: var(--text-black);
    transition: var(--transition-fast);
}

/* ====== PRODUCT GRIDS ====== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; margin-top: 2rem; }
.product-card { position: relative; display: flex; flex-direction: column; }
.product-image { position: relative; overflow: hidden; margin-bottom: 1.2rem; aspect-ratio: 3/4; background: var(--brand-ivory); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.product-card:hover .product-image img { transform: scale(1.05); }

/* Badges styling */
.product-badges-container { position: absolute; top: 1rem; left: 1rem; display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.4rem; z-index: 2; pointer-events: none; }
.product-badge {
    background: rgba(255, 255, 255, 0.95); color: var(--text-black); padding: 0.25rem 0.6rem;
    font-size: 0.58rem; text-transform: uppercase; font-weight: 600; letter-spacing: 0.08em;
    border: 1px solid var(--border-gray); box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    backdrop-filter: blur(5px);
}
.product-badge.badge-oneofone { background: rgba(184, 154, 88, 0.95); color: var(--bg-white); border-color: var(--brand-gold); }
.product-badge.badge-limited { background: rgba(79, 126, 122, 0.95); color: var(--bg-white); border-color: var(--brand-teal); }

.product-info { display: flex; justify-content: space-between; align-items: baseline; }
.product-info h3 { font-size: 1.05rem; font-family: 'Outfit', sans-serif; font-weight: 400; color: var(--text-black); }
.product-price { font-size: 1.05rem; font-weight: 500; color: var(--accent-gray); }

/* ====== SHOP LAYOUT WITH FILTERS ====== */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 3rem; margin-top: 2rem; }
.filter-panel { display: flex; flex-direction: column; gap: 2rem; }
.filter-group { border-bottom: 1px solid var(--border-gray); padding-bottom: 1.5rem; }
.filter-group h4 { font-family: 'Outfit', sans-serif; text-transform: uppercase; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; margin-bottom: 1rem; color: var(--text-black); }
.filter-options { display: flex; flex-direction: column; gap: 0.6rem; }
.filter-checkbox-label { display: flex; align-items: center; gap: 0.8rem; font-size: 0.85rem; color: var(--accent-gray); cursor: pointer; transition: var(--transition-fast); }
.filter-checkbox-label:hover { color: var(--text-black); }
.filter-checkbox-label input { accent-color: var(--brand-teal); width: 15px; height: 15px; border: 1px solid var(--border-gray); cursor: pointer; }

/* ====== FORMS ====== */
.form-group { margin-bottom: 1.8rem; }
.form-group label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 0.6rem; }
.form-control { width: 100%; padding: 1.1rem; border: 1px solid var(--border-gray); font-family: inherit; font-size: 0.95rem; transition: var(--transition-fast); border-radius: 0; background-color: transparent; }
.form-control:focus { outline: none; border-color: var(--text-black); background-color: var(--bg-white); }
textarea.form-control { resize: vertical; }

/* ====== WHY RUNG ====== */
.why-rung { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem; padding: 6rem 5%; text-align: center; background: var(--brand-ivory); margin-top: 4rem; }
.why-icon { font-size: 2.2rem; margin-bottom: 1.2rem; color: var(--brand-teal); }
.why-rung h4 { font-size: 1.4rem; margin-bottom: 0.6rem; font-weight: 300; }
.why-rung p { font-size: 0.9rem; color: var(--accent-gray); }

/* ====== POETRY SECTION ====== */
.poetry-section { padding: 8rem 5%; background: var(--bg-white); }
.poetry-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 6rem; align-items: center; }

/* ====== INSTAGRAM GALLERY ====== */
.instagram-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 2rem 5%; }
.instagram-item { aspect-ratio: 1/1; background: var(--brand-ivory); overflow: hidden; position: relative; cursor: pointer; }
.instagram-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.instagram-item::after {
    content: '✧ Follow @rung.studio'; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(79, 126, 122, 0.9); color: var(--bg-white); display: flex; align-items: center;
    justify-content: center; opacity: 0; transition: var(--transition-fast); font-family: 'Cormorant Garamond', serif; font-size: 1.2rem;
}
.instagram-item:hover img { transform: scale(1.05); }
.instagram-item:hover::after { opacity: 1; }

/* ====== NEWSLETTER ====== */
.newsletter-section { padding: 8rem 5%; text-align: center; background: var(--brand-ivory); border-top: 1px solid var(--border-gray); }
.newsletter-form { max-width: 550px; margin: 2.5rem auto 0; display: flex; border: 1px solid var(--border-gray); background: var(--bg-white); }
.newsletter-form input { flex: 1; padding: 1.2rem; border: none; outline: none; font-family: inherit; font-size: 0.9rem; background: transparent; }
.newsletter-form button { padding: 0 2.5rem; background: var(--text-black); color: var(--bg-white); border: none; cursor: pointer; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.15em; font-weight: 600; transition: var(--transition-fast); }
.newsletter-form button:hover { background: var(--brand-teal); }

/* ====== FOOTER ====== */
footer { border-top: 1px solid var(--border-gray); padding: 6rem 5% 4rem; background: var(--bg-white); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 5rem; max-width: 1440px; margin-left: auto; margin-right: auto; }
.footer-logo { font-size: 2.2rem; margin-bottom: 1.2rem; font-weight: 300; letter-spacing: 0.15em; }
.footer-links h4 { font-family: 'Outfit', sans-serif; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.8rem; color: var(--text-black); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 1rem; }
.footer-links a { font-size: 0.9rem; color: var(--accent-gray); transition: var(--transition-fast); }
.footer-links a:hover { color: var(--brand-gold); padding-left: 5px; }
.footer-bottom { border-top: 1px solid var(--border-gray); padding-top: 2.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--accent-gray); max-width: 1440px; margin-left: auto; margin-right: auto; letter-spacing: 0.05em; }

/* ====== DRAWERS (CART & WISHLIST) ====== */
.side-drawer {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 10000; visibility: hidden; transition: visibility 0.4s;
}
.side-drawer.active { visibility: visible; }
.drawer-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); opacity: 0; transition: opacity 0.4s ease;
}
.side-drawer.active .drawer-overlay { opacity: 1; }
.drawer-content {
    position: absolute; top: 0; right: 0; width: 450px; max-width: 100%; height: 100%;
    background: var(--bg-white); transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,0.1);
}
.side-drawer.active .drawer-content { transform: translateX(0); }

.drawer-header {
    padding: 2rem; border-bottom: 1px solid var(--border-gray);
    display: flex; justify-content: space-between; align-items: center;
}
.drawer-header h3 { font-size: 1.8rem; font-weight: 300; }
.close-drawer { background: none; border: none; font-size: 2rem; cursor: pointer; line-height: 1; color: var(--accent-gray); transition: var(--transition-fast); }
.close-drawer:hover { color: var(--text-black); }

.drawer-body { flex: 1; overflow-y: auto; padding: 2rem; }
.empty-state { text-align: center; padding: 4rem 0; color: var(--accent-gray); }
.drawer-item { display: flex; gap: 1.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border-gray); padding-bottom: 1.5rem; }
.drawer-item img { width: 80px; height: 106px; object-fit: cover; background: var(--brand-ivory); }
.drawer-item-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.drawer-item-info h4 { font-family: 'Outfit', sans-serif; font-size: 0.95rem; font-weight: 500; }
.drawer-item-meta { font-size: 0.8rem; color: var(--accent-gray); margin-top: 0.2rem; }
.qty-controls { display: inline-flex; align-items: center; border: 1px solid var(--border-gray); margin-top: 0.5rem; width: fit-content; }
.qty-controls button { background: none; border: none; width: 30px; height: 30px; cursor: pointer; font-size: 1rem; }
.qty-controls span { padding: 0 0.8rem; font-size: 0.85rem; font-weight: 600; }

.drawer-item-right { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.drawer-price { font-weight: 600; font-size: 0.95rem; }
.remove-item-btn { background: none; border: none; font-size: 0.8rem; color: var(--accent-gray); text-decoration: underline; cursor: pointer; margin-top: auto; }
.remove-item-btn:hover { color: var(--text-black); }

.drawer-footer { padding: 2rem; border-top: 1px solid var(--border-gray); background: var(--brand-ivory); }
.cart-total-row { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }
.shipping-note { font-size: 0.8rem; color: var(--accent-gray); margin-bottom: 1.5rem; text-align: center; }
.checkout-btn { width: 100%; padding: 1.2rem; font-size: 0.9rem; }

/* ====== MODALS & OVERLAYS ====== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(255, 255, 255, 0.98); z-index: 10000;
    opacity: 0; visibility: hidden; transition: all 0.4s ease;
    display: flex; align-items: center; justify-content: center;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.close-modal, .close-mobile-menu { position: absolute; top: 2rem; right: 3rem; background: none; border: none; font-size: 3rem; cursor: pointer; font-weight: 200; }
.search-form-container { width: 800px; max-width: 90%; text-align: center; }
.search-form-container h2 { font-size: 3rem; margin-bottom: 2rem; font-weight: 300; }
.search-form-container input { width: 100%; border: none; border-bottom: 2px solid var(--text-black); font-size: 2rem; padding: 1rem 0; font-family: 'Cormorant Garamond', serif; font-style: italic; outline: none; background: transparent; text-align: center; }
.search-results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 4rem; text-align: left; max-height: 50vh; overflow-y: auto; padding-right: 1rem; }
.search-result-item { display: flex; gap: 1.5rem; align-items: center; padding: 1rem; border: 1px solid transparent; }
.search-result-item:hover { border-color: var(--border-gray); background: var(--brand-ivory); }
.search-result-item img { width: 70px; height: 90px; object-fit: cover; background: var(--brand-ivory); }
.search-result-item h4 { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 500; }
.search-result-item p { font-size: 0.85rem; color: var(--accent-gray); }

/* ====== MOBILE OVERLAY MENU ====== */
.mobile-menu-content { text-align: center; }
.mobile-nav-links { list-style: none; display: flex; flex-direction: column; gap: 1.8rem; margin-bottom: 4rem; }
.mobile-nav-links a { font-family: 'Cormorant Garamond', serif; font-size: 2.8rem; font-weight: 300; }
.mobile-nav-links a:hover { color: var(--brand-gold); }
.mobile-menu-footer { font-size: 0.8rem; color: var(--accent-gray); letter-spacing: 0.1em; }

/* ====== TOAST NOTIFICATIONS ====== */
#toast-container { position: fixed; bottom: 2rem; left: 2rem; z-index: 100000; display: flex; flex-direction: column; gap: 0.8rem; }
.rung-toast {
    background: var(--text-black); color: var(--bg-white); padding: 1rem 2rem;
    font-size: 0.85rem; letter-spacing: 0.05em; font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); transform: translateY(20px); opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; align-items: center; gap: 0.8rem;
}
.rung-toast span { color: var(--brand-gold); font-size: 1.1rem; }
.rung-toast.show { transform: translateY(0); opacity: 1; }

/* ====== FAQ ACCORDIONS ====== */
.faq-grid { max-width: 800px; margin: 4rem auto 0; }
.faq-item { border-bottom: 1px solid var(--border-gray); padding: 1.8rem 0; }
.faq-question { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 1.1rem; font-weight: 500; transition: var(--transition-fast); }
.faq-question:hover { color: var(--brand-gold); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; font-size: 0.95rem; color: var(--accent-gray); line-height: 1.7; }
.faq-item.active .faq-answer { max-height: 300px; padding-top: 1.2rem; }
.faq-question-icon { font-size: 1.2rem; font-weight: 300; transition: transform 0.4s; }
.faq-item.active .faq-question-icon { transform: rotate(45deg); }

/* ====== COLLECTIONS PAGE ====== */
.collections-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; margin-top: 4rem; }
.collection-card { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--brand-ivory); }
.collection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.15, 1, 0.3, 1); }
.collection-card-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.1) 60%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 3rem; color: var(--bg-white);
    transition: background 0.4s;
}
.collection-card:hover img { transform: scale(1.03); }
.collection-card:hover .collection-card-overlay { background: linear-gradient(to top, rgba(79, 126, 122, 0.75) 0%, rgba(0, 0, 0, 0.15) 60%); }
.collection-card h3 { font-size: 2.2rem; font-weight: 300; margin-bottom: 0.5rem; }
.collection-card p { font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }

/* ====== MEDIA QUERIES ====== */
@media (max-width: 1200px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
    .shop-layout { grid-template-columns: 1fr; }
    .filter-panel { display: none; } /* Sidebar filters collapse in mobile/tablet dropdowns if needed */
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .poetry-grid { grid-template-columns: 1fr; gap: 4rem; }
}
@media (max-width: 768px) {
    .hamburger-menu-btn { display: flex; }
    nav { display: none; } /* Hide standard horizontal links */
    .logo { font-size: 1.8rem; }
    .nav-container { height: 75px; }
    .nav-left { display: none; }
    .why-rung { grid-template-columns: 1fr; gap: 3rem; }
    .instagram-gallery { grid-template-columns: repeat(2, 1fr); }
    .collections-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; border: none; }
    .newsletter-form input { border: 1px solid var(--border-gray); margin-bottom: 1rem; width: 100%; }
    .newsletter-form button { padding: 1.2rem; width: 100%; }
}
