/* /assets/css/style.css - Full Code with High Conversion Sticky Footer */
/* Google Fonts loaded async from header.php for faster page load */
/* @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Noto+Sans+Bengali:wght@400;500;700&display=swap'); */

:root {
    --primary-color: #0072e5;
    --primary-hover: #0056b3;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --success-hover: #218838;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --text-dark: #212529;
    --text-light: #495057;
    --surface-color: #ffffff;
    --background-color: #f8f9fa;
    --border-color: #dee2e6;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Noto Sans Bengali', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
    --container-width: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--background-color);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
    padding-top: 70px;
}

.container {
    max-width: var(--container-width);
    width: 95%;
    margin: 0 auto;
    padding: 20px 0;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary-full {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-primary-full:hover {
    background-color: var(--primary-hover);
}

.btn-primary-full:disabled {
    background-color: var(--secondary-color) !important;
    cursor: not-allowed;
}

.btn-primary-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

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

.btn-secondary-outline {
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    background-color: transparent;
}

.btn-secondary-outline:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* --- Header Section --- */
.site-header {
    background-color: var(--surface-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    max-width: var(--container-width);
    margin: 0 auto;
    width: 95%;
    height: 70px;
    gap: 15px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-area img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-area .brand-name {
    font-family: var(--heading-font);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-left: 15px;
}

.search-area-desktop {
    flex-grow: 1;
    margin: 0 25px;
}

.search-bar {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.search-bar input {
    width: 100%;
    height: 44px;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    font-size: 16px;
    font-family: var(--body-font);
    transition: all 0.3s ease;
}

.search-bar input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

.search-bar button {
    display: none;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px;
}

.main-nav li a {
    padding: 8px 15px;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: 5px;
}

.main-nav li a:hover,
.main-nav li a.active {
    background-color: var(--primary-color);
    color: white;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s, color 0.3s;
}

.header-action-btn:hover {
    background-color: #f1f1f1;
    color: var(--primary-color);
}

.header-action-btn i {
    font-size: 20px;
}

.cart-icon-area {
    position: relative;
}

#cart-counter {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

#mobile-menu-toggle,
.header-actions-default,
.header-actions-search {
    display: none;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1005;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background-color: white;
    z-index: 1006;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform 0.4s ease, visibility 0.4s ease;
    display: flex;
    flex-direction: column;
}

.mobile-nav-overlay.show,
.mobile-nav-menu.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-header .brand-name {
    font-weight: 700;
    font-size: 20px;
}

.mobile-menu-close {
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
}

.mobile-nav-body {
    padding: 20px;
    overflow-y: auto;
}

.mobile-main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-main-nav li a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    border-bottom: 1px solid #f1f3f5;
}

.mobile-nav-categories {
    margin-top: 20px;
    border-top: 1px solid #f1f3f5;
    padding-top: 10px;
}

.mobile-nav-categories h4 {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.mobile-nav-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-categories li a {
    display: block;
    padding: 8px 0;
    font-size: 15px;
}

.mobile-nav-contact {
    margin-top: 30px;
    border-top: 1px solid #f1f3f5;
    padding-top: 20px;
}

.mobile-nav-contact h4 {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.mobile-nav-contact a {
    display: block;
    color: var(--text-dark);
    margin-bottom: 10px;
}

/* --- Navigation Dropdown --- */
.main-nav .dropdown {
    position: relative;
}

.main-nav .dropdown>a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav .dropdown>a .fa-chevron-down {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.main-nav .dropdown:hover>a .fa-chevron-down {
    transform: rotate(180deg);
}

.main-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--surface-color);
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
    padding: 10px 0;
    list-style: none;
    margin-top: 0;
    min-width: 220px;
    z-index: 1001;
    border: 1px solid var(--border-color);
}

.main-nav .dropdown:hover .dropdown-menu {
    display: block;
}

.main-nav .dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    font-weight: 400;
    white-space: nowrap;
}

.main-nav .dropdown-menu li a:hover {
    background-color: var(--background-color);
    color: var(--primary-color);
}

/* --- Section Title --- */
.section-title {
    text-align: center;
    font-family: var(--heading-font);
    font-size: 2.2rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

.section-title span {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: -20px auto 0;
}

/* --- Product Grid & Card --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--surface-color);
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.product-image-container {
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
    width: 100%;
    padding-top: 100%;
}

.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.discount-badge-ribbon {
    width: 80px;
    height: 80px;
    overflow: hidden;
    position: absolute;
    top: -1px;
    left: -1px;
}

.discount-badge-ribbon span {
    position: absolute;
    display: block;
    width: 120px;
    padding: 8px 0;
    background-image: linear-gradient(45deg, #ff5722, #e64a19);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    color: #fff;
    font-family: var(--heading-font);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    left: -30px;
    top: 20px;
    transform: rotate(-45deg);
}

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.product-title {
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    min-height: 45px;
    line-height: 1.4;
    overflow: hidden;
    color: var(--text-dark);
}

.product-brief {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
    min-height: 40px;
    line-height: 1.5;
    overflow: hidden;
}

.stock-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 8px 12px;
    border-radius: 8px;
}

.stock-indicator.in-stock {
    color: #155724;
    background-color: #d4edda;
}

.stock-indicator.low-stock {
    color: #856404;
    background-color: #fff3cd;
}

.stock-indicator.out-of-stock {
    color: #721c24;
    background-color: #f8d7da;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f1f1f1;
    margin-bottom: 15px;
}

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

.original-price {
    font-size: 1rem;
    text-decoration: line-through;
    color: var(--secondary-color);
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-add-to-cart {
    background-color: var(--surface-color);
    color: var(--text-dark);
    border-color: var(--border-color);
}

.btn-add-to-cart:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.btn-order-now {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-order-now:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn:disabled,
.btn:disabled:hover {
    background-color: #e9ecef !important;
    color: #adb5bd !important;
    cursor: not-allowed !important;
    border-color: var(--border-color) !important;
}

/* --- Related Products Section --- */
.related-products-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

/* --- Footer --- */
.site-footer {
    background-color: #212529;
    color: #e9ecef;
    padding: 50px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    color: var(--surface-color);
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.footer-section p,
.footer-section ul,
.footer-section a {
    color: #ced4da;
    font-size: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a:hover {
    color: var(--surface-color);
    text-decoration: underline;
}

.footer-social-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.footer-social-links .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #495057;
    color: white;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer-social-links .social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #495057;
    font-size: 14px;
    color: #adb5bd;
}

/* --- Floating & Modal Elements --- */
.fixed-helpline {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.helpline-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform .3s ease, box-shadow .3s ease;
}

.helpline-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.call-btn {
    background-image: linear-gradient(45deg, #007BFF, #0056b3);
}

.whatsapp-btn {
    background-image: linear-gradient(45deg, #25D366, #128C7E);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(33, 37, 41, 0.95);
    color: white;
    padding: 15px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1002;
    gap: 20px;
    transform: translateY(100%);
    transition: transform .5s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
}

.cookie-banner a {
    color: var(--warning-color);
    text-decoration: underline;
}

.cookie-banner .btn {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 20px;
    flex-shrink: 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.cart-modal-content {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: right .4s ease-in-out;
}

.modal.show .cart-modal-content {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.close-cart-btn {
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    background: none;
    border: none;
}

#cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-light);
    padding-top: 50px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f3f5;
}

.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 600;
    margin: 0 0 5px;
    font-size: 15px;
    line-height: 1.3;
}

.cart-item-price {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-quantity {
    width: 55px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 5px;
}

.remove-item-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s, color .2s;
}

.remove-item-btn:hover {
    background-color: var(--danger-color);
    color: white;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: #f8f9fa;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.btn-checkout {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    background-color: var(--success-color);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
}

.btn-checkout:hover {
    background-color: var(--success-hover);
}

.cart-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    background-color: rgba(33, 37, 41, 0.9);
    color: white;
    padding: 12px 22px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    z-index: 1002;
    opacity: 0;
    transition: opacity .4s ease, transform .4s ease;
    transform: translate(-50%, 20px);
}

.cart-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* --- Order & Product Page Specific Styles --- */
.order-page-layout,
.product-details-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.customer-info-form,
.order-summary,
.product-info-panel,
.product-gallery {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.form-title,
.summary-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.product-main-title {
    font-size: 1.8rem;
    margin: 0;
}

.form-subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group .required {
    color: var(--danger-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--body-font);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.order-summary {
    position: sticky;
    top: 100px;
}

.summary-calculation {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1rem;
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
}

.payment-info {
    background-color: #e7f1ff;
    border: 1px solid #b3d7ff;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.btn-place-order {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    background-image: linear-gradient(45deg, var(--success-color), var(--success-hover));
    color: white;
}

.pdp-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.btn-share {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s, color 0.3s;
}

.btn-share:hover {
    background-color: #f1f1f1;
    color: var(--primary-color);
}

.pdp-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.quantity-selector {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.quantity-selector input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 1.2rem;
    background: transparent;
}

.quantity-selector button {
    background: #f8f9fa;
    border: none;
    padding: 0 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

.btn-add-to-cart-pdp {
    flex-grow: 1;
    background-color: var(--primary-color);
    color: white;
}

.btn-order-now-pdp {
    width: 100%;
    background-color: var(--success-color);
    color: white;
}

.product-extra-info {
    margin-top: 40px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 15px 25px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.1rem;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-pane {
    display: none;
    padding: 30px 0;
}

.tab-pane.active {
    display: block;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
}

.how-it-works-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.how-it-works-section h4 {
    text-align: center;
    font-family: var(--heading-font);
    font-size: 1.2rem;
    margin: 0 0 15px;
    color: var(--text-dark);
}

.how-it-works-list {
    padding-left: 20px;
    margin: 0;
    color: var(--text-light);
}

.how-it-works-list li:last-child {
    margin-bottom: 0;
}

.assisted-ordering {
    margin-top: 25px;
    padding: 20px;
    background-color: #f1f3f5;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
}

.assisted-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
}

.assisted-actions .btn {
    flex: 1 1 150px;
    padding: 12px;
}

.btn-call {
    background-color: var(--primary-color);
    color: white;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.summary-item-v2 {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f3f5;
}

.summary-item-v2:last-child {
    border-bottom: none;
}

.summary-item-v2 .item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.summary-item-v2 .item-details {
    flex-grow: 1;
}

.summary-item-v2 .item-title {
    font-weight: 600;
}

.summary-item-v2 .item-quantity-controls {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.summary-item-v2 .quantity-btn {
    background: #f1f3f5;
    border: 1px solid var(--border-color);
    cursor: pointer;
    width: 30px;
    height: 30px;
    font-size: 1rem;
    font-weight: bold;
}

.summary-item-v2 .quantity-input {
    width: 40px;
    height: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-left: none;
    border-right: none;
}

.summary-item-v2 .item-price-group {
    text-align: right;
}

.summary-item-v2 .item-price {
    font-weight: 600;
    font-size: 1rem;
}

.summary-item-v2 .remove-item-btn {
    margin-top: 5px;
    font-size: 14px;
    width: 24px;
    height: 24px;
}

input[type=number] {
    -moz-appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* --- Coupon Section --- */
.coupon-section {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    border: 1px dashed var(--border-color);
}

#coupon-form {
    display: flex;
}

#coupon-form input {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 8px 0 0 8px;
}

#coupon-form button {
    padding: 10px 15px;
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
}

#coupon-message {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
}

.coupon-message.success {
    color: var(--success-color);
}

.coupon-message.error {
    color: var(--danger-color);
}

#discount-row {
    color: var(--success-color);
    font-weight: 600;
}

/* --- Login/Register & My Account Page --- */
.login-register-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 900px;
    margin: 40px auto;
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form-box {
    padding: 20px;
}

.form-box:first-child {
    border-right: 1px solid var(--border-color);
}

.form-message {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-weight: 500;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
}

.form-message.error {
    background-color: #f8d7da;
    color: var(--danger-color);
}

.form-footer-link {
    text-align: right;
    margin-top: 15px;
}

.account-dashboard {
    max-width: 900px;
    margin: 20px auto;
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.account-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.account-table th,
.account-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

/* --- Flash Offer Section --- */
.flash-offer-price {
    background-color: var(--danger-color);
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 1.5rem;
    font-weight: bold;
}

/* --- Order Confirmation Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.confirmation-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slide-down 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #888;
}

.close-modal-btn:hover {
    color: #333;
}

.modal-body .review-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: center;
}

.review-details {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.review-details p {
    margin: 0 0 10px;
    font-size: 1rem;
    line-height: 1.6;
}

.review-details p:last-child {
    margin-bottom: 0;
}

.warning-text {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.warning-text .fas {
    font-size: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.modal-footer .btn {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: var(--success-color);
}

.btn-success:hover {
    background-color: #218838;
}

@keyframes slide-down {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- Flash Deal & Countdown --- */
.price-and-savings-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 15px;
}

.pdp-original-price {
    text-decoration: line-through;
    color: #757575;
    font-size: 1.5rem;
    font-weight: 500;
}

.savings-badge {
    background: #d32f2f;
    color: white;
    padding: 6px 12px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.savings-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 20px;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    animation: badge-shine 2.5s infinite linear;
}

.price-box .pdp-current-price {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.countdown-timer-wrapper {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
}

.countdown-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 15px;
}

.countdown-title .fas {
    color: #ff9800;
    margin-right: 8px;
    animation: flash-animation 1.5s infinite;
}

#countdown-timer {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.timer-unit {
    position: relative;
}

.timer-unit:not(:last-child)::after {
    content: ':';
    position: absolute;
    right: -13px;
    top: 5px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--border-color);
    animation: blink-colon 1s infinite;
}

.timer-unit span {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    line-height: 1;
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 60px;
    display: inline-block;
}

.timer-unit div {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 8px;
    text-transform: uppercase;
}

@keyframes badge-shine {
    0% {
        left: -50%;
    }

    100% {
        left: 150%;
    }
}

@keyframes flash-animation {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

@keyframes blink-colon {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* --- Homepage Sections --- */
.flash-deals-section {
    background-color: #fff8e1;
    border: 1px solid #ffecb3;
    border-radius: 12px;
    padding-top: 20px;
    padding-bottom: 30px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.flash-deals-section .section-title {
    color: #ff6f00;
    font-size: 1.8rem;
}

.flash-deals-section .section-title .fas.fa-bolt {
    animation: flash-animation 1.5s infinite;
}

/* --- Prize / Campaign Styles --- */
.page-header-container {
    text-align: center;
    margin-bottom: 40px;
}

.campaign-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
    max-width: 900px;
    margin: 0 auto;
}

.prize-promo-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    margin: 10px 0 15px 0;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
}

.prize-promo-badge:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4);
    color: white;
}

.prize-promo-badge .fas.fa-gift {
    margin-right: 8px;
    animation: gift-shake 2.5s infinite;
}

@keyframes gift-shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(-5deg);
    }

    20% {
        transform: rotate(5deg);
    }

    30% {
        transform: rotate(-5deg);
    }

    40% {
        transform: rotate(5deg);
    }

    50% {
        transform: rotate(0deg);
    }
}

/* --- Winners Page --- */
.winner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.winner-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.winner-prize-image {
    margin-bottom: 20px;
}

.winner-prize-image img {
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
}

.winner-info .winner-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 5px;
}

.winner-info .winner-phone {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0 0 15px;
}

.winner-info .prize-won-text {
    font-size: 1rem;
    margin: 0;
}

.winner-info .prize-name {
    font-weight: 600;
    color: var(--text-dark);
}

.winner-info .campaign-name-text {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
}

.winner-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: linear-gradient(135deg, #fec84a, #ffae00);
    color: #423200;
    padding: 20px 15px 5px 25px;
    border-bottom-left-radius: 20px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(255, 174, 0, 0.3);
}

.winner-badge .fas.fa-trophy {
    margin-right: 5px;
    font-size: 0.9em;
}

/* --- Hero Campaign Banner --- */
.hero-campaign-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px;
    background: linear-gradient(135deg, #f5f7fa, #e6e9f0);
    border-radius: 16px;
    padding: 40px;
    margin-top: 20px;
    margin-bottom: 40px;
    overflow: hidden;
    position: relative;
}

.campaign-info-text .campaign-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 10px;
    line-height: 1.2;
}

.campaign-info-text .prize-announcement {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

.campaign-info-text .prize-announcement strong {
    color: var(--primary-color);
    font-weight: 600;
}

.campaign-info-text .btn {
    font-size: 1.1rem;
    padding: 12px 25px;
}

.campaign-prize-image {
    text-align: center;
}

.campaign-prize-image img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.15));
    transition: transform 0.4s ease-in-out;
}

