@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Inter:wght@300;400;500&display=swap');

:root {
    --primary: #8e6d5d;
    /* Warm Earthy Brown */
    --secondary: #d4a373;
    /* Warm Gold/Sand */
    --accent: #bc6c25;
    /* Deep Burnt Orange */
    --bg-light: #fefae0;
    /* Creamy Off-white */
    --text-dark: #283618;
    /* Deep Forest Green/Black */
    --text-muted: #606c38;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

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

h1,
h2,
h3,
h4,
.brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

/* Layout */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a:hover {
    color: var(--primary);
}

.brand-name {
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: var(--primary);
    text-transform: uppercase;
}

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

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.hamburger.active span:first-child {
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Content Wrapper */
.main-wrapper {
    min-height: 80vh;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--bg-light);
    padding: 4rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h4 {
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(254, 250, 224, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('https://images.unsplash.com/photo-1606112219747-d31988894452?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 0 10%;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* Components */
.section-title {
    text-align: center;
    margin: 4rem 0 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 5% 5rem;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.product-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

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

.category-grid {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 0 5% 4rem;
    scrollbar-width: none;
}

.category-pill {
    padding: 1rem 2rem;
    background: white;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: var(--shadow);
    font-weight: 600;
}

.category-pill.active {
    background: var(--primary);
    color: white;
}

.contact-grid-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
}

/* Floating Contact Icons */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.contact-icon:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.contact-icon.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.contact-icon.phone {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

/* Quick Add to Cart Button */
.product-card {
    position: relative;
}

.quick-add-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 5;
}

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

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 3%;
    }

    .hamburger {
        display: flex !important;
    }

    .nav-links {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        height: 100vh !important;
        width: 100% !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px);
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2.5rem !important;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: none !important;
        z-index: 1000 !important;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
        letter-spacing: 1px;
    }

    .nav-links.active {
        right: 0 !important;
    }

    .hero-carousel-container {
        height: 60vh !important;
        min-height: 400px !important;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
        padding: 0 3% 3rem;
    }

    .product-image {
        height: 220px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Product Detail Responsiveness */
    .product-container {
        padding: 2rem 5% 5rem !important;
    }

    .product-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    .product-detail-info h1 {
        font-size: 2rem !important;
    }

    .product-detail-info .price {
        font-size: 1.5rem !important;
    }

    /* Review Section Responsiveness */
    .review-summary {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        padding: 2rem !important;
        border-radius: 20px !important;
    }

    .review-summary>div:first-child {
        border-right: none !important;
        border-bottom: 1px solid #eee !important;
        padding-right: 0 !important;
        padding-bottom: 2rem !important;
    }

    .review-section-content {
        grid-template-columns: 1fr !important;
        gap: 4rem !important;
    }

    .review-card {
        gap: 1.2rem !important;
    }

    .review-card div:first-child {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.9rem !important;
    }

    .review-form-side {
        order: -1;
        /* Place form above list on mobile if preferred, or keep as is */
    }

    .review-form-side>div {
        position: static !important;
        padding: 2rem !important;
        border-radius: 20px !important;
    }

    /* Navbar Spacing on Mobile */
    .brand-name {
        font-size: 1.2rem !important;
    }

    .nav-icons {
        gap: 1rem !important;
    }

    .floating-contact {
        bottom: 25px !important;
        right: 15px !important;
        gap: 12px !important;
    }

    .contact-icon {
        width: 48px !important;
        height: 48px !important;
    }
    
    .contact-icon svg {
        width: 24px !important;
        height: 24px !important;
    }

    .cart-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    .cart-table thead {
        display: none !important;
    }

    .cart-table tr {
        display: block !important;
        padding: 2rem 0 !important;
        position: relative !important;
    }

    .cart-table td {
        display: block !important;
        padding: 0.5rem 0 !important;
        width: 100% !important;
        text-align: left !important;
    }

    .col-product {
        gap: 1.5rem !important;
    }

    .col-product img {
        width: 60px !important;
        height: 75px !important;
    }

    .col-price {
        display: none !important;
        /* Hide redundant price if wanted, or keep it */
    }

    .col-total {
        text-align: left !important;
        font-size: 1.1rem !important;
        margin-top: 1rem !important;
    }

    .cart-summary {
        padding: 2rem !important;
    }

    .contact-grid-main {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    /* Phase 15: Mobile Layout Adjustments */
    .shop-product-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.2rem !important;
        padding: 1rem 4% 4rem !important;
    }

    .shop-product-grid .product-card-img-wrapper {
        height: 220px !important;
    }

    .shop-product-grid .product-info {
        padding: 1.2rem 0.8rem !important;
    }

    .shop-product-grid .product-name {
        font-size: 0.85rem !important;
        height: 2.4rem;
        overflow: hidden;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .category-grid {
        padding: 0 5% 2rem !important;
        gap: 1rem !important;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch;
    }

    .category-pill {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.85rem !important;
    }

    .home-product-grid {
        display: flex !important;
        overflow-x: auto !important;
        gap: 1.5rem !important;
        padding: 0 5% 4rem !important;
        scroll-snap-type: x mandatory !important;
        scrollbar-width: none !important;
        /* Hide scrollbar Firefox */
    }

    .home-product-grid::-webkit-scrollbar {
        display: none !important;
        /* Hide scrollbar Chrome/Safari */
    }

    .home-product-grid .product-card {
        flex: 0 0 85% !important;
        scroll-snap-align: center !important;
        box-shadow: 0 15px 40px rgba(0,0,0,0.06) !important;
    }

    .home-product-grid .product-image {
        height: 280px !important;
    }

    /* General Stacking */
    section,
    .section-title {
        padding-left: 6% !important;
        padding-right: 6% !important;
    }

    .product-container {
        padding: 2rem 6% 6rem !important;
    }

    .product-detail-grid {
        gap: 2.5rem !important;
    }

    .product-detail-info h1 {
        text-align: center;
        font-size: 1.8rem !important;
    }

    .product-detail-info .price {
        text-align: center;
        margin-bottom: 1.5rem !important;
    }
    
    .product-detail-info nav {
        text-align: center;
        margin-bottom: 1.5rem !important;
    }
    
    .sale-badge {
        padding: 0.25rem 0.6rem !important;
        font-size: 0.7rem !important;
    }
}

.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-old {
    text-decoration: line-through;
    opacity: 0.5;
    font-size: 0.85em;
    margin-right: 0.6rem;
    font-weight: 400;
}

.offers-section {
    background: #fffafa;
    padding: 6rem 0;
    margin: 4rem 0;
    border-top: 1px solid rgba(230, 57, 70, 0.05);
    border-bottom: 1px solid rgba(230, 57, 70, 0.05);
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 991px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* Reviews Section Mobile */
    .reviews-layout {
        grid-template-columns: 1fr !important;
        gap: 4rem !important;
    }

    .review-summary {
        flex-direction: column !important;
        gap: 2rem !important;
        text-align: center;
        padding: 2rem !important;
    }

    .review-summary > div:first-child {
        border-right: none !important;
        border-bottom: 1px solid #eee !important;
        padding-right: 0 !important;
        padding-bottom: 2rem !important;
    }

    .reviews-right {
        order: -1;
    }

    .reviews-right > div {
        position: static !important;
        padding: 2rem !important;
    }

    .checkout-form-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
}

/* Desktop Grids */
.reviews-layout {
    grid-template-columns: 1fr 1.2fr;
}

.checkout-form-grid {
    grid-template-columns: 1.2fr 1fr;
}

@media (max-width: 991px) {
    .reviews-layout, .checkout-form-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}
