/* --- Global Reset & Colors --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --burgundy: #6b1d2f;
    --soft-pink: #fbcbc9;
    --light-pink-bg: #fff5f5;
    --charcoal: #2b2b2b;
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Fluid typography scales */
    --text-base: clamp(0.9rem, 2vw, 1rem);
    --text-sm: clamp(0.8rem, 1.5vw, 0.875rem);
    --text-lg: clamp(1rem, 2.5vw, 1.125rem);
    --text-xl: clamp(1.1rem, 3vw, 1.25rem);
    --text-2xl: clamp(1.25rem, 4vw, 1.5rem);
    --text-3xl: clamp(1.5rem, 5vw, 2rem);
    --text-4xl: clamp(1.8rem, 6vw, 2.5rem);
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background-color: var(--white);
    line-height: 1.6;
    font-size: var(--text-base);
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* --- Header / Navigation --- */
header {
    background-color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    box-shadow: 0 2px 10px rgba(107, 29, 47, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 700;
    color: var(--burgundy);
}

.logo span {
    color: var(--soft-pink);
    text-shadow: 1px 1px 0px var(--burgundy);
}

header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
}

header nav a {
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 600;
    padding-bottom: 5px;
    transition: color 0.3s ease;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
}

header nav a:hover, header nav a.active {
    color: var(--burgundy);
    border-bottom: 2px solid var(--soft-pink);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(107, 29, 47, 0.88), rgba(107, 29, 47, 0.88)), 
                url('header.jpeg') no-repeat center center/cover;
    min-height: 65vh;
    display: flex;
    align-items: flex-start;
    padding: 60px 8%;
    color: var(--white);
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    margin-bottom: 20px;
    color: var(--light-pink-bg);
}

.btn {
    display: inline-block;
    background-color: var(--soft-pink);
    color: var(--burgundy);
    padding: 12px 35px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    margin-top: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.btn:hover {
    transform: translateY(-2px);
    background-color: var(--white);
}

/* --- What We Offer Section --- */
.offers-section {
    padding: 40px 8%;
    text-align: center;
    background-color: var(--light-pink-bg);
}

.offers-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--burgundy);
}

.accent-line {
    width: 40px;
    height: 3px;
    background-color: var(--soft-pink);
    margin: 15px auto 45px auto;
}

.offers-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.offer-card {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    box-shadow: 0 4px 15px rgba(107, 29, 47, 0.04);
    border: 1px solid rgba(107, 29, 47, 0.05);
}

.offer-card .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.offer-card h3 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--burgundy);
    margin-bottom: 10px;
}

/* --- Footer --- */
footer {
    background-color: var(--charcoal);
    color: var(--white);
    padding: 40px 8% 20px 8%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-container > div {
    flex: 1;
    min-width: 200px;
}

footer h3, footer h4 {
    color: var(--soft-pink);
    margin-bottom: 15px;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.footer-links a, .social-links a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
}

.footer-links a:hover, .social-links a:hover {
    color: var(--soft-pink);
}

.subscribe-form {
    display: flex;
    margin-top: 10px;
    flex-wrap: wrap;
}

.subscribe-form input {
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    width: 70%;
    min-width: 150px;
    flex: 1;
}

.subscribe-form button {
    background-color: var(--burgundy);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: clamp(0.75rem, 1vw, 0.85rem);
    color: #aaa;
}

/* --- Products Page Design --- */
.products-header {
    text-align: center;
    padding: 60px 8% 20px 8%;
    background-color: var(--white);
}

.products-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--burgundy);
}

.filter-buttons {
    margin-top: 30px;
}

.filter-btn {
    background-color: var(--white);
    color: var(--charcoal);
    border: 2px solid var(--soft-pink);
    padding: 8px 24px;
    margin: 5px;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}

/* Products Grid Setup */
.products-container {
    padding: 20px 8% 80px 8%;
    background-color: var(--light-pink-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Tablet: 2 columns */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile: 2 columns */
@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 0px;
    }
}

/* Very small phones: 2 columns */
@media (max-width: 420px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(107, 29, 47, 0.04);
    border: 1px solid rgba(107, 29, 47, 0.05);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: scale(1.03);
}

.card .img-wrapper {
    width: 100%;
    height: 200px;
    background-color: #f7f7f7;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: opacity 0.3s ease;
}

