/* assets/css/style.css */
/* Professional Corporate Florist CSS - Fully Responsive & Organized Edition */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary: #1b4332;
    --primary-light: #2d6a4f;
    --accent: #40916c;
    --accent-light: #b7e4c7;
    --bg-cream: #fbfaf7;
    --bg-white: #ffffff;
    --text-dark: #2d312e;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --success: #1b4332;
    --danger: #ef4444;
    --gold: #d4af37;
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-cream);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--primary);
    color: var(--bg-cream);
    text-align: center;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Header & Navigation */
header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.logo a {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.6rem;
}

/* Desktop Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
    padding: 0.25rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

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

nav a:hover::after, nav a.active::after {
    width: 100%;
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    list-style: none;
    min-width: 200px;
    display: none;
    padding: 0.5rem 0;
    z-index: 110;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    padding: 0.5rem 1.25rem;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background-color: rgba(27, 67, 50, 0.05);
    color: var(--primary);
}

@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.cart-icon-btn {
    position: relative;
    font-size: 1.3rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

.cart-icon-btn:hover {
    background-color: rgba(27, 67, 50, 0.05);
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--primary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mobile-menu-toggle:hover {
    background-color: rgba(27, 67, 50, 0.05);
}

/* Responsive Navigation Breakpoint */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 73px;
        left: 0;
        width: 100%;
        height: calc(100vh - 73px);
        background-color: var(--bg-white);
        z-index: 99;
        transform: translateX(-100%);
        transition: var(--transition);
        border-right: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }

    nav.nav-active {
        transform: translateX(0);
    }

    nav ul {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    nav a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background-color: transparent;
        display: block;
        padding-left: 1.5rem;
        padding-top: 0.5rem;
    }
    
    .dropdown-menu a {
        font-size: 0.95rem;
        padding: 0.35rem 0;
    }
}

/* Hero / Banner */
.hero-section {
    background: linear-gradient(135deg, rgba(27, 67, 50, 0.04) 0%, rgba(216, 243, 220, 0.15) 100%);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(27, 67, 50, 0.05);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.75rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--bg-cream);
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.hero-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-section {
        padding: 3rem 1rem;
    }
}

/* Popular Categories */
.section-title {
    text-align: center;
    font-family: var(--font-serif);
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.categories-container {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    padding: 0 1.5rem;
}

/* horizontal categories layout on mobile */
.categories-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
}

@media (max-width: 768px) {
    .categories-grid {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.75rem;
        gap: 1.25rem;
        -webkit-overflow-scrolling: touch;
    }
    /* Hide scrollbar but keep scroll functionality */
    .categories-grid::-webkit-scrollbar {
        display: none;
    }
}

.category-circle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    flex-shrink: 0; /* Prevents compression on mobile */
}

.category-circle-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    font-size: 1.8rem;
    transition: var(--transition);
}

.category-circle-card:hover .category-circle-wrapper {
    transform: translateY(-3px);
    background-color: var(--primary);
    color: var(--bg-cream);
    border-color: var(--primary);
}

.category-circle-name {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-dark);
}

/* Products Section */
.products-section {
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    padding: 0 1.5rem;
}

.category-header {
    border-left: 3px solid var(--primary);
    padding-left: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.category-header h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--primary);
}

/* Products Grid: 4 columns on desktop, 2 columns on mobile */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* Product Card */
.product-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(27, 67, 50, 0.08);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -8px rgba(27, 67, 50, 0.15);
    border-color: rgba(27, 67, 50, 0.2);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-image-container {
    height: 240px;
    overflow: hidden;
    position: relative;
    background-color: #f3f4f6;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-details {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.old-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.8rem;
}

.current-price {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.05rem;
}

.product-card-btn {
    width: 100%;
    background-color: var(--primary);
    color: var(--bg-cream);
    border: none;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    display: block;
    margin-top: auto;
}

.product-card-btn:hover {
    background-color: var(--primary-light);
}

/* Mobile grids card adjustments */
@media (max-width: 768px) {
    .product-image-container {
        height: 150px;
    }
    .product-title {
        font-size: 0.85rem;
    }
    .current-price {
        font-size: 0.95rem;
    }
    .old-price {
        font-size: 0.75rem;
    }
    .product-card-btn {
        padding: 0.45rem;
        font-size: 0.8rem;
    }
}

