:root {
    --primary-color: #8B4513; /* SaddleBrown */
    --primary-dark: #A0522D; /* Sienna */
    --secondary-color: #D2B48C; /* Tan */
    --success-color: #2E8B57; /* SeaGreen */
    --danger-color: #C04000; /* Mahogany */
    --warning-color: #DAA520; /* GoldenRod */
    --light-bg: #F5F5DC; /* Beige */
    --dark-text: #5C4033; /* Dark Brown */
    --light-text: #A9A9A9; /* DarkGray */
    --border-color: #DEB887; /* BurlyWood */
    --shadow-light: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --border-radius-lg: 16px;
}

* {
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
    padding-bottom: 100px;
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

.product-swiper-img {
    height: 300px;
    width: 100%;
    object-fit: cover;
}

.container-fluid {
    padding: 0;
}

.container-no-padding {
    padding-left: 0;
    padding-right: 0;
}

/* Header Styles */
.hero-section {
    background: var(--light-bg);
    color: var(--dark-text);
    padding: 10px 0;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23000000" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.brand-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 5px;
    letter-spacing: -0.5px;
    font-family: 'Playfair Display', serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.brand-logo {
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

.brand-tagline {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

.hero-icon {
    font-size: 2rem;
    color: var(--primary-color);
    background: white;
    padding: 0.8rem;
    border-radius: 50%;
    box-shadow: var(--shadow-medium);
}

/* Banner Slider */
.banner-section {
    margin: 0;
}

.banner-swiper {
    height: 400px;
    width: 100%;
}

.banner-slide {
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    text-align: left;
}

.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.154);
}

.swiper-slide .banner-text {
    max-width: 1000px;
}

.banner-text {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 1000px !important;
}

.banner-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.banner-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Products Section */
.products-section {
    padding: 2rem 0;
    background: white;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}


/* Product Cards */
.product-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid var(--border-color);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-medium);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    background: var(--light-bg);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--danger-color);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-info {
    padding: 1.25rem;
    text-align: center;
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.3rem;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 2;   /* show only 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 0.4rem;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 2;   /* show only 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0rem;
}

.old-price {
    text-decoration: line-through;
    color: var(--light-text);
    font-size: 0.9rem;
}

.new-price {
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.view-btn {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.view-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-heavy);
    background: var(--light-bg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--dark-text);
    font-size: 1.3rem;
    margin-bottom: .5rem;
}

.modal-body {
    padding: 1rem;
}

.product-swiper {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.quantity-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.quantity-display {
    font-size: 1.2rem;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

.add-to-cart-btn {
    background: var(--danger-color);
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
    width: 100%;
    color: white;
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
    color: var(--light-bg);
}

/* Cart Bar */
.cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--light-bg);
    color: white;
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.cart-bar .item-all {
    max-width: 1000px !important;
    margin-left: auto;
    margin-right: auto;
}

.cart-bar.show {
    display: block;
    animation: slideUp 0.3s ease;
}

.cart-info {
    font-size: 0.9rem;
    color: var(--dark-text);
}

.cart-total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark-text);
}

.view-cart-btn {
    background: var(--danger-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.view-cart-btn:hover {
    background: var(--primary-color);
    color: var(--light-bg);
}

.place-order-btn {
    background: green;
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.place-order-btn:hover {
    background: darkgreen;
}



/* Cart Drawer */
.cart-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--light-bg);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -8px 30px rgba(0,0,0,0.15);
    z-index: 1001;
    max-height: 70vh;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.cart-drawer.show {
    transform: translateY(0);
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: white;
}

.cart-item {
    padding: 0.75rem .5rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--light-bg);
}

.cart-item-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;

        display: -webkit-box;
    -webkit-line-clamp: 2;   /* show only 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
}

.cart-item-remove {
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
    padding: 0.5rem;
}

.cart-item-remove:hover {
    transform: scale(1.2);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: white;
}

/* Footer */
.footer {
    background: var(--dark-text);
    color: var(--light-bg);
    padding: 1rem 0 2rem;
    margin-top: 0rem;
    margin-bottom: -6rem;
    text-align: center;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    
}

.footer-tagline {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    justify-content: center;
}

.social-link {
    color: var(--light-bg);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-link:hover {
    color: var(--primary-color);
    background: white;
    transform: translateY(-2px);
}

.footer h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--light-bg);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: white;
}

.footer-credit {
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.footer-credit strong {
    color: var(--danger-color);
}

.footer-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: center;
    justify-content: center;
}

.fc-link {
    color: var(--light-bg);
    text-decoration: none;
    opacity: 1;
    transition: all 0.3s ease;

}

/* Mobile (default) */
@media (max-width: 767px) {
    .footer-branding {
        flex-direction: column;
        text-align: center;
        gap: 0;
    }
}

/* Desktop */
@media (min-width: 768px) {
    .footer-branding {
        flex-direction: row;
        text-align: left;
    }

    .footer-logo {
        width: 200px;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .products-section .container {
        padding: 0 .35rem;
    }

    .banner-swiper {
        margin: 0;
        height: 300px;
    }

    .banner-slide {
        font-size: 0.95rem;
        padding: 0.75rem;
    }

    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 0.5rem;
    }

    .cart-bar {
        padding: 0.75rem;
    }

    .brand-name {
        font-size: 1.5rem;
    }

    .hero-icon {
        font-size: 2rem;
    }

    .modal-dialog {
        padding: 0px;
        width: 90%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        top: 20px;
    }
    .modal-content {
        height: auto;
        border-radius: 0;
        overflow-y: auto;
        border-radius: var(--border-radius);
        margin-bottom: 50px;
    }
    .modal-body {
        overflow-y: auto;
    }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Loading Animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