.card img:hover {
    opacity: 0.9;
}

.card h3 {
    font-size: clamp(0.85rem, 1.5vw, 1.15rem);
    color: var(--charcoal);
    margin-bottom: 3px;
}

.card .price {
    color: var(--burgundy);
    font-weight: 600;
    font-size: clamp(0.9rem, 1.3vw, 1.1rem);
    margin-bottom: 10px;
}

.cart-btn {
    width: 100%;
    background-color: var(--soft-pink);
    color: var(--burgundy);
    border: none;
    padding: 8px 10px;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: clamp(0.75rem, 1vw, 0.9rem);
}

.cart-btn:hover {
    background-color: var(--burgundy);
    color: var(--white);
}

/* Checkout Button Layout */
.checkout-wrapper {
    text-align: center;
    margin-top: 50px;
}

.checkout-btn {
    background-color: var(--burgundy);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(107, 29, 47, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.checkout-btn:hover {
    background-color: #521422;
    transform: translateY(-2px);
}

/* --- Interactive Image Zoom Modal --- */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.modal img {
    max-width: 85%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    animation: zoomAnimation 0.3s ease-out;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
}

@keyframes zoomAnimation {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- Master Contact Page Layout --- */
.contact-section {
    padding: 80px 8%;
    background-color: var(--white);
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    min-width: 280px;
    text-align: left;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--burgundy);
    line-height: 1.2;
    margin-bottom: 5px;
}

.contact-info p {
    color: #555;
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-form-wrapper {
    flex: 1;
    min-width: 280px;
    background-color: var(--light-pink-bg);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(107, 29, 47, 0.04);
    border: 1px solid rgba(107, 29, 47, 0.05);
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    color: var(--burgundy);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    outline: none;
    background-color: var(--white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--burgundy);
    box-shadow: 0 0 0 3px rgba(107, 29, 47, 0.1);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    background-color: var(--burgundy);
    color: var(--white);
    border: none;
    padding: 14px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(107, 29, 47, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background-color: #521422;
    transform: translateY(-1px);
}

/* --- Gallery Page Specific Styles --- */
.gallery-section {
    padding: 40px 8%;
    text-align: center;
    background-color: var(--white);
}

.gallery-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--burgundy);
}

.gallery-subtitle {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    color: #666;
    margin-bottom: 30px;
}

/* Elegant Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 420px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 280px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    background-color: var(--light-pink-bg);
    cursor: zoom-in;
}

@media (max-width: 640px) {
    .gallery-item {
        height: 200px;
    }
}

@media (max-width: 420px) {
    .gallery-item {
        height: 160px;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Burgundy Hover Cover Filter */
.gallery-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(107, 29, 47, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay span {
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(0.8rem, 1.2vw, 1.1rem);
    border: 1px solid var(--soft-pink);
    padding: 8px 20px;
    border-radius: 20px;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* --- Home Page Extra Sections --- */

/* About Section Preview Layout */
.home-about-preview {
    padding: 40px 8%;
    background-color: var(--white);
}

.about-preview-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: nowrap;
}

.preview-text {
    flex: 1;
}

.preview-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    color: var(--burgundy);
}

.preview-text p {
    color: #555;
    margin-bottom: 15px;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
}

.text-link {
    color: var(--burgundy);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
}

.text-link:hover {
    color: var(--soft-pink);
}

.preview-image-box {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mini-frame {
    padding: 40px;
    background-color: var(--light-pink-bg);
    border: 2px dashed var(--burgundy);
    color: var(--burgundy);
    font-weight: 600;
    border-radius: 12px;
    text-align: center;
}

/* Gallery Section Preview Layout */
.home-gallery-preview {
    padding: 40px 8%;
    text-align: center;
    background-color: var(--light-pink-bg);
}

.home-gallery-preview h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    color: var(--burgundy);
}

.home-gallery-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.img-snap {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

@media (max-width: 640px) {
    .img-snap {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 420px) {
    .img-snap {
        width: 100px;
        height: 100px;
    }
}

.img-snap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Secondary Button Outline Variant */
.btn-outline {
    display: inline-block;
    border: 2px solid var(--burgundy);
    color: var(--burgundy);
    padding: 10px 25px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
}

.btn-outline:hover {
    background-color: var(--burgundy);
    color: var(--white);
}

/* Styling for the Our Story preview image */
.story-preview-img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(107, 29, 47, 0.1);
    object-fit: cover;
}

/* --- Product Filters --- */
.filter-section {
    text-align: center;
    padding: 30px 8% 10px;
    background-color: var(--white);
}

.filter-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 640px) {
    .filter-menu {
        gap: 8px;
    }
    .filter-btn {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 2px solid var(--burgundy);
    color: var(--burgundy);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--burgundy);
    color: var(--white);
}

/* --- Custom Clothing Banner --- */
.custom-clothing-banner {
    background-color: var(--light-pink-bg);
    padding: 60px 8%;
    text-align: center;
    margin: 40px 0;
    border-top: 2px dashed var(--burgundy);
    border-bottom: 2px dashed var(--burgundy);
}

.custom-clothing-banner h2 {
    color: var(--burgundy);
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 15px;
}

.custom-clothing-banner p {
    color: #555;
    max-width: 700px;
    margin: 0 auto 25px auto;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
}

/* --- Featured Bestseller (Home Page) --- */
.featured-bestseller {
    padding: 40px 8%;
    background-color: var(--white);
}

.bestseller-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: nowrap;
    background: var(--light-pink-bg);
    border-radius: 20px;
    padding: 40px;
}

.badge {
    background: var(--burgundy);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.bestseller-text {
    flex: 1;
}

.bestseller-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--burgundy);
}