/* Floating WhatsApp Button */
.whatsapp-floating {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
    font-size: 1.6rem;
    transition: var(--transition);
}

.whatsapp-floating:hover {
    transform: scale(1.08) rotate(5deg);
}

/* Product Detail Page */
.detail-container {
    max-width: 1200px;
    margin: 1.5rem auto 4rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .detail-container {
        grid-template-columns: 1fr;
    }
}

.detail-img-box {
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    height: 420px;
}

@media (max-width: 480px) {
    .detail-img-box {
        height: 300px;
    }
}

.detail-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info-box {
    background-color: white;
    border-radius: 6px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.detail-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.detail-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.detail-form {
    display: grid;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(27, 67, 50, 0.1);
}

/* Cart Page Responsiveness */
.cart-container {
    max-width: 1200px;
    margin: 1.5rem auto 4rem auto;
    padding: 0 1.5rem;
}

.cart-table-wrapper {
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.cart-table th {
    background-color: var(--primary);
    color: white;
    padding: 1rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.cart-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    font-size: 0.9rem;
}

.cart-product-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-product-img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    background-color: #f3f4f6;
}

.cart-product-info h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--primary);
}

.cart-remove-btn {
    color: var(--danger);
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 0.85rem;
}

.cart-remove-btn:hover {
    text-decoration: underline;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: max-content;
    overflow: hidden;
}

.qty-btn {
    background-color: #f9fafb;
    border: none;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background-color: #e5e7eb;
}

.qty-input {
    width: 35px;
    height: 28px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

/* Mobil Sepet Görünümü */
@media (max-width: 768px) {
    .cart-table-wrapper {
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td {
        display: block;
        width: 100%;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tr {
        background-color: white;
        border: 1px solid var(--border-color);
        border-radius: 6px;
        margin-bottom: 1rem;
        padding: 0.5rem;
        box-shadow: var(--shadow-sm);
    }

    .cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px dashed #f3f4f6;
        padding: 0.75rem 0.5rem;
    }

    .cart-table td:last-child {
        border-bottom: none;
    }

    .cart-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--primary);
        font-size: 0.8rem;
        text-transform: uppercase;
    }

    .cart-table td:first-child {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .cart-table td:first-child::before {
        display: none;
    }

    .cart-product-cell {
        width: 100%;
    }
}

.cart-summary-box {
    max-width: 400px;
    margin-left: auto;
    background-color: white;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .cart-summary-box {
        max-width: 100%;
    }
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.summary-total {
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
}

/* Checkout Page Grid */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 1.5rem auto 4rem auto;
    padding: 0 1.5rem;
}

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

.checkout-box {
    background-color: white;
    border-radius: 6px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.checkout-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.checkout-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .checkout-group {
        grid-template-columns: 1fr;
        margin-bottom: 0;
    }
    .checkout-group .form-group {
        margin-bottom: 1rem;
    }
}

/* Payment Page & IBAN Overflow Prevention */
.payment-wrapper {
    max-width: 700px;
    margin: 2rem auto 4rem auto;
    padding: 0 1rem;
}

.payment-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.payment-header {
    background-color: var(--primary);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.payment-header h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
}

.payment-header .order-no {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.payment-body {
    padding: 2rem 1.5rem;
}

.instruction-alert {
    background-color: #fffbeb;
    border-left: 3px solid var(--gold);
    color: #b45309;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* bank details responsive layout */
.bank-details-box {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    background-color: #fafbfc;
}

.bank-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bank-detail-row:last-child {
    border-bottom: none;
}

.bank-label {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 100px;
}

.bank-value {
    font-weight: 700;
    color: var(--primary);
    text-align: right;
    font-size: 0.95rem;
}

.iban-canvas-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
}

.iban-canvas {
    background: #f9fafb;
    border: 1px dashed var(--accent-light);
    border-radius: 4px;
    max-width: 100%;
}

.copy-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

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

/* Stacking details on small screens */
@media (max-width: 576px) {
    .bank-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        padding: 0.6rem 0;
    }
    .bank-value {
        text-align: left;
    }
    .iban-canvas-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .iban-canvas {
        width: 100% !important;
    }
}

.alert-danger-box {
    background-color: #fef2f2;
    border-left: 3px solid var(--danger);
    color: #991b1b;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.receipt-upload-box {
    border: 2px dashed var(--border-color);
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
    transition: var(--transition);
    margin-bottom: 1.5rem;
    background-color: #fafbfc;
}

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

.receipt-upload-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.whatsapp-alternative {
    text-align: center;
    margin-top: 1.5rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #25d366;
    color: white;
    padding: 0.65rem 1.25rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.whatsapp-btn:hover {
    background-color: #1ebea5;
    transform: translateY(-1px);
}

/* Footer Section */
footer {
    background-color: var(--primary);
    color: var(--bg-cream);
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    margin-top: auto;
    border-top: 3px solid var(--accent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.4rem;
    color: var(--bg-cream);
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-light);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: rgba(251, 250, 247, 0.8);
}

.footer-column a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(251, 250, 247, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(251, 250, 247, 0.6);
}

/* Admin Dashboard Layout & Responsiveness */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1b4332 0%, #081c15 100%);
    color: white;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.admin-logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition);
}