.hero-campaign-banner:hover .campaign-prize-image img {
    transform: scale(1.05) rotate(2deg);
}

@media (max-width: 768px) {
    .hero-campaign-banner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px 25px;
    }

    .campaign-prize-image {
        order: -1;
        margin-bottom: 20px;
    }

    .campaign-prize-image img {
        max-height: 200px;
    }

    .campaign-info-text .campaign-title {
        font-size: 1.8rem;
    }
}

/* --- Prize Icon on Card --- */
.card-prize-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
    z-index: 2;
    transition: transform 0.3s ease;
}

.card-prize-icon:hover {
    transform: scale(1.1);
}

/* --- Order Success & Confetti --- */
.campaign-success-box {
    background-color: #f0fff4;
    border: 2px solid #48bb78;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.campaign-success-box .fa-trophy {
    font-size: 3rem;
    color: #f6ad55;
    margin-bottom: 15px;
}

.campaign-success-box h3 {
    font-size: 1.8rem;
    color: #2f855a;
    margin: 0 0 10px;
}

.campaign-success-box p {
    font-size: 1.1rem;
    color: #38a169;
    margin: 0;
}

.confetti {
    width: 10px;
    height: 20px;
    background-color: #f6ad55;
    position: absolute;
    top: -50px;
    opacity: 0;
    animation: confetti-fall 5s ease-in-out infinite;
}