.bestseller-image {
    flex: 1;
}

.bestseller-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(107,29,47,0.15);
}

/* --- Contact Form Updates --- */
.contact-form select, .contact-form input[type="file"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
}

.contact-form label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--burgundy);
}

/* --- About Page Structural Layout --- */
.about-section {
    padding: 40px 8%;
    background-color: var(--white);
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: nowrap;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--burgundy);
    margin-bottom: 5px;
}

.accent-line-left {
    width: 40px;
    height: 3px;
    background-color: var(--soft-pink);
    margin-bottom: 25px;
}

.about-text p {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    color: #555;
    margin-bottom: 20px;
    text-align: left;
}

.about-text .lead-text {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--charcoal);
    font-weight: 400;
}

.about-image {
    flex: 1;
    justify-content: center;
}

.about-img-frame {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(107, 29, 47, 0.12);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Mini Hero Banner Section --- */
.mini-hero {
    background: linear-gradient(rgba(107, 29, 47, 0.9), rgba(107, 29, 47, 0.9)); 
    padding: 30px 8%;
    text-align: center;
    color: var(--white);
}

.mini-hero-content h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 600;
    letter-spacing: 1px;
    text-align: left;
    display: inline-block;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    outline: none;
    background-color: var(--white);
    color: var(--charcoal);
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b1d2f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--burgundy);
    box-shadow: 0 0 0 3px rgba(107, 29, 47, 0.1);
}

  /* --- Mobile Responsiveness Breakpoints --- */