.admin-menu li.active a,
.admin-menu a:hover {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(64, 145, 108, 0.25);
}

.admin-main {
    flex-grow: 1;
    padding: 2.5rem;
    background-color: #f8fafc;
    overflow-y: auto;
    position: relative;
}

/* Admin Mobile Sidebar Toggler */
.admin-sidebar-toggle {
    display: none;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 1024px) {
    .admin-sidebar-toggle {
        display: inline-flex;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 260px;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-main {
        padding: 1.5rem 1rem;
    }
}

@media (min-width: 1025px) {
    .admin-sidebar {
        display: flex !important;
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
    }
    .admin-sidebar-toggle {
        display: none !important;
    }
}

.admin-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 1.75rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

/* WooCommerce style tabs navigation */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.admin-tab {
    background-color: white;
    color: #4b5563;
    border: 1px solid var(--border-color);
    padding: 0.55rem 1.1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.admin-tab:hover, .admin-tab.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(27, 67, 50, 0.15);
}

.tab-badge {
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: var(--transition);
}

.admin-tab:hover .tab-badge, .admin-tab.active .tab-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Badge status indicators */
.badge-status {
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-pending { 
    background-color: #fffbeb; 
    color: #d97706; 
    border: 1px solid #fde68a;
}
.badge-pending::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #d97706;
}

.badge-paid { 
    background-color: #ecfdf5; 
    color: #059669; 
    border: 1px solid #a7f3d0;
}
.badge-paid::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #059669;
}

.badge-receipt_uploaded { 
    background-color: #eff6ff; 
    color: #1d4ed8; 
    border: 1px solid #bfdbfe;
}
.badge-receipt_uploaded::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #1d4ed8;
}

.badge-completed { 
    background-color: #f0fdf4; 
    color: #15803d; 
    border: 1px solid #bbf7d0;
}
.badge-completed::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #15803d;
}

.badge-cancelled { 
    background-color: #fef2f2; 
    color: #dc2626; 
    border: 1px solid #fecaca;
}
.badge-cancelled::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #dc2626;
}

/* Admin Grid Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.stat-card-total { border-left: 4px solid #3b82f6; }
.stat-card-revenue { border-left: 4px solid #10b981; }
.stat-card-pending { border-left: 4px solid #f59e0b; }
.stat-card-receipt { border-left: 4px solid #8b5cf6; }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-card-total .stat-icon { background-color: #eff6ff; color: #3b82f6; }
.stat-card-revenue .stat-icon { background-color: #ecfdf5; color: #10b981; }
.stat-card-pending .stat-icon { background-color: #fffbeb; color: #f59e0b; }
.stat-card-receipt .stat-icon { background-color: #f5f3ff; color: #8b5cf6; }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-top: 0.15rem;
}

/* Admin Tables (Responsive Scroll) */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    font-weight: 700;
    color: var(--primary);
    background-color: #f8fafc;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Lightbox Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
}

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

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 1rem;
    max-height: 60vh;
    overflow-y: auto;
    text-align: center;
}

.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 24px;
    right: 24px;
    background-color: #25d366;
    color: white !important;
    border-radius: 50%;
    text-align: center;
    font-size: 34px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}

/* === Storefront v3 responsive & conversion layer === */
.product-actions{display:grid;grid-template-columns:1fr;gap:.55rem;margin-top:auto}.product-actions .product-card-btn{margin-top:0}.product-whatsapp-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:.45rem;padding:.62rem .8rem;border-radius:8px;background:#25d366;color:#fff!important;font-size:.82rem;font-weight:700;transition:var(--transition)}.product-whatsapp-btn:hover{background:#128c7e;transform:translateY(-1px)}
@media(max-width:768px){.announcement-bar{font-size:.72rem;line-height:1.35;padding:.42rem .65rem}.header-container{padding:.72rem .85rem;gap:.5rem}.logo{min-width:0;flex:1}.logo a{font-size:1rem;line-height:1.15;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.logo-icon,.logo a i{font-size:1.05rem!important}.header-actions{gap:.25rem}.cart-icon-btn,.mobile-menu-toggle{width:38px;height:38px}.hero-section{padding:2.15rem .9rem 2.35rem;margin-bottom:1.2rem}.hero-subtitle{font-size:.72rem;letter-spacing:1.2px}.hero-title{font-size:1.65rem;line-height:1.2;margin-bottom:.8rem}.hero-desc{font-size:.9rem;line-height:1.55;margin-bottom:1.2rem}.hero-btn{padding:.68rem 1.15rem;font-size:.86rem}.products-section,.categories-container{padding:0 .8rem}.category-header{margin-bottom:.85rem;align-items:center}.category-header h3{font-size:1.12rem}.category-header a{font-size:.78rem!important}.products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.product-card{border-radius:10px}.product-image-container{height:auto;aspect-ratio:1/1}.product-details{padding:.68rem}.product-title{font-size:.82rem;line-height:1.25;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:2.05rem}.product-price-row{gap:.3rem;flex-wrap:wrap;margin-bottom:.55rem}.current-price{font-size:.9rem}.old-price{font-size:.69rem}.product-card-btn,.product-whatsapp-btn{min-height:36px;padding:.5rem .4rem;font-size:.74rem}.whatsapp-floating,.whatsapp-float{width:48px!important;height:48px!important;right:14px!important;bottom:14px!important;font-size:25px!important}.footer-container{grid-template-columns:1fr!important;gap:1.5rem!important;padding-left:1rem!important;padding-right:1rem!important}}
@media(max-width:380px){.products-grid{gap:.5rem}.products-section{padding:0 .55rem}.product-details{padding:.55rem}.product-card-btn,.product-whatsapp-btn{font-size:.69rem}.logo a{font-size:.9rem}}

/* V4 product CTA controls */
.product-call-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:.45rem;padding:.62rem .8rem;border-radius:8px;background:#123e2f;color:#fff!important;font-size:.82rem;font-weight:700;transition:var(--transition)}.product-call-btn:hover{background:#0b2e22;transform:translateY(-1px)}
@media(max-width:768px){.product-call-btn{min-height:36px;padding:.5rem .4rem;font-size:.74rem}}
@media(max-width:380px){.product-call-btn{font-size:.69rem}}

/* V5 Corporate / Legal */
.footer-pro-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:2rem}.footer-brand p{font-size:.9rem;line-height:1.65;color:rgba(251,250,247,.82);margin:.5rem 0}.footer-brand a{color:inherit}.footer-bottom{max-width:1200px;margin:0 auto;padding:1.15rem 1.5rem;border-top:1px solid rgba(255,255,255,.12);display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-size:.8rem;color:rgba(255,255,255,.68)}.legal-shell{max-width:1050px;margin:3rem auto;padding:0 1.25rem}.legal-card{background:#fff;border:1px solid var(--border-color);border-radius:18px;padding:clamp(1.35rem,4vw,3.5rem);box-shadow:0 14px 38px rgba(0,0,0,.06)}.legal-kicker{font-size:.76rem;font-weight:800;letter-spacing:.14em;color:var(--accent);margin-bottom:.65rem}.legal-card h1{font-family:var(--font-serif);color:var(--primary);font-size:clamp(2rem,5vw,3.25rem);margin:0 0 1rem}.legal-card h2{font-family:var(--font-serif);color:var(--primary);font-size:1.35rem;margin:2rem 0 .65rem}.legal-card p{line-height:1.8;color:var(--text-muted)}.legal-lead{font-size:1.08rem;color:var(--text-dark)!important}.legal-company-box{margin-top:2.25rem;background:#f6f8f7;border:1px solid var(--border-color);border-radius:12px;padding:1.1rem;display:flex;flex-direction:column;gap:.35rem}.legal-company-box a{color:var(--primary)}.legal-updated{font-size:.8rem;margin-top:1.25rem}@media(max-width:850px){.footer-pro-grid{grid-template-columns:1fr 1fr}.legal-shell{margin:1.5rem auto}}@media(max-width:540px){.footer-pro-grid{grid-template-columns:1fr}.footer-bottom{flex-direction:column}.legal-card{border-radius:12px}.legal-shell{padding:0 .75rem}}


/* V6 unified header/footer + professional legal pages */
.site-header .logo a{display:flex;align-items:center;gap:.5rem}.site-header .logo i{color:var(--primary);font-size:1.3rem}.site-header nav a.active{color:var(--accent);font-weight:800}.site-header .corporate-menu{min-width:260px}.site-header .dropdown-menu a{white-space:normal}.footer-company-strip{max-width:1200px;margin:0 auto;padding:1rem 1.5rem;border-top:1px solid rgba(255,255,255,.12)}.footer-company-strip>div{display:flex;flex-wrap:wrap;gap:.45rem 1.25rem;color:rgba(255,255,255,.76);font-size:.78rem}.footer-company-strip strong{width:100%;color:#fff;font-size:.9rem}.footer-bottom a{color:inherit;text-decoration:underline;text-underline-offset:3px}.legal-company-details{margin:1rem 0 1.5rem;border:1px solid var(--border-color);border-radius:14px;overflow:hidden}.legal-company-details>div{display:grid;grid-template-columns:minmax(180px,.8fr) 2fr;gap:1rem;padding:.78rem 1rem;border-bottom:1px solid var(--border-color)}.legal-company-details>div:last-child{border-bottom:0}.legal-company-details dt{font-weight:800;color:var(--primary)}.legal-company-details dd{margin:0;overflow-wrap:anywhere;color:var(--text-dark)}.legal-feature-grid,.legal-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0}.legal-feature-grid>div,.legal-contact-grid>a,.legal-contact-grid>div{display:flex;flex-direction:column;gap:.35rem;border:1px solid var(--border-color);background:#f8faf9;border-radius:14px;padding:1rem;color:var(--text-dark)}.legal-feature-grid strong,.legal-contact-grid strong{color:var(--primary)}.legal-contact-grid i{font-size:1.25rem;color:var(--accent)}.legal-notice{display:flex;gap:.75rem;align-items:flex-start;background:#f3f7f5;border:1px solid #dbe8e1;border-radius:12px;padding:1rem;margin-top:2rem}.legal-notice i{margin-top:.3rem;color:var(--primary)}.legal-notice p{margin:0;font-size:.88rem}.legal-card a{color:var(--primary);font-weight:650;text-decoration:underline;text-underline-offset:2px}
@media(max-width:900px){.site-header nav{max-height:calc(100vh - 100px);overflow-y:auto}.site-header .dropdown-menu{position:static!important;box-shadow:none!important;border:0!important;background:transparent!important;display:none!important;padding:.2rem 0 .4rem 1rem!important}.site-header .dropdown.mobile-open>.dropdown-menu{display:block!important}.site-header .dropdown-toggle{display:flex!important;justify-content:space-between;align-items:center}.site-header .corporate-menu{min-width:0}.footer-company-strip>div{flex-direction:column;gap:.35rem}.footer-company-strip strong{width:auto}.legal-company-details>div{grid-template-columns:1fr;gap:.25rem}.legal-feature-grid,.legal-contact-grid{grid-template-columns:1fr}}

/* ========================================================================== */
/* V7 MOBILE-FIRST HARDENING — single breakpoint, zero page horizontal scroll */
/* ========================================================================== */
html {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
}
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}
body.mobile-nav-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

img, video, iframe, canvas, svg { max-width: 100%; }
img, video { height: auto; }
input, select, textarea, button { max-width: 100%; min-width: 0; font: inherit; }
textarea { resize: vertical; }
main, section, article, aside, header, footer, nav,
.header-container, .products-section, .categories-container, .detail-container,
.cart-container, .checkout-grid, .checkout-box, .payment-wrapper, .payment-card,
.payment-body, .legal-shell, .legal-card, .footer-container, .footer-company-strip,
.product-card, .product-details, .detail-info-box, .cart-summary-box {
    min-width: 0;
    max-width: 100%;
}
p, li, dd, dt, a, span, strong, small, label, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: anywhere;
    word-break: normal;
}