.confetti:nth-child(2) {
    background-color: #4299e1;
    left: 20%;
    animation-delay: 1s;
}

.confetti:nth-child(3) {
    background-color: #ed64a6;
    left: 40%;
    animation-delay: 2.5s;
}

.confetti:nth-child(4) {
    background-color: #48bb78;
    left: 60%;
    animation-delay: 1.5s;
}

.confetti:nth-child(5) {
    background-color: #a0aec0;
    left: 80%;
    animation-delay: 3s;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translateY(calc(100vh + 50px)) rotate(720deg);
        opacity: 0;
    }
}

/* --- Reviews --- */
#reviews h4 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.review-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #f8f9fa;
    padding: 20px 25px;
    border-radius: var(--border-radius);
    margin-bottom: 35px;
    border: 1px solid var(--border-color);
}

.average-rating {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.average-rating+.star-rating {
    font-size: 1.3rem;
    margin-top: -5px;
}

.review-summary span:last-child {
    font-size: 0.95rem;
    color: var(--text-light);
}

.star-rating {
    color: #ffc107;
    letter-spacing: 2px;
}

.star-rating .far {
    color: #e0e0e0;
}

.review-form-container {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: none;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.review-form-container h5 {
    font-size: 1.4rem;
    margin: 0 0 25px;
    font-weight: 600;
}

.star-rating-input .stars {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.star-rating-input input[type="radio"] {
    display: none;
}

.star-rating-input label {
    font-size: 2rem;
    color: #dcdcdc;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    margin: 0 3px;
    padding: 5px;
}

.star-rating-input label:hover {
    transform: scale(1.15);
}

.star-rating-input label:hover,
.star-rating-input label:hover~label,
.star-rating-input input[type="radio"]:checked~label {
    color: #ffc107;
}

#review_images {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #f8f9fa;
    margin-top: 5px;
    margin-bottom: 5px;
}

#review_images::file-selector-button {
    padding: 8px 15px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-right: 10px;
}

#review_images::file-selector-button:hover {
    background-color: var(--primary-hover);
}

.login-prompt-review {
    text-align: center;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.login-prompt-review a {
    font-weight: 600;
}

.review-list {
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.review-list>p {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    padding: 30px 0;
}

.review-item {
    padding: 25px;
    border: none;
    border-bottom: 1px solid #f1f3f5;
    border-radius: 0;
    margin-bottom: 0;
    background-color: transparent;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reviewer-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.review-header .star-rating {
    font-size: 0.9rem;
}

.review-text {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 15px;
}

.review-images {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.review-images a {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.review-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.review-images a:hover img {
    transform: scale(1.1);
}

.review-date {
    font-size: 0.85rem;
    color: #888;
    text-align: left;
    display: block;
}

.pagination {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.pagination li a {
    padding: 10px 16px;
    font-size: 0.95rem;
}

.review-form-container .form-message {
    display: block !important;
    margin: -10px 0 20px 0;
}

/* --- Summary Offer Box --- */
.summary-offer-wrapper {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-offer-freebie,
.summary-offer-prizes {
    padding: 12px;
    border-radius: 8px;
}

.summary-offer-freebie {
    background-color: #e7f5ec;
    border: 1px solid #b8e0c5;
}

.summary-offer-prizes {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
}

.offer-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 8px;
}

.summary-offer-freebie .offer-title {
    color: #155724;
}

.summary-offer-prizes .offer-title {
    color: #4338ca;
}

.freebie-details {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
}

.freebie-details img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
}

.freebie-info span {
    display: block;
}

.freebie-info strong {
    color: var(--danger-color);
}

.prizes-list-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    font-size: 0.85em;
}

.prize-item-summary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prize-item-summary img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* --- PROFESSIONAL MOBILE STICKY FOOTER --- */
.sticky-footer-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    /* Hidden by default on desktop */
    flex-direction: column;
    padding: 0;
    border-top: 1px solid #eee;
}

/* Top Timer Bar */
.sticky-timer-bar {
    background: linear-gradient(90deg, #d32f2f, #ff5252);
    color: white;
    text-align: center;
    padding: 6px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    animation: slideDown 0.5s ease-out;
}

.timer-icon i {
    animation: pulse-white 1.5s infinite;
}

#sticky-countdown {
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Main Content Area */
.sticky-main-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* Price takes less space, Button takes more */
    align-items: center;
    padding: 10px 15px;
    gap: 15px;
}

/* Price Group */
.sticky-price-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.price-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.price-values {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.original-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}

/* Button Wrapper */
.sticky-btn-wrapper {
    width: 100%;
}

.btn-sticky-order {
    width: 100%;
    background-image: linear-gradient(45deg, #ff416c, #ff4b2b);
    /* High conversion color */
    color: white;
    border-radius: 50px;
    /* Rounded pill shape */
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 25px;
    box-shadow: 0 4px 15px rgba(255, 75, 43, 0.4);
    animation: pulse-btn 1.5s infinite;
    text-decoration: none;
}

.btn-sticky-order .btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn-sticky-order .btn-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-sticky-order .btn-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.9;
}

.btn-sticky-order i {
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.2);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

@keyframes pulse-white {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

@keyframes pulse-btn {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 0 20px rgba(255, 75, 43, 0.6);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* --- Media Queries --- */
@media (min-width: 992px) {
    .main-nav {
        display: flex;
    }

    .search-area-desktop {
        display: block;
    }

    #mobile-menu-toggle {
        display: none;
    }

    .header-actions-default {
        display: none;
    }

    .order-page-layout {
        grid-template-columns: 1.5fr 1fr;
    }

    .product-details-container {
        grid-template-columns: 1fr 1.2fr;
    }
}

@media (max-width: 991px) {

    .main-nav,
    .search-area-desktop {
        display: none;
    }

    #mobile-menu-toggle,
    .header-actions-default {
        display: flex;
    }

    .logo-area .brand-name {
        display: none;
    }

    .site-header.search-active .header-actions {
        flex-grow: 1;
    }

    .site-header.search-active .header-actions-search {
        display: flex;
        flex-grow: 1;
        align-items: center;
    }

    .site-header.search-active .header-actions-search .search-bar {
        flex-grow: 1;
    }

    .site-header.search-active .header-left,
    .site-header.search-active .header-actions-default,
    .site-header.search-active .cart-icon-area {
        display: none;
    }
}

@media (max-width: 768px) {

    /* Show sticky footer only on mobile */
    .sticky-footer-actions {
        display: flex;
    }

    /* Adjust page padding to account for sticky footer */
    body {
        padding-bottom: 100px;
    }

    /* Increased padding */
    .site-footer {
        margin-bottom: 90px;
    }

    .login-register-container {
        grid-template-columns: 1fr;
    }

    .form-box:first-child {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    /* Mobile Product Grid */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 0 4px;
    }

    .product-card {
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        border: 1px solid #f0f0f0;
    }

    .product-image-container {
        height: auto !important;
        padding-top: 0 !important;
        aspect-ratio: 1 / 1;
        width: 100%;
    }

    .product-image-container img {
        position: relative !important;
        width: 100%;
        height: 100% !important;
        object-fit: cover;
    }

    .product-info {
        padding: 8px !important;
    }

    .product-title {
        font-size: 13px !important;
        line-height: 1.4;
        height: 36px;
        overflow: hidden;
        margin-bottom: 4px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
        color: var(--text-dark);
    }

    .product-brief {
        display: none !important;
    }

    .price-container {
        margin-top: 0 !important;
        margin-bottom: 8px !important;
        padding-top: 0 !important;
        border-top: none !important;
        flex-wrap: wrap;
        gap: 4px;
    }

    .current-price {
        font-size: 15px !important;
    }

    .original-price {
        font-size: 11px !important;
    }

    .product-actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 5px !important;
        margin-top: auto;
    }

    .product-actions .btn {
        padding: 0 !important;
        font-size: 12px !important;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
    }

    .btn-add-to-cart {
        flex: 1;
        font-size: 0 !important;
    }

    .btn-add-to-cart i {
        font-size: 14px !important;
        margin: 0;
    }

    .btn-order-now {
        flex: 3;
        font-weight: 600;
    }

    .discount-badge-ribbon {
        width: 60px;
        height: 60px;
    }

    .discount-badge-ribbon span {
        font-size: 10px;
        width: 90px;
        left: -22px;
        top: 15px;
    }
}

/* --- Stock Scarcity Bar --- */
.stock-scarcity-bar {
    margin: 15px 0;
    padding: 12px;
    background-color: #fff0f0;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    animation: fadeIn 0.5s ease-in-out;
}

.stock-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 8px;
}

.stock-text i {
    animation: pulse-red 1.5s infinite;
}

.progress-track {
    background-color: #ffebee;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}

.progress-fill {
    background: linear-gradient(90deg, #ff5252, #d32f2f);
    height: 100%;
    border-radius: 4px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 5px rgba(211, 47, 47, 0.5);
}

@keyframes pulse-red {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

/* --- WhatsApp Button --- */
.btn-whatsapp-full {
    background-color: #25D366;
    color: white;
    width: 100%;
    margin-top: 10px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-whatsapp-full:hover {
    background-color: #20b858;
    color: white;
}

.btn-whatsapp-icon {
    background-color: #25D366;
    color: white;
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding: 0 !important;
}

/* --- Review Summary (Social Proof) --- */
.pdp-review-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.pdp-review-summary .stars {
    display: flex;
    color: #ffc107;
    font-size: 1rem;
}

.pdp-review-summary .separator {
    color: #ccc;
}

/* --- Trust Badges --- */
.pdp-trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
    border-top: 1px solid #f1f1f1;
    padding-top: 20px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.trust-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    background: #e7f1ff;
    padding: 10px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Exit Intent Popup --- */
.exit-popup {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exit-popup.show {
    display: flex;
    opacity: 1;
}

.exit-popup-content {
    background-color: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.exit-popup.show .exit-popup-content {
    transform: scale(1);
}

.exit-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    z-index: 10;
}

.exit-popup-close:hover {
    color: #333;
}

.exit-popup-body {
    padding: 40px 30px;
}

.exit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.exit-popup-body h2 {
    margin: 0 0 10px;
    color: #333;
    font-size: 2rem;
}

.exit-popup-body p {
    margin: 0 0 15px;
    color: #666;
    font-size: 1.1rem;
}

.offer-text {
    font-weight: 600;
    color: #444;
}

.offer-text .highlight {
    color: var(--success-color);
    font-size: 1.2rem;
}

.coupon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f8f9fa;
    border: 2px dashed #ccc;
    padding: 10px;
    border-radius: 8px;
    margin: 20px 0;
}

.coupon-box span {
    font-size: 0.9rem;
    color: #777;
}

.coupon-box strong {
    font-size: 1.4rem;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.btn-copy {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.btn-copy:hover {
    color: var(--primary-color);
}

.expiry-text {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 25px;
}

/* --- Live Sales Notification --- */
.sales-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9998;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s ease;
    max-width: 320px;
    border-left: 4px solid var(--primary-color);
}

.sales-popup.show-sales {
    transform: translateY(0);
    opacity: 1;
}

.sales-popup-image {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #e7f1ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.sales-popup-info {
    font-size: 0.9rem;
    line-height: 1.4;
    flex-grow: 1;
}

.sales-popup-info .customer-name {
    font-weight: 700;
    color: var(--text-dark);
    display: inline-block;
}

.sales-popup-info .location {
    color: var(--text-light);
    font-size: 0.85rem;
}

.sales-popup-info p {
    margin: 2px 0;
    font-size: 0.85rem;
    color: #555;
}

.sales-popup-info .time-ago {
    font-size: 0.75rem;
    color: #999;
    display: block;
    margin-top: 2px;
}

.close-sales-btn {
    position: absolute;
    top: 5px;
    right: 8px;
    background: none;
    border: none;
    font-size: 1rem;
    color: #ccc;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-sales-btn:hover {
    color: #333;
}

@media (max-width: 768px) {
    .sales-popup {
        bottom: 130px;
        left: 10px;
        right: 10px;
        max-width: none;
        width: auto;
    }
}

/* /assets/css/style.css */
/* Duplicate @import removed - fonts loaded async from header.php */

:root {
    --primary-color: #0072e5;
    --primary-hover: #0056b3;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --success-hover: #218838;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --text-dark: #212529;
    --text-light: #495057;
    --surface-color: #ffffff;
    --background-color: #f8f9fa;
    --border-color: #dee2e6;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Noto Sans Bengali', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
    --container-width: 1200px;
}

/* ... (বাকি বেসিক স্টাইলগুলো আগের মতোই রাখুন) ... */

/* --- Ultra Premium Exit Intent Popup --- */
.exit-popup {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.75);
    /* Darker overlay for focus */
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.exit-popup.show {
    display: flex;
    opacity: 1;
}

.exit-popup-content {
    background: #ffffff;
    border-radius: 24px;
    width: 90%;
    max-width: 480px;
    position: relative;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.exit-popup.show .exit-popup-content {
    transform: scale(1);
}

.exit-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: #64748b;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.exit-popup-close:hover {
    background: #e2e8f0;
    color: #ef4444;
    transform: rotate(90deg);
}

.exit-popup-body {
    padding: 50px 35px;
}

.exit-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 3rem;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
    animation: bounce-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.exit-popup-body h2 {
    margin: 0 0 10px;
    color: #1e293b;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
}

.exit-popup-body p {
    margin: 0 0 20px;
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
}

.offer-text {
    font-weight: 600;
    color: #334155;
    font-size: 1.15rem;
    margin-bottom: 25px;
}

.offer-text .highlight {
    color: #0072e5;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(0, 114, 229, 0.3);
    text-decoration-thickness: 3px;
}

.coupon-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    padding: 15px 20px;
    border-radius: 12px;
    margin: 25px 0;
    position: relative;
    transition: border-color 0.3s;
}

.coupon-box:hover {
    border-color: var(--primary-color);
}

.coupon-box span {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

.coupon-box strong {
    font-size: 1.6rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    font-family: monospace;
}

.btn-copy {
    background: white;
    border: 1px solid #e2e8f0;
    color: #64748b;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.expiry-text {
    font-size: 0.9rem;
    color: #ef4444;
    margin-bottom: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.expiry-text i {
    animation: pulse-red 2s infinite;
}

/* Exit Popup Enhanced Elements */
.exit-icon-pulse {
    position: relative;
    margin-bottom: 25px;
}

.exit-icon-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: rgba(251, 191, 36, 0.2);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

.exit-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 10px !important;
}

.exit-offer {
    font-weight: 600;
    color: #0f172a;
    font-size: 1.15rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 12px 20px;
    border-radius: 10px;
    margin: 15px 0 20px !important;
    border: 1px solid #fbbf24;
}

.coupon-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.coupon-code-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coupon-code-wrap strong {
    font-size: 1.6rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.exit-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ef4444;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 15px 0 25px;
}

.exit-timer i {
    animation: pulse-red 1.5s infinite;
}

.btn-exit-action {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.15rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
}

.btn-exit-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.5);
}

.btn-exit-action i {
    font-size: 1.1rem;
}

#continue-shopping-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary-color), #005bb5);
    box-shadow: 0 10px 20px -5px rgba(0, 114, 229, 0.4);
    border-radius: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
}

#continue-shopping-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(0, 114, 229, 0.5);
}

@keyframes bounce-in {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes pulse-red {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .exit-popup-content {
        width: 95%;
        padding: 0;
    }

    .exit-popup-body {
        padding: 40px 25px;
    }

    .exit-icon {
        width: 70px;
        height: 70px;
        font-size: 2.2rem;
    }

    .exit-popup-body h2 {
        font-size: 1.8rem;
    }

    .coupon-box strong,
    .coupon-code-wrap strong {
        font-size: 1.3rem;
    }

    .exit-offer {
        font-size: 1rem;
        padding: 10px 15px;
    }

    .btn-exit-action {
        font-size: 1rem;
        padding: 14px 20px;
    }
}

/* =========================================
   LAZY LOADING ANIMATION STYLES (Step 4.2)
   ========================================= */

/* ১. ইমেজ লোড হওয়ার আগের অবস্থা */
img.lazy {
    opacity: 0;
    /* শুরুতে অদৃশ্য থাকবে */
    filter: blur(8px);
    /* হালকা ঝাপসা দেখাবে */
    transform: scale(0.98);
    /* সামান্য ছোট থাকবে */
    transition: all 0.6s ease-out;
    /* অ্যানিমেশন ডিউরেশন ০.৬ সেকেন্ড */
    will-change: opacity, filter;
    /* ব্রাউজারকে আগেই প্রস্তুত রাখা (পারফরম্যান্স বৃদ্ধি) */
}

/* ২. ইমেজ লোড হওয়ার পরের অবস্থা (JS ক্লাস যুক্ত করবে) */
img.lazy-loaded {
    opacity: 1;
    /* দৃশ্যমান হবে */
    filter: blur(0);
    /* ঝাপসা ভাব কেটে যাবে */
    transform: scale(1);
    /* আসল সাইজে ফিরে আসবে */
}

/* ৩. ব্যাকগ্রাউন্ড ইমেজ (CSS Background) এর জন্য */
.lazy-bg {
    background-color: #f4f6f9;
    /* লোড হওয়ার আগে একটি হালকা ব্যাকগ্রাউন্ড কালার */
    transition: background-color 0.3s;
}

/* ৪. লোডিংPlaceholder এর জন্য (অপশনাল) */
.image-wrapper {
    background: #f4f6f9;
    /* ইমেজের নিচে ধূসর রঙের বক্স */
    display: block;
    overflow: hidden;
}

/* =========================================
   🔥 ULTIMATE MOBILE RESPONSIVENESS v2.0 🔥
   Complete Mobile-First Optimization
   ========================================= */

/* =============== MOBILE FIRST: Small Phones (320px - 480px) =============== */
@media (max-width: 480px) {

    /* -- BASE RESETS -- */
    body {
        font-size: 15px;
        line-height: 1.6;
    }

    main {
        padding-top: 60px;
    }

    .container {
        width: 100%;
        padding: 15px 12px;
    }

    /* -- HEADER MOBILE -- */
    .site-header {
        height: auto;
    }

    .header-main {
        height: 55px;
        padding: 8px 0;
        gap: 8px;
    }

    .logo-area img {
        height: 38px;
        width: 38px;
    }

    .logo-area .brand-name {
        font-size: 18px;
        margin-left: 8px;
    }

    .search-area-desktop {
        display: none;
    }

    #mobile-menu-toggle,
    .header-actions-default {
        display: flex;
    }

    .main-nav {
        display: none;
    }

    .header-action-btn {
        width: 38px;
        height: 38px;
    }

    .header-action-btn i {
        font-size: 18px;
    }

    /* -- SECTION TITLES -- */
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .section-title span {
        width: 50px;
        height: 3px;
    }

    /* -- PRODUCT GRID (2 columns on mobile) -- */
    .product-grid,
    .prod-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 !important;
    }

    /* -- PRODUCT CARD MOBILE -- */
    .product-card {
        border-radius: 10px;
        margin-bottom: 0;
    }

    .product-info {
        padding: 10px;
    }

    .product-title {
        font-size: 0.85rem;
        min-height: 36px;
        line-height: 1.3;
        margin-bottom: 5px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-brief {
        display: none;
    }

    .price-container {
        flex-direction: column;
        gap: 2px;
        align-items: flex-start;
        padding-top: 8px;
        margin-bottom: 8px;
    }

    .current-price {
        font-size: 1.1rem;
    }

    .original-price {
        font-size: 0.8rem;
    }

    .product-actions {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .product-actions .btn {
        padding: 10px 8px;
        font-size: 13px;
        border-radius: 8px;
    }

    .product-actions .btn-add-to-cart {
        display: none;
    }

    .product-actions .btn-order-now {
        width: 100%;
    }

    /* -- DISCOUNT BADGE -- */
    .discount-badge-ribbon {
        width: 55px;
        height: 55px;
    }

    .discount-badge-ribbon span {
        width: 85px;
        font-size: 10px;
        padding: 5px 0;
        left: -22px;
        top: 12px;
    }

    /* -- STOCK INDICATOR -- */
    .stock-indicator {
        padding: 5px 8px;
        font-size: 12px;
        margin-bottom: 8px;
    }

    /* -- FLOATING BUTTONS (CRITICAL FIX) -- */
    .floating-actions,
    .fixed-helpline {
        bottom: 75px !important;
        right: 10px !important;
        gap: 8px !important;
        z-index: 998 !important;
    }

    .float-btn,
    .helpline-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 18px !important;
    }

    .back-top-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }

    /* -- STICKY BOTTOM CTA -- */
    .sticky-bottom-bar,
    .fixed-cta-bar,
    .mobile-sticky-footer {
        padding: 10px 12px !important;
        gap: 10px !important;
    }

    .sticky-bottom-bar .btn,
    .fixed-cta-bar .btn {
        padding: 12px 16px !important;
        font-size: 14px !important;
        min-height: 44px !important;
    }

    /* -- FOOTER -- */
    .site-footer {
        padding: 30px 0 15px;
    }

    .footer-content,
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
        text-align: center;
    }

    .footer-section h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .footer-section p,
    .footer-section ul li,
    .footer-section a {
        font-size: 14px;
    }

    .footer-social-links {
        justify-content: center;
    }

    .footer-bottom {
        font-size: 12px;
        margin-top: 25px;
        padding-top: 15px;
    }

    /* -- TRUST FEATURES STRIP -- */
    .trust-features-strip {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 15px 0 !important;
    }

    .trust-feature {
        flex-direction: column;
        text-align: center;
        gap: 5px;
        padding: 10px 5px;
    }

    .trust-feature i {
        font-size: 20px;
    }

    .trust-feature strong {
        font-size: 12px;
    }

    .trust-feature span {
        font-size: 10px;
    }

    /* -- LIVE SALES POPUP -- */
    .sales-notification,
    #live-sales-popup {
        left: 10px !important;
        right: 10px !important;
        bottom: 80px !important;
        max-width: none !important;
        width: auto !important;
    }

    .sales-noti-content {
        padding: 10px 12px !important;
    }

    .sales-noti-avatar {
        width: 36px !important;
        height: 36px !important;
        font-size: 14px !important;
    }

    .sales-noti-text {
        font-size: 12px !important;
    }

    /* -- COOKIE BANNER -- */
    .cookie-banner,
    #cookie-consent-banner {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        padding: 15px !important;
        border-radius: 12px !important;
    }

    .cookie-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .cookie-text {
        font-size: 13px;
    }

    .btn-cookie {
        width: 100%;
        padding: 12px 20px;
    }

    /* -- EXIT POPUP -- */
    .exit-popup-content {
        width: 95% !important;
        max-height: 90vh;
        overflow-y: auto;
    }

    .exit-popup-body {
        padding: 25px 15px !important;
    }

    .exit-popup-body h2 {
        font-size: 1.4rem !important;
    }

    .exit-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.8rem !important;
    }

    /* -- BUTTONS GLOBAL -- */
    .btn {
        min-height: 44px;
        padding: 12px 16px;
        font-size: 14px;
    }

    .btn-primary-full {
        padding: 14px 20px;
        font-size: 15px;
    }

    /* -- FORMS -- */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
        padding: 14px 16px !important;
        border-radius: 10px !important;
        min-height: 48px !important;
    }

    /* -- MODALS -- */
    .modal-content,
    .popup-content {
        width: 95% !important;
        margin: 15px auto !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
}