/* --- Tablet (768px - 992px) --- */
@media (max-width: 992px) {
    header {
        flex-direction: column;
        gap: 12px;
        padding: 15px 5%;
        text-align: left;
    }
    
    header nav {
        justify-content: flex-start;
    }
    
    header nav a {
        padding: 5px 10px;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 50px 5%;
        text-align: left;
        min-height: auto;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .offers-section,
    .products-container,
    .contact-section,
    .gallery-section,
    .home-about-preview,
    .home-gallery-preview,
    .featured-bestseller {
        padding-left: 5%;
        padding-right: 5%;
    }
    
    .offer-card {
        max-width: 100%;
        flex: 0 1 calc(50% - 20px);
    }
    
    .footer-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .footer-container > div {
        flex: 0 1 calc(50% - 15px);
        min-width: 200px;
    }
}

/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    header, 
    .hero, 
    .offers-section, 
    .products-header, 
    .products-container, 
    .contact-section, 
    .gallery-section, 
    .home-about-preview, 
    .home-gallery-preview, 
    .featured-bestseller, 
    .about-section, 
    .mini-hero, 
    footer {
        padding-left: 4% !important;
        padding-right: 4% !important;
    }
    
    /* Keep header text center-aligned on mobile */
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-top: 12px;
        padding-bottom: 12px;
        text-align: center;
    }
    
    header nav {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    header nav a {
        padding: 4px 8px;
        font-size: 0.85rem;
    }
    
    .hero {
        min-height: auto;
        padding-top: 40px;
        padding-bottom: 40px;
        text-align: left;
    }
    
    .hero h1 {
        font-size: clamp(1.5rem, 5vw, 1.8rem);
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .offers-section {
        padding-top: 20px;
        padding-bottom: 10px;
    }
    
    .offers-section h2 {
        font-size: 1.8rem;
    }
    
    .offers-container {
        gap: 15px;
    }
    
    .offer-card {
        flex: 0 1 100%;
        max-width: 100%;
        padding: 20px 15px;
    }
    
    /* Bestseller and about preview remain side by side on mobile */
    .bestseller-container,  
    .about-preview-container {
        flex-direction: row !important;
        text-align: left !important;
        gap: 15px !important;
        padding: 15px 12px !important;
        align-items: center;
    }
    
    .bestseller-text,
    .preview-text {
        flex: 1 1 55% !important;
        width: 55% !important;
        min-width: unset;
    }
    
    .bestseller-image,
    .preview-image-box {
        flex: 1 1 45% !important;
        width: 45% !important;
        min-width: unset;
    }

    .bestseller-image img,
    .about-img-frame,
    .story-preview-img {
        width: 100%;
        height: auto;
    }
    
    .contact-container {
        flex-direction: column;
        text-align: center !important;
        gap: 20px;
        padding: 25px 15px;
    }

    .contact-info, 
    .contact-form-wrapper {
        flex: none;
        width: 100%;
        min-width: unset;
    }
    
    .bestseller-text h2, 
    .about-text h2, 
    .contact-info h2 {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        text-align: left !important;
    }

    .about-container {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        text-align: center;
    }

    .about-text, 
    .about-image {
        width: 100%;
        flex: none;
    }

   .accent-line-left {
    margin: 0 0 15px 0 !important;
   }
    
    .about-text p {
        text-align: center;
    }
    
    .gallery-item {
        height: 220px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: left;
    }
    
    .footer-container > div {
        flex: 1 1 100%;
        min-width: unset;
    }
    
    .subscribe-form {
        justify-content: flex-start;
    }
    
    .subscribe-form input {
        width: 40%;
    }
    
    .mini-hero {
        padding: 30px 4% !important;
        text-align: center !important;
    }
    
    .mini-hero-content h1 {
        font-size: 1.6rem !important;
    }
    
    .mini-hero-content h1::after {
        margin: 8px 0 0 0 !important;
    }
}

/* --- Small Phones (max-width: 480px) --- */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    header {
        padding: 10px 3% !important;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    header nav a {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.85rem;
    }
    
    .products-grid {
        gap: 10px;
        padding: 0;
    }
    
    .card {
        padding: 8px;
    }
    
    .card .img-wrapper {
        height: 140px;
    }
    
    .card h3 {
        font-size: 0.75rem;
    }
    
    .card .price {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .cart-btn {
        padding: 6px 8px;
        font-size: 0.7rem;
    }
    
    .gallery-item {
        height: 160px;
    }
    
    .offer-card {
        padding: 15px 12px;
    }
    
    .offer-card h3 {
        font-size: 1rem;
    }
    
    .offers-section h2,
    .gallery-section h2,
    .products-header h2 {
        font-size: 1.5rem;
    }
    
    .subscribe-form input {
        width: 100%;
        border-radius: 4px 4px 0 0;
    }
    
    .subscribe-form button {
        width: 100%;
        border-radius: 0 0 4px 4px;
    }
}

/* --- Very Small Phones (max-width: 380px) --- */
@media (max-width: 380px) {
    .products-grid {
        gap: 8px;
    }
    
    .card .img-wrapper {
        height: 110px;
    }
    
    .card h3 {
        font-size: 0.65rem;
    }
    
    .card .price {
        font-size: 0.7rem;
    }
    
    .gallery-item {
        height: 130px;
    }
    
    .filter-btn {
        padding: 4px 10px;
        font-size: 0.65rem;
    }
}

/* --- Styling for link wrapping the cards --- */
.offer-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    transition: transform 0.3s ease;
}

.offer-card-link:hover {
    transform: translateY(-5px);
}

.offer-card {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(107, 29, 47, 0.04);
    border: 1px solid rgba(107, 29, 47, 0.05);
}

/* --- Brand-Matched Scrolling Marquee --- */
.announcement-marquee {
    background-color: #631C2D;
    color: #ffffff;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    padding: 10px 0;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.5rem, 1.2vw, 0.5rem);
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(99, 28, 45, 0.2);
    position: relative;
    z-index: 99;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-scroll 25s linear infinite;
}

.marquee-content span {
    display: inline-block;
    padding-right: 60px;
}

@keyframes marquee-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

.announcement-marquee:hover .marquee-content {
    animation-play-state: paused;
}

.custom-color-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: #fff0f3;
    border: 1px solid #ffccd5;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .custom-color-banner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

.banner-icon {
    font-size: 1.8rem;
}

.banner-text strong {
    color: #800020;
    display: block;
    margin-bottom: 4px;
}

.banner-text p {
    margin: 0;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    color: #4a4a4a;
}

/* FAQ SECTION STYLING */

.faq-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: inherit;
    color: #333333;
}

.faq-header {
    text-align: center;
    margin-bottom: 35px;
}

.faq-header h2 {
    font-size: clamp(1.6rem, 4vw, 2rem);
    color: #5a2a38;
    margin-bottom: 8px;
}

.faq-header p {
    color: #666666;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
}

/* --- Custom Color Banner --- */
.custom-color-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #fff0f3 0%, #ffe5ec 100%);
    border: 1px solid #ffccd5;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.15);
}

.banner-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.banner-text strong {
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    color: #800020;
    display: block;
    margin-bottom: 4px;
}

.banner-text p {
    margin: 0;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    color: #4a4a4a;
    line-height: 1.5;
}

/* --- FAQ Cards --- */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #f0e6e8;
    border-radius: 12px;
    padding: 22px 26px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border-color: #ffd6e0;
}

.faq-item h3 {
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    font-weight: 600;
    color: #800020;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-item p {
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

/* --- CTA Bottom Contact Button --- */
.faq-contact-cta {
    text-align: center;
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px dashed #e5d5d8;
}

.faq-contact-cta p {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    color: #555555;
    margin-bottom: 15px;
}

.contact-btn {
    display: inline-block;
    background-color: #800020;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    transition: background-color 0.2s ease, transform 0.2s ease;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
}

.contact-btn:hover {
    background-color: #800020;
    transform: scale(1.03);
}

@media (max-width: 600px) {
    .custom-color-banner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .faq-item {
        padding: 16px 20px;
    }
}

/* Badge Version */
.product-care-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #faf7f8;
    border: 1px solid #f0e6e8;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 15px;
    font-size: clamp(0.75rem, 1vw, 0.85rem);
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 480px) {
    .product-care-badge {
        flex-direction: column;
        text-align: center;
    }
}

.product-care-badge span {
    color: #4a4a4a;
    font-weight: 500;
}

.product-care-badge a {
    color: #800020;
    text-decoration: none;
    font-weight: 600;
}

.product-care-badge a:hover {
    text-decoration: underline;
}

/* LOVE IT. CARE FOR IT. (BESTSELLER MIRROR STYLING) */

.care-guide-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.care-container {
    background-color: #fdf2f4;
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

@media (max-width: 768px) {
    .care-container {
        padding: 32px 20px;
    }
}

@media (max-width: 480px) {
    .care-container {
        padding: 24px 15px;
    }
}

.care-content {
    max-width: 800px;
}

.care-badge {
    display: inline-block;
    background-color: #6a1b29;
    color: #ffffff;
    font-size: clamp(0.7rem, 1vw, 0.82rem);
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    margin-bottom: 20px;
}

.care-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    color: #5b1322;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.care-divider {
    width: 50px;
    height: 3px;
    background-color: #f4c2c2;
    margin-bottom: 20px;
    border-radius: 2px;
}

.care-description {
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    line-height: 1.6;
    color: #4a4a4a;
    margin-bottom: 32px;
}

.care-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 640px) {
    .care-details {
        grid-template-columns: 1fr;
    }
}

.care-item {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 204, 213, 0.4);
}

.care-item h3 {
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    color: #5b1322;
    margin: 0 0 4px 0;
}

.care-item .yarn-usage {
    font-size: clamp(0.75rem, 1vw, 0.85rem);
    color: #777777;
    margin-bottom: 12px;
    font-style: italic;
}

.care-item ul {
    padding-left: 18px;
    margin: 0;
    color: #4a4a4a;
    font-size: clamp(0.8rem, 1.1vw, 0.92rem);
    line-height: 1.5;
}

.care-item li {
    margin-bottom: 6px;
}

.care-btn {
    display: inline-block;
    background-color: #f8c8d0;
    color: #5b1322;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.care-btn:hover {
    background-color: #f4b6c2;
    transform: translateY(-2px);
}

/* GENERAL CARE TIPS */

.general-care-tips {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 24px 28px;
    border: 1px solid rgba(255, 204, 213, 0.4);
    margin-top: 24px;
}

@media (max-width: 480px) {
    .general-care-tips {
        padding: 18px 16px;
    }
}

.general-care-tips h3 {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    font-weight: 700;
    color: #5b1322;
    margin-top: 0;
    margin-bottom: 14px;
}

.general-care-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.general-care-tips li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: clamp(0.8rem, 1.1vw, 0.95rem);
    line-height: 1.6;
    color: #4a4a4a;
}

.general-care-tips li:last-child {
    margin-bottom: 0;
}

.general-care-tips li::before {
    content: "•";
    position: absolute;
    left: 4px;
    top: 0;
    color: #800020;
    font-size: 1.2rem;
    line-height: 1;
}

/*  UNIFIED CUSTOM REQUESTS SECTION */

.custom-requests-section {
    padding: 40px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.custom-card {
    background-color: #fdf2f4;
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 204, 213, 0.5);
}

@media (max-width: 600px) {
    .custom-card {
        padding: 28px 20px;
    }
}

.custom-badge {
    display: inline-block;
    background-color: #6a1b29;
    color: #ffffff;
    font-size: clamp(0.7rem, 1vw, 0.8rem);
    font-weight: 600;
    padding: 5px 16px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.custom-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 700;
    color: #5b1322;
    margin: 0 0 12px 0;
    line-height: 1.25;
}

.custom-divider {
    width: 50px;
    height: 3px;
    background-color: #f4c2c2;
    margin-bottom: 28px;
    border-radius: 2px;
}

.custom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

@media (max-width: 640px) {
    .custom-grid {
        grid-template-columns: 1fr;
    }
}

.custom-item {
    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 16px;
    padding: 22px 24px;
    border: 1px solid rgba(255, 204, 213, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.custom-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.custom-icon {
    font-size: 1.5rem;
}

.custom-item h3 {
    font-size: clamp(0.9rem, 1.3vw, 1.1rem);
    font-weight: 600;
    color: #5b1322;
    margin: 0;
}

.custom-item p {
    font-size: clamp(0.8rem, 1.1vw, 0.93rem);
    line-height: 1.55;
    color: #4a4a4a;
    margin: 0;
}

.custom-item em {
    color: #777;
}

.custom-cta {
    text-align: left;
}

.custom-btn {
    display: inline-block;
    background-color: #800020;
    color: #ffffff;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
    transition: all 0.2s ease;
}

.custom-btn:hover {
    background-color: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

@media (max-width: 600px) {
    .custom-btn {
        display: block;
        text-align: center;
        width: 100%;
    }
}

/*  WELCOME BACK BANNER STYLING */

.welcome-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 600px;
    background-color: #fdf2f4;
    border: 1px solid #f8c8d0;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(91, 19, 34, 0.12);
    padding: 10px 20px;
    transition: all 0.4s ease-in-out;
}

.welcome-banner.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -20px);
}

@media (max-width: 480px) {
    .welcome-banner {
        border-radius: 16px;
        padding: 12px 16px;
        top: 10px;
        width: 95%;
    }
}

.welcome-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

@media (max-width: 480px) {
    .welcome-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

.welcome-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    color: #4a4a4a;
}

.welcome-text strong {
    color: #5b1322;
}

.welcome-icon {
    font-size: 1.2rem;
}

.welcome-text p {
    margin: 0;
}

.welcome-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .welcome-actions {
        width: 100%;
        justify-content: space-between;
    }
}

.welcome-btn {
    background-color: #6a1b29;
    color: #ffffff;
    font-size: clamp(0.7rem, 1vw, 0.82rem);
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.welcome-btn:hover {
    background-color: #5b1322;
    transform: translateY(-1px);
}

.welcome-close-btn {
    background: none;
    border: none;
    font-size: 1rem;
    color: #888888;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.welcome-close-btn:hover {
    color: #5b1322;
}