/* One navigation breakpoint everywhere. Desktop starts at 901px. */
@media (min-width: 901px) {
    .site-header .mobile-menu-toggle { display: none !important; }
    .site-header #site-nav { display: block; }
    .site-header .dropdown:hover > .dropdown-menu,
    .site-header .dropdown:focus-within > .dropdown-menu { display: block; }
}

@media (max-width: 900px) {
    .site-header { position: sticky; top: 0; z-index: 1000; width: 100%; }
    /* When opened at any scroll depth, pin the complete header to the viewport. */
    .site-header.mobile-menu-open {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 10050 !important;
    }
    .site-header .header-container {
        width: 100%;
        max-width: none;
        min-height: 58px;
        padding: .62rem .78rem;
        gap: .45rem;
        position: static;
    }
    .site-header .logo { flex: 1 1 auto; min-width: 0; overflow: hidden; }
    .site-header .logo a {
        min-width: 0;
        max-width: 100%;
        font-size: clamp(.88rem, 4vw, 1.05rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .site-header .header-actions { flex: 0 0 auto; gap: .2rem; }
    .site-header .mobile-menu-toggle { display: flex !important; flex: 0 0 40px; }
    .site-header .cart-icon-btn { flex: 0 0 40px; }

    .site-header #site-nav {
        position: fixed !important;
        top: var(--mobile-nav-top, 58px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: calc(100dvh - var(--mobile-nav-top, 58px)) !important;
        background: var(--bg-white);
        border-top: 1px solid var(--border-color);
        border-right: 0;
        box-shadow: 0 16px 30px rgba(0,0,0,.12);
        overflow-y: auto !important;
        overflow-x: hidden !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        transform: translateY(-8px) !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
        z-index: 10040;
    }
    .site-header #site-nav.nav-active {
        transform: translateY(0) !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .site-header #site-nav > ul {
        width: 100%;
        max-width: 100%;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: .45rem .75rem 1rem !important;
        margin: 0 !important;
    }
    .site-header #site-nav > ul > li { width: 100%; min-width: 0; border-bottom: 1px solid #eef2ef; }
    .site-header #site-nav > ul > li:last-child { border-bottom: 0; }
    .site-header #site-nav a {
        width: 100%;
        min-height: 46px;
        padding: .72rem .45rem !important;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: .65rem;
        font-size: .96rem;
        line-height: 1.3;
    }
    .site-header #site-nav a::after { display: none !important; }
    .site-header .dropdown { width: 100%; }
    .site-header .dropdown > .dropdown-toggle i { transition: transform .18s ease; flex: 0 0 auto; }
    .site-header .dropdown.mobile-open > .dropdown-toggle i { transform: rotate(180deg); }
    .site-header .dropdown > .dropdown-menu {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        display: none !important;
        margin: 0 !important;
        padding: .15rem 0 .5rem .7rem !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #f8faf9 !important;
        overflow: hidden;
    }
    .site-header .dropdown.mobile-open > .dropdown-menu { display: block !important; }
    .site-header .dropdown-menu li { width: 100%; }
    .site-header .dropdown-menu a { min-height: 40px; padding: .55rem .7rem !important; font-size: .9rem !important; }

    /* All page shells collapse before they can overflow. */
    .products-section, .categories-container, .cart-container, .detail-container,
    .checkout-grid, .payment-wrapper, .legal-shell {
        width: 100%;
        padding-left: .78rem !important;
        padding-right: .78rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .detail-container, .checkout-grid { grid-template-columns: minmax(0,1fr) !important; gap: 1rem !important; }
    .detail-info-box, .checkout-box { padding: 1rem !important; }
    .checkout-group { grid-template-columns: minmax(0,1fr) !important; gap: .8rem !important; }

    /* Home categories: no horizontal carousel, no sideways gesture required. */
    .categories-grid {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0,1fr)) !important;
        gap: .85rem .45rem !important;
        justify-content: stretch !important;
        align-items: start;
        width: 100%;
        overflow: visible !important;
        padding: 0 !important;
    }
    .category-circle-card { width: 100%; min-width: 0; flex-shrink: 1; gap: .35rem; }
    .category-circle-wrapper { width: clamp(52px,15vw,66px); height: clamp(52px,15vw,66px); font-size: 1.45rem; }
    .category-circle-name { width: 100%; text-align: center; font-size: .72rem; line-height: 1.25; white-space: normal; }

    /* Product grids stay compact but never force viewport width. */
    .products-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: .65rem !important; }
    .product-card { min-width: 0; width: 100%; }
    .product-image-container { width: 100%; height: auto !important; aspect-ratio: 1/1; }
    .product-details { min-width: 0; padding: .62rem !important; }
    .product-title { white-space: normal !important; overflow-wrap: anywhere; }
    .product-price-row { flex-wrap: wrap; min-width: 0; }
    .product-card-btn, .product-whatsapp-btn, .product-call-btn { width: 100%; min-width: 0; white-space: normal; line-height: 1.2; }

    /* Cart table becomes cards; content can wrap rather than widen the page. */
    .cart-table-wrapper { width: 100%; overflow: visible !important; }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { width: 100% !important; max-width: 100%; }
    .cart-table td { min-width: 0; gap: .7rem; flex-wrap: wrap; }
    .cart-product-cell { min-width: 0; width: 100%; }
    .cart-product-info { min-width: 0; flex: 1; }
    .cart-product-info h4, .cart-product-info div { max-width: 100% !important; white-space: normal !important; overflow-wrap: anywhere; }
    .cart-summary-box { width: 100%; margin-left: 0; padding: 1rem; }
    .summary-row { gap: .75rem; }

    /* Payment/IBAN/upload areas. */
    .payment-card, .bank-details-box, .receipt-upload-box { width: 100%; min-width: 0; }
    .payment-body { padding: 1rem !important; }
    .bank-detail-row { min-width: 0; }
    .bank-value, .bank-label { min-width: 0 !important; max-width: 100%; overflow-wrap: anywhere; }
    .iban-canvas-container { min-width: 0; width: 100% !important; }
    .iban-canvas { width: 100% !important; max-width: 100% !important; }
    input[type="file"] { width: 100%; max-width: 100%; font-size: .82rem; }
    .whatsapp-btn { width: 100%; max-width: 100%; white-space: normal; text-align: center; }

    /* Corporate/legal pages and footer. */
    .legal-card { width: 100%; padding: 1rem !important; border-radius: 12px; }
    .legal-card h1 { font-size: clamp(1.65rem,8vw,2.25rem); }
    .legal-card h2 { font-size: 1.18rem; }
    .legal-company-details { width: 100%; }
    .legal-company-details > div { grid-template-columns: minmax(0,1fr) !important; gap: .2rem !important; padding: .7rem .75rem; }
    .legal-company-details dd, .legal-company-box, .legal-contact-grid, .legal-feature-grid { min-width: 0; }
    .footer-container, .footer-pro-grid { grid-template-columns: minmax(0,1fr) !important; width: 100%; padding-left: 1rem !important; padding-right: 1rem !important; }
    .footer-column, .footer-company-strip, .footer-bottom { min-width: 0; max-width: 100%; }
    .footer-company-strip { padding-left: 1rem; padding-right: 1rem; }
    .footer-company-strip > div { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
    .footer-bottom { padding-left: 1rem; padding-right: 1rem; flex-direction: column; }

    .whatsapp-float {
        position: fixed !important;
        right: max(12px, env(safe-area-inset-right)) !important;
        bottom: max(12px, env(safe-area-inset-bottom)) !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 50%;
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: #25d366;
        color: #fff !important;
        box-shadow: 0 5px 16px rgba(0,0,0,.22);
        font-size: 25px !important;
        z-index: 1200 !important;
    }
}

@media (max-width: 420px) {
    .announcement-bar { font-size: .68rem; padding: .38rem .5rem; }
    .products-section, .categories-container, .cart-container, .detail-container,
    .checkout-grid, .payment-wrapper, .legal-shell { padding-left: .6rem !important; padding-right: .6rem !important; }
    .products-grid { gap: .48rem !important; }
    .product-details { padding: .52rem !important; }
    .product-card-btn, .product-whatsapp-btn, .product-call-btn { font-size: .68rem !important; padding: .48rem .3rem !important; }
    .categories-grid { grid-template-columns: repeat(3, minmax(0,1fr)) !important; }
    .detail-img-box { height: auto !important; aspect-ratio: 1/1; }
    .detail-title { font-size: 1.45rem; }
}

@media (max-width: 340px) {
    .products-grid { grid-template-columns: minmax(0,1fr) !important; }
    .categories-grid { grid-template-columns: repeat(3, minmax(0,1fr)) !important; }
    .site-header .logo a { font-size: .82rem; }
}