/* =============== TABLETS & SMALL DEVICES (481px - 768px) =============== */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        width: 98%;
        padding: 15px;
    }

    main {
        padding-top: 65px;
    }

    /* -- HEADER -- */
    .header-main {
        height: 60px;
    }

    .logo-area .brand-name {
        font-size: 20px;
    }

    .search-area-desktop {
        display: none;
    }

    #mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
    }

    /* -- PRODUCT GRID (2-3 columns) -- */
    .product-grid,
    .prod-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .product-info {
        padding: 12px;
    }

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

    .current-price {
        font-size: 1.15rem;
    }

    /* -- FLOATING BUTTONS -- */
    .floating-actions,
    .fixed-helpline {
        bottom: 80px !important;
        right: 15px !important;
    }

    .float-btn,
    .helpline-btn {
        width: 48px !important;
        height: 48px !important;
    }

    /* -- FOOTER -- */
    .footer-content,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px;
    }

    .trust-features-strip {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* -- SECTION TITLE -- */
    .section-title {
        font-size: 1.6rem;
    }
}

/* =============== MEDIUM DEVICES (769px - 991px) =============== */
@media (min-width: 769px) and (max-width: 991px) {
    .container {
        width: 96%;
    }

    /* -- PRODUCT GRID (3 columns) -- */
    .product-grid,
    .prod-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }

    /* -- HEADER -- */
    .main-nav ul {
        gap: 3px;
    }

    .main-nav li a {
        padding: 6px 10px;
        font-size: 14px;
    }

    /* -- FOOTER -- */
    .footer-content,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .trust-features-strip {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* =============== HADIYA CAMPAIGN MOBILE FIXES =============== */
@media (max-width: 768px) {

    /* -- HADIYA HERO BANNER -- */
    .hero-campaign-banner,
    .hadiya-hero {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        padding: 20px 15px !important;
        gap: 15px !important;
    }

    .campaign-prize-image {
        order: -1 !important;
        margin-bottom: 15px;
    }

    .campaign-prize-image img {
        max-height: 150px !important;
        margin: 0 auto;
    }

    .campaign-info-text .campaign-title,
    .hadiya-title {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
    }

    .campaign-info-text p {
        font-size: 0.9rem !important;
    }

    /* -- HADIYA COUNTDOWN -- */
    .hadiya-countdown,
    .campaign-countdown {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    .countdown-item,
    .hadiya-countdown .time-box {
        min-width: 60px !important;
        padding: 10px 8px !important;
    }

    .countdown-number,
    .time-value {
        font-size: 1.4rem !important;
    }

    .countdown-label,
    .time-label {
        font-size: 0.7rem !important;
    }

    /* -- HADIYA PRIZE CARDS -- */
    .prize-grid,
    .hadiya-prizes-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .prize-card,
    .hadiya-prize-card {
        padding: 15px !important;
        flex-direction: column !important;
        text-align: center !important;
    }

    .prize-img,
    .prize-card-image {
        width: 100px !important;
        height: 100px !important;
        margin: 0 auto 10px !important;
    }

    .prize-info h4 {
        font-size: 1rem !important;
    }

    .prize-value {
        font-size: 1.3rem !important;
    }

    /* -- HADIYA STATS -- */
    .hadiya-stats,
    .campaign-stats-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .stat-item,
    .hadiya-stat-box {
        padding: 12px !important;
    }

    .stat-number {
        font-size: 1.3rem !important;
    }

    .stat-label {
        font-size: 0.75rem !important;
    }

    /* -- HADIYA BADGE ON PRODUCT -- */
    .badge-hadiya,
    .card-prize-icon {
        width: 26px !important;
        height: 26px !important;
        font-size: 12px !important;
        top: 6px !important;
        right: 6px !important;
    }
}

/* =============== CATEGORY STRIP MOBILE =============== */
@media (max-width: 768px) {

    .cat-strip,
    .category-strip,
    .category-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        gap: 8px !important;
        padding: 10px 5px !important;
        margin: 0 -12px !important;
        padding-left: 12px !important;
    }

    .cat-strip::-webkit-scrollbar,
    .category-strip::-webkit-scrollbar,
    .category-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .cat-item,
    .category-tab,
    .cat-strip a {
        flex-shrink: 0 !important;
        scroll-snap-align: start !important;
        padding: 8px 14px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
        border-radius: 20px !important;
    }
}

/* =============== CHECKOUT PAGE MOBILE =============== */
@media (max-width: 768px) {

    /* -- CHECKOUT CONTAINER -- */
    .checkout-container,
    .order-page-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* -- ORDER SUMMARY (Convert table to cards) -- */
    .order-summary-table,
    .checkout-items-table {
        display: block !important;
    }

    .order-summary-table thead,
    .checkout-items-table thead {
        display: none !important;
    }

    .order-summary-table tbody,
    .checkout-items-table tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .order-summary-table tr,
    .checkout-items-table tr {
        display: flex !important;
        flex-wrap: wrap !important;
        padding: 15px !important;
        background: #f9fafb !important;
        border-radius: 12px !important;
        border: 1px solid #e5e7eb !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .order-summary-table td,
    .checkout-items-table td {
        border: none !important;
        padding: 0 !important;
    }

    .order-summary-table td:first-child,
    .checkout-items-table td:first-child {
        width: 60px !important;
        flex-shrink: 0 !important;
    }

    .order-summary-table td:first-child img,
    .checkout-items-table td:first-child img {
        width: 60px !important;
        height: 60px !important;
        border-radius: 8px !important;
        object-fit: cover !important;
    }

    .order-summary-table td:nth-child(2),
    .checkout-items-table td:nth-child(2) {
        flex: 1 !important;
        font-size: 14px !important;
        font-weight: 600 !important;
    }

    /* -- CHECKOUT FORM -- */
    .checkout-form,
    .order-form {
        padding: 15px !important;
    }

    .form-group,
    .checkout-field {
        margin-bottom: 15px !important;
    }

    .form-group label,
    .checkout-field label {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea,
    .checkout-field input,
    .checkout-field select {
        width: 100% !important;
        font-size: 16px !important;
        padding: 14px 16px !important;
        min-height: 50px !important;
    }

    /* -- DELIVERY OPTIONS (Big Buttons) -- */
    .delivery-options,
    .shipping-options {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .delivery-option,
    .shipping-option {
        padding: 16px !important;
        border-radius: 12px !important;
        border: 2px solid #e5e7eb !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        cursor: pointer !important;
        transition: all 0.2s !important;
    }

    .delivery-option.selected,
    .shipping-option.selected,
    .delivery-option:hover,
    .shipping-option:hover {
        border-color: var(--primary-color) !important;
        background: rgba(0, 114, 229, 0.05) !important;
    }

    .delivery-option input[type="radio"],
    .shipping-option input[type="radio"] {
        width: 22px !important;
        height: 22px !important;
    }

    .delivery-option label,
    .shipping-option label {
        font-size: 15px !important;
        font-weight: 500 !important;
    }

    /* -- AUTOFILL BUTTON -- */
    .autofill-btn,
    .btn-autofill {
        width: 100% !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
        margin-bottom: 15px !important;
    }

    /* -- PRICE SUMMARY -- */
    .checkout-summary,
    .order-total-box {
        padding: 15px !important;
        border-radius: 12px !important;
    }

    .summary-row,
    .total-row {
        display: flex !important;
        justify-content: space-between !important;
        padding: 10px 0 !important;
        font-size: 14px !important;
    }

    .summary-row.total,
    .total-row.grand-total {
        font-size: 18px !important;
        font-weight: 700 !important;
        padding-top: 15px !important;
        border-top: 2px solid #e5e7eb !important;
    }

    /* -- CONFIRM BUTTON -- */
    .btn-confirm-order,
    .checkout-submit-btn {
        width: 100% !important;
        padding: 18px 24px !important;
        font-size: 17px !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
        min-height: 56px !important;
    }

    /* -- HADIYA CHECKOUT NOTICE -- */
    .hadiya-checkout-notice {
        padding: 12px 15px !important;
        margin-bottom: 15px !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 8px !important;
    }

    .hadiya-notice-content {
        font-size: 13px !important;
    }
}

/* =============== PRODUCT PAGE MOBILE =============== */
@media (max-width: 768px) {

    /* -- PRODUCT DETAIL LAYOUT -- */
    .product-detail-grid,
    .product-page-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* -- IMAGE GALLERY -- */
    .product-gallery,
    .product-images {
        margin-bottom: 15px !important;
    }

    .main-product-image {
        border-radius: 12px !important;
    }

    .thumbnail-strip {
        display: flex !important;
        gap: 8px !important;
        overflow-x: auto !important;
        padding: 10px 0 !important;
    }

    .thumbnail-strip img {
        width: 60px !important;
        height: 60px !important;
        flex-shrink: 0 !important;
        border-radius: 8px !important;
    }

    /* -- PRODUCT INFO -- */
    .product-detail-info {
        padding: 0 5px !important;
    }

    .product-detail-title,
    .product-page-title {
        font-size: 1.3rem !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
    }

    .product-detail-price,
    .product-price-box {
        flex-direction: row !important;
        align-items: baseline !important;
        gap: 10px !important;
    }

    .product-detail-price .current-price {
        font-size: 1.6rem !important;
    }

    .product-detail-price .original-price {
        font-size: 1rem !important;
    }

    /* -- PRODUCT ACTION BUTTONS (Stack) -- */
    .product-detail-actions,
    .product-action-buttons {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin: 15px 0 !important;
    }

    .product-detail-actions .btn {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
    }

    /* -- QUANTITY SELECTOR -- */
    .quantity-selector {
        margin: 15px 0 !important;
    }

    .qty-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 18px !important;
    }

    .qty-input {
        width: 60px !important;
        font-size: 16px !important;
        text-align: center !important;
    }

    /* -- STICKY BOTTOM BAR (Critical Fix) -- */
    .product-sticky-bar,
    .sticky-product-footer,
    .fixed-product-bar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        padding: 12px 15px !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1) !important;
        z-index: 999 !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .product-sticky-bar .price-display {
        flex: 1 !important;
    }

    .product-sticky-bar .price-display .current-price {
        font-size: 1.3rem !important;
        color: var(--primary-color) !important;
        font-weight: 700 !important;
    }

    .product-sticky-bar .btn-order-now {
        flex: 1.5 !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
    }

    /* -- DESCRIPTION TABS -- */
    .product-tabs,
    .detail-tabs {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .product-tab,
    .detail-tab {
        flex: 1 !important;
        min-width: auto !important;
        padding: 10px 12px !important;
        font-size: 13px !important;
        text-align: center !important;
    }

    .tab-content,
    .product-description {
        padding: 15px !important;
        font-size: 14px !important;
        line-height: 1.7 !important;
    }

    /* -- REVIEWS SECTION -- */
    .review-form-container {
        padding: 15px !important;
    }

    .review-summary {
        flex-direction: column !important;
        text-align: center !important;
        gap: 10px !important;
    }

    .average-rating {
        font-size: 2rem !important;
    }

    .review-card {
        padding: 15px !important;
    }

    .reviewer-name {
        font-size: 14px !important;
    }

    .review-text {
        font-size: 13px !important;
    }

    /* -- RELATED PRODUCTS -- */
    .related-products-section {
        margin-top: 30px !important;
        padding-top: 20px !important;
    }

    .related-products-section .section-title {
        font-size: 1.2rem !important;
    }
}

/* =============== BODY PADDING FOR STICKY ELEMENTS =============== */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px !important;
    }

    /* When on product page with sticky bar */
    body.has-sticky-bar {
        padding-bottom: 80px !important;
    }

    /* When on checkout page */
    body.checkout-page {
        padding-bottom: 10px !important;
    }
}