/* --- গ্লোবাল স্টাইল --- */
body {
    font-family: 'SolaimanLipi', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

a {
    text-decoration: none;
    color: #0d6efd;
}
a:hover {
    color: #0a58ca;
}

.btn-primary {
    background-color: #00796b; /* প্রিমিয়াম গ্রিন */
    border-color: #00796b;
}
.btn-primary:hover {
    background-color: #004d40;
    border-color: #004d40;
}

/* --- হেডার স্টাইল --- */
.header-section .top-bar {
    background-color: #f1f1f1;
    font-size: 0.9rem;
}
.header-section .top-bar a {
    color: #333;
    text-decoration: none;
}
.navbar-brand img {
    max-height: 50px;
}
.nav-link {
    font-weight: 500;
    color: #555;
}
.nav-link.active, .nav-link:hover {
    color: #00796b;
}

/* --- AJAX সার্চ ওভারলে (আপনার রিকোয়ারমেন্ট) --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1050;
    display: none; /* JS দিয়ে খোলা হবে */
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.search-overlay .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}
.search-box-container {
    width: 100%;
    max-width: 700px;
    position: relative;
}
#ajax-search-input {
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 1.2rem;
}
#ajax-search-results {
    max-height: 40vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    margin-top: 15px;
}
.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}
.search-result-info {
    flex-grow: 1;
}
.search-result-info h6 {
    margin-bottom: 0;
    font-size: 1rem;
}
.search-result-info p {
    margin-bottom: 0;
    color: #00796b;
    font-weight: bold;
}
.search-result-actions .btn {
    font-size: 0.8rem;
    padding: 5px 10px;
}

/* --- হিরো সেকশন --- */
.hero-section {
    height: 60vh;
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.5);
}

/* --- প্রোডাক্ট কার্ড (1:1 ইমেজ রেশিও) --- */
.product-card {
    border-radius: 10px;
    transition: all 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

/* এই ক্লাসটি 1:1 রেশিও নিশ্চিত করে */
.product-image-container {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ছবিকে না চেপ্টা করে কন্টেইনারে ফিট করে */
    transition: transform 0.3s ease;
}
.product-card:hover .product-image-container img {
    transform: scale(1.05); /* হোভারে জুম ইফেক্ট */
}
.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.product-title a {
    color: #333;
    text-decoration: none;
}
.product-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #00796b;
}

/* --- ফুটার --- */
.footer-section {
    border-top: 5px solid #00796b;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.2s ease;
}
.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}
.social-icons a {
    color: #fff;
    font-size: 1.2rem;
    margin-right: 15px;
}

/* --- WhatsApp ফ্লোটিং বাটন --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.whatsapp-float:hover {
    color: #fff;
}
/* --- কার্ট পেজ স্টাইল (cart.php) --- */
.cart-page-wrapper h6 {
    font-weight: bold;
    font-size: 0.9rem;
}
.cart-qty-input {
    /* ইনপুট ফিল্ডের অ্যারো বাটন হাইড করা */
    -moz-appearance: textfield;
}
.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.cart-item-row .remove-item-btn {
    font-size: 1.2rem;
    line-height: 1;
}
.unit-price {
    font-size: 0.8rem;
}
.item-subtotal-display {
    font-weight: bold;
    color: #00796b;
}
/* --- অর্ডার সাকসেস পেজ (order_success.php) --- */
.bg-warning-light {
    background-color: #fff8e1;
    border: 1px solid #ffe57f;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    background-color: #00796b; /* আমাদের প্রাইমারি সবুজ রঙ */
    display: inline-block;
}

.checkmark-circle .checkmark-stem {
    position: absolute;
    width: 6px;
    height: 40px;
    background-color: #fff;
    left: 37px;
    top: 20px;
    transform: rotate(45deg);
}

.checkmark-circle .checkmark-kick {
    position: absolute;
    width: 20px;
    height: 6px;
    background-color: #fff;
    left: 25px;
    top: 54px;
    transform: rotate(45deg);
}
/* --- আপগ্রেডেড হিরো ব্যানার (অ্যানিমেশন) --- */
.main-hero-slider .carousel-item {
    height: 70vh; /* ব্যানার হাইট */
    min-height: 400px;
    background-size: cover;
    background-position: center;
}
.main-hero-slider .carousel-caption-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* ডার্ক ওভারলে */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.main-hero-slider .carousel-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* অ্যানিমেশন */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.main-hero-slider .carousel-item.active .animated-text {
    animation: fadeInUp 1s ease 0.3s both;
}
.main-hero-slider .carousel-item.active .animated-button {
    animation: fadeIn 1s ease 1s both;
}


/* --- আপগ্রেডেড প্রোডাক্ট কার্ড (ক্লিক ফিক্স) --- */
.product-card .stretched-card-button {
    /* stretched-link এর উপরে বাটনটিকে রাখার জন্য */
    position: relative; 
    z-index: 2;
}
.product-card .product-title a {
    color: #333;
    text-decoration: none;
}
.product-card .product-title a:hover {
    color: #00796b; /* আপনার প্রাইমারি কালার */
}

/* 1:1 ইমেজ রেশিও (আগের কোড) */
.product-image-container {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.product-card:hover .product-image-container img {
    transform: scale(1.05);
}
/* --- রিভিউ রেটিং স্টার --- */
.rating-stars {
    display: inline-block;
    direction: rtl; /* স্টারগুলো ডান থেকে বামে দেখাবে */
}
.rating-stars input[type="radio"] {
    display: none;
}
.rating-stars label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}
.rating-stars input[type="radio"]:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: #ffc107; /* হলুদ স্টার */
}