/* ===================================================================
   style.css - Main Stylesheet for Kushtia Heritage
   Version: Final, Unified, and Professional
   Description: This file contains all global styles for the website,
                including header, footer, typography, and product cards.
   =================================================================== */

/* --- ১. ভ্যারিয়েবল ও বেসিক রিসেট --- */
:root {
    --font-primary: 'Hind Siliguri', sans-serif; 
    --color-bg: #FAF8F5;
    --color-text: #4a4a4a;
    --color-primary: #9A3B3B;
    --color-secondary: #E0C097;
    --color-accent: #1A4D2E;
    --color-white: #FFFFFF;
    --color-border: #EAE1D9;
    --color-footer-bg: #F3ECE4;
    --transition-speed: 0.4s;
    --container-width: 1200px;
}

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 15px; }
a { text-decoration: none; color: inherit; transition: color var(--transition-speed) ease; }
a:hover { color: var(--color-primary); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { color: var(--color-primary); }
.section-spacing { padding: 80px 0; }
.section-title { text-align: center; font-size: 2.5em; margin-bottom: 50px; font-weight: 700; }

/* --- ২. হেডার ও নেভিগেশন --- */
.main-header {
    background-color: rgba(250, 248, 245, 0.9);
    backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-top-bar { padding: 15px 0; border-bottom: 1px solid var(--color-border); }
.top-bar-content { display: flex; justify-content: space-between; align-items: center; }
.brand-logo img { height: 40px; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-icon { font-size: 1.5rem; position: relative; }
.cart-icon-wrapper .cart-count { position: absolute; top: -5px; right: -10px; background-color: var(--color-primary); color: var(--color-white); font-size: 0.7rem; width: 18px; height: 18px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: bold; }
.nav-menu-mobile { background-color: var(--color-bg); border-bottom: 1px solid var(--color-border); overflow-x: auto; white-space: nowrap; }
.nav-menu-mobile ul { list-style: none; display: flex; justify-content: space-around; padding: 5px 0; }
.nav-menu-mobile a { display: block; padding: 8px 12px; font-size: 0.95em; font-weight: 500; border-bottom: 2px solid transparent; transition: all var(--transition-speed) ease; }
.nav-menu-mobile a:hover { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.nav-menu-desktop { display: none; }

/* --- ৩. হিরো সেকশন (শুধুমাত্র হোমপেজ) --- */
.hero-grid-section { position: relative; width: 100%; margin-bottom: 60px; }
.hero-grid-container { display: grid; width: 100%; height: 60vh; gap: 8px; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; grid-template-areas: "tall top-right" "tall bottom-right"; }
.hero-grid-item { position: relative; overflow: hidden; background-color: var(--color-border); border-radius: 12px; }
.hero-grid-item.tall { grid-area: tall; }
.hero-grid-item.wide:nth-of-type(2) { grid-area: top-right; }
.hero-grid-item.wide:nth-of-type(3) { grid-area: bottom-right; }
.hero-grid-item .content-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; transform: scale(1.15); opacity: 0; transition: opacity 1.5s ease-in-out, transform 12s ease-out; }
.hero-grid-item .content-bg.active { opacity: 1; transform: scale(1); }
.hero-grid-item .content-text { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; color: var(--color-white); padding: 25px; background: linear-gradient(0deg, rgba(26, 77, 46, 0.85) 0%, rgba(26, 77, 46, 0) 70%); opacity: 0; transition: opacity 1.5s ease-in-out; }
.hero-grid-item .content-text.active { opacity: 1; }
.content-text h2, .content-text p, .content-text .btn-slide { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out 0.8s, transform 0.6s ease-out 0.8s; }
.content-text.active h2, .content-text.active p, .content-text.active .btn-slide { opacity: 1; transform: translateY(0); }
.content-text h2 { font-size: 1.8em; } .content-text p { font-size: 1em; margin: 8px 0 20px; }
.btn-slide { background: var(--color-secondary); color: var(--color-primary); padding: 10px 25px; border-radius: 5px; font-weight: bold; transition: transform 0.3s; font-size: 1em; }
.btn-slide:hover { transform: scale(1.05); }

/* --- ৪. ক্যাটাগরি কার্ড --- */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; max-width: 800px; margin: 0 auto; }
.category-card { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.category-card .image-wrapper { width: 120px; height: 120px; border-radius: 50%; border: 2px solid var(--color-border); padding: 5px; position: relative; transition: transform var(--transition-speed) ease; }
.category-card:hover .image-wrapper { transform: scale(1.05); }
.category-card .image-wrapper::before { content: ''; position: absolute; top: -4px; left: -4px; right: -4px; bottom: -4px; border-radius: 50%; border: 2px dashed var(--color-secondary); opacity: 0; transform: scale(0.95) rotate(45deg); transition: all var(--transition-speed) ease-in-out; }
.category-card:hover .image-wrapper::before { opacity: 1; transform: scale(1) rotate(0deg); }
.category-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.category-card h3 { font-size: 1.2em; font-weight: 500; }

/* --- পণ্য কার্ডের চূড়ান্ত শৈল্পিক ডিজাইন (সকল পেজের জন্য) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* মোবাইলে ২ কলাম */
    gap: 30px;
}

.product-card {
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(154, 59, 59, 0.12);
}

.product-card .product-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1.1;
}

.product-card .product-image {
    width: 100%; height: 100%; object-fit: cover; 
    transition: transform 0.5s ease;
}
.product-card:hover .product-image {
    transform: scale(1.05);
}

/* নতুন "কার্টে যোগ করুন" বাটন ডিজাইন */
.btn-add-to-cart-icon {
    position: absolute;
    bottom: 20px; right: 20px;
    width: 50px; height: 50px;
    border-radius: 50%;
    border: none;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.product-card:hover .btn-add-to-cart-icon {
    transform: scale(1);
}
.btn-add-to-cart-icon:hover {
    background-color: var(--color-accent);
}

.product-card .product-info {
    padding: 25px;
    text-align: center;
}
.product-card .product-info h3 {
    font-size: 1.1rem; font-weight: 500;
    margin-bottom: 10px;
    height: 45px; overflow: hidden;
}
.product-card .product-info .price {
    font-size: 1.2rem; font-weight: bold;
    color: var(--color-primary);
}
.product-card .product-info .price del {
    font-size: 0.9rem; font-weight: normal; color: #aaa; margin-left: 8px;
}

/* --- রেসপন্সিভ ডিজাইন --- */
@media (min-width: 768px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- ৬. ফুটার --- */
.main-footer { background-color: var(--color-footer-bg); padding: 50px 0 20px; margin-top: 80px; border-top: 1px solid var(--color-border); font-size: 0.9em; }
.footer-widgets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--color-border); text-align: left; }
.footer-widget.brand-widget { grid-column: 1 / -1; text-align: center; margin-bottom: 20px; }
.footer-logo img { height: 50px; margin: 0 auto 15px; }
.footer-tagline { font-size: 1.1em; font-style: italic; max-width: 300px; margin: 0 auto; }
.widget-title { margin-bottom: 15px; font-weight: 700; font-size: 1.1em; }
.footer-widget ul { list-style: none; padding: 0; }
.footer-widget ul li { margin-bottom: 10px; }
.footer-widget address { font-style: normal; line-height: 1.7; }
.social-icons { display: flex; justify-content: flex-start; gap: 15px; margin-top: 15px; }
.social-icons a { font-size: 1.5rem; }
.footer-bottom { display: flex; flex-direction: column; align-items: center; text-align: center; }
.developer-credit { margin-top: 8px; font-size: 0.85em; }
.developer-credit a { font-weight: bold; color: var(--color-accent); }

/* --- ৭. রেসপন্সিভ ডিজাইন --- */
@media (min-width: 768px) {
    .brand-logo img { height: 50px; }
    .hero-grid-container { height: 85vh; }
    .content-text h2 { font-size: 3.5em; } .content-text p { font-size: 1.2em; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-widgets { grid-template-columns: repeat(4, 1fr); }
    .footer-widget.brand-widget { grid-column: 1 / 3; text-align: left; }
    .footer-logo img, .footer-tagline { margin-left: 0; }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
    .developer-credit { margin-top: 0; }
}

@media (min-width: 992px) {
    .nav-menu-mobile { display: none; }
    .top-bar-content { display: grid; grid-template-columns: 1fr auto 1fr; }
    .brand-logo { justify-self: start; } .nav-right { justify-self: end; }
    .nav-menu-desktop { display: block; justify-self: center; }
    .nav-menu-desktop ul { list-style: none; display: flex; gap: 40px; }
    .nav-menu-desktop a { font-weight: 500; font-size: 1.1em; padding-bottom: 5px; position: relative; }
    .nav-menu-desktop a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background-color: var(--color-primary); transition: width var(--transition-speed) ease; }
    .nav-menu-desktop a:hover::after { width: 100%; }
    .footer-widgets { grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 30px; }
    .footer-widget.brand-widget { grid-column: auto; }
}

@media (min-width: 1200px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); gap: 25px; }
}


.delivery-watermark {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 1.5rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
    background-color: rgba(0, 0, 0, 0.3);
    padding: 5px 15px;
    border-radius: 5px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.product-card:hover .delivery-watermark {
    opacity: 1;
}