/* ==========================================================================
   Sally Flowers - Modern E-Commerce Stylesheet (Çiçeksepeti Inspired)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --primary: #059669;
    --primary-hover: #047857;
    --primary-light: #ecfdf5;
    --secondary: #e11d48;
    --secondary-hover: #be123c;
    --secondary-light: #ffe4e6;
    --dark: #0f172a;
    --dark-muted: #334155;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f6f8fa;
    color: var(--dark);
    line-height: 1.5;
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
    width: 100%;
}

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

ul {
    list-style: none;
}

/* --- Top Announcement Bar --- */
.top-bar {
    background: linear-gradient(90deg, #047857 0%, #059669 50%, #10b981 100%);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links {
    display: flex;
    gap: 20px;
}

.top-bar-links a:hover {
    opacity: 0.85;
    text-decoration: underline;
}

/* --- Main Layout Container --- */
.container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}


/* --- Header --- */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 24px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
    text-decoration: none;
}

.site-logo-img {
    height: 48px;
    width: 48px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.logo:hover .site-logo-img {
    transform: scale(1.04);
}

.logo i {
    font-size: 28px;
    color: var(--secondary);
}

.logo span {
    color: var(--dark);
}

.drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-brand .site-logo-img {
    height: 38px;
    width: 38px;
    border-radius: 8px;
}

.footer-brand .site-logo-img {
    height: 44px;
    width: 44px;
    border-radius: 8px;
    background: #fff;
    padding: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}


/* Search Bar */
.header-search {
    flex: 1;
    max-width: 580px;
    position: relative;
}

.search-form {
    display: flex;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
}

.search-form:focus-within {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

.search-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 14px;
    outline: none;
    color: var(--dark);
}

.search-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0 24px;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

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

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-muted);
    background: var(--gray-100);
    transition: var(--transition);
    border: 1px solid transparent;
}

.action-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: rgba(5, 150, 105, 0.2);
}

.action-btn.cart-btn {
    background: var(--secondary);
    color: var(--white);
    position: relative;
}

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

.cart-badge {
    background: var(--white);
    color: var(--secondary);
    font-size: 12px;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

/* Navigation Bar */
.site-nav {
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
    display: none;
}

.nav-link {
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-muted);
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

/* --- Category Icon Pills Bar --- */
.category-pills-bar {
    padding: 24px 0 12px 0;
}

.pills-wrapper {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 12px 0;
    scrollbar-width: thin;
}

.pill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 100px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.pill-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.pill-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
}

.pill-card:hover .pill-icon {
    background: var(--primary);
    color: var(--white);
}

.pill-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--dark);
}

/* --- Hero Banners --- */
.hero-section {
    margin-bottom: 32px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.hero-main-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 340px;
    background: var(--dark);
    box-shadow: var(--shadow-md);
}

.hero-main-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-main-card:hover img {
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.75) 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    align-self: flex-start;
    background: var(--secondary);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 20px;
    max-width: 480px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--dark);
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 50px;
    width: fit-content;
    transition: var(--transition);
}

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

.hero-sub-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sub-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex: 1;
    min-height: 160px;
    box-shadow: var(--shadow-sm);
}

.sub-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sub-card-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 100%);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
}

.sub-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

/* --- Section Titles --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary);
}

.view-all-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-all-link:hover {
    color: var(--primary-hover);
    gap: 10px;
}

/* --- Minimal Category Header (Desktop & Mobile) --- */
.category-page-main {
    padding-top: 20px;
}

.category-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.category-breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-sep {
    font-size: 9px;
    color: var(--gray-300);
}

.category-header-minimal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.category-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
    line-height: 1.2;
}

.category-icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
}

.category-count-badge {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    padding: 3px 10px;
    border-radius: 50px;
    margin-left: 6px;
}

/* --- Product Grid & Cards --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(5, 150, 105, 0.3);
}

/* Card Badge */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
}

.product-badge.discount-badge {
    background: var(--secondary);
}

/* Discount % Flag */
.discount-flag {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: #ef4444;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: #f1f5f9;
}

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

.product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
}

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.product-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #f59e0b;
    margin-bottom: 12px;
}

.product-rating span {
    color: var(--gray-500);
    font-weight: 500;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
}

.old-price {
    font-size: 13px;
    color: var(--gray-500);
    text-decoration: line-through;
}

.current-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--secondary);
}

.card-action-btn {
    margin-top: 14px;
    width: 100%;
    padding: 10px;
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

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

/* --- Features Banner --- */
.features-strip {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 48px;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.feature-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
}

.feature-desc {
    font-size: 12px;
    color: var(--gray-500);
}

/* --- Order Modal / Detail Styles --- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.active {
    display: flex;
}

.modal-card {
    background: var(--white);
    width: 100%;
    max-width: 680px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(10px);
    }

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

.modal-header {
    padding: 20px 24px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gray-500);
    cursor: pointer;
}

.modal-body {
    padding: 24px;
    max-height: 80vh;
    overflow-y: auto;
}

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

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.preset-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.note-chip {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.note-chip:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* --- Modern Shopping Cart Page --- */
.cart-page-main {
    padding-top: 24px;
    padding-bottom: 60px;
    min-height: 65vh;
}

.cart-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-200);
}

.cart-page-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.cart-clear-btn {
    background: none;
    border: none;
    color: var(--gray-500);
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.cart-clear-btn:hover {
    color: var(--secondary);
}

.cart-empty-box {
    text-align: center;
    padding: 70px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    max-width: 520px;
    margin: 30px auto;
}

.cart-empty-icon {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.cart-empty-box h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
}

.cart-empty-box p {
    color: var(--gray-500);
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.cart-items-column {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.cart-item-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.cart-item-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.cart-item-img-link {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    display: block;
}

.cart-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.cart-item-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    line-height: 1.35;
    display: block;
}

.cart-item-title:hover {
    color: var(--primary);
}

.cart-item-delivery {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: var(--transition);
    line-height: 1;
    flex-shrink: 0;
}

.cart-remove-btn:hover {
    color: #ef4444;
    background: #fef2f2;
}

.cart-item-note {
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    border-left: 3px solid var(--primary);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    word-break: break-word;
}

.note-sender {
    font-style: italic;
    font-weight: 600;
    margin-left: 4px;
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px dashed var(--gray-200);
    gap: 12px;
}

/* Stepper Quantity Control */
.cart-qty-stepper {
    display: inline-flex;
    align-items: center;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 50px;
    padding: 2px 4px;
    gap: 2px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--dark);
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.qty-btn:hover:not(:disabled) {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.qty-display {
    min-width: 28px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
}

.cart-item-prices {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cart-item-prices .unit-price {
    font-size: 11px;
    color: var(--gray-500);
}

.cart-item-prices .total-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--secondary);
}

/* Cart Trust Badges */
.cart-trust-badges {
    display: flex;
    justify-content: space-around;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-top: 16px;
    gap: 12px;
}

.cart-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--dark-muted);
}

.cart-trust-item i {
    color: var(--primary);
    font-size: 15px;
}

/* Order Summary Column & Card */
.cart-summary-column {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.cart-summary-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    position: sticky;
    top: 90px;
    width: 100%;
    box-sizing: border-box;
}

.cart-summary-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 18px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--gray-500);
}

.summary-row strong {
    color: var(--dark);
}

.summary-row.free-shipping {
    color: var(--primary);
    font-weight: 700;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0 20px 0;
    padding-top: 16px;
    border-top: 2px dashed var(--gray-200);
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
}

.summary-total-amount {
    font-size: 22px;
    color: var(--secondary);
}

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    background: var(--secondary);
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
    transition: var(--transition);
    box-sizing: border-box;
}

.btn-checkout:hover {
    background: var(--secondary-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.4);
}

.summary-secure-note {
    margin-top: 16px;
    text-align: center;
    font-size: 11.5px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ==========================================================================
   MODERN CHECKOUT PAGE STYLES
   ========================================================================== */

.checkout-page-main {
    padding-top: 24px;
    padding-bottom: 70px;
    min-height: 70vh;
}

.checkout-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
    gap: 16px;
    flex-wrap: wrap;
}

.checkout-page-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.checkout-stepper {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.stepper-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-400);
    text-decoration: none;
}

.stepper-item.completed {
    color: var(--primary);
}

.stepper-item.completed:hover {
    color: var(--primary-dark);
}

.stepper-item.active {
    color: var(--secondary);
    font-weight: 700;
}

.stepper-item .step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--dark-muted);
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stepper-item.completed .step-num {
    background: var(--primary-light);
    color: var(--primary);
}

.stepper-item.active .step-num {
    background: var(--secondary);
    color: var(--white);
}

.stepper-arrow {
    color: var(--gray-300);
    font-size: 10px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 390px;
    gap: 28px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.checkout-form-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
    box-sizing: border-box;
}

.checkout-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
    transition: var(--transition);
}

.checkout-card:hover {
    border-color: var(--gray-300);
}

.checkout-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-100);
}

.checkout-card-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.checkout-step-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

.checkout-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkout-form-grid.single-col {
    grid-template-columns: 1fr;
}

.checkout-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.checkout-form-group:last-child {
    margin-bottom: 0;
}

.checkout-form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.checkout-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.checkout-input-wrap i {
    position: absolute;
    left: 14px;
    color: var(--gray-400);
    font-size: 14px;
    pointer-events: none;
    transition: var(--transition);
}

.checkout-input-wrap .form-control {
    padding-left: 40px;
}

.checkout-input-wrap .form-control:focus+i,
.checkout-input-wrap:focus-within i {
    color: var(--primary);
}

/* Saved Addresses Banner */
.saved-address-box {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.saved-address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.saved-address-header span {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.saved-address-add-btn {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: underline;
}

/* Payment Method Tiles */
.payment-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.payment-method-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.payment-method-card:hover {
    border-color: var(--primary-light);
    background: #fafaf9;
}

.payment-method-card.active,
.payment-method-card:has(input[type="radio"]:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 2px 10px rgba(5, 150, 105, 0.12);
}

.payment-method-card input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.payment-method-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-method-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.payment-method-desc {
    font-size: 11.5px;
    color: var(--gray-500);
}

/* Card Mockup Box */
.card-details-box {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: var(--transition);
}

.card-logos-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-300);
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-500);
}

.card-brand-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
}

.card-brand-icons i.fa-cc-visa {
    color: #1a1f71;
}

.card-brand-icons i.fa-cc-mastercard {
    color: #eb001b;
}

.cash-info-box {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #92400e;
    font-size: 13px;
    line-height: 1.5;
}

/* Checkout Summary Column & Card */
.checkout-summary-column {
    min-width: 0;
    width: 100%;
}

.checkout-summary-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 90px;
    box-sizing: border-box;
}

.checkout-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.checkout-summary-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
}

.checkout-edit-cart-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.checkout-edit-cart-link:hover {
    text-decoration: underline;
}

.checkout-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
}

.checkout-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--gray-200);
}

.checkout-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.checkout-item-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--gray-200);
}

.checkout-item-info {
    flex: 1;
    min-width: 0;
}

.checkout-item-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 3px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-item-meta {
    font-size: 11.5px;
    color: var(--gray-500);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-item-price {
    font-weight: 700;
    color: var(--dark);
}

/* Checkout Pricing Breakdown */
.checkout-price-breakdown {
    border-top: 1px solid var(--gray-200);
    padding-top: 14px;
}

/* Legal Consent Box */
.checkout-legal-box {
    margin: 18px 0;
    background: #f8fafc;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 14px;
    transition: var(--transition);
}

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

.checkout-legal-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: var(--dark);
    cursor: pointer;
    line-height: 1.5;
    user-select: none;
}

.checkout-legal-label input[type="checkbox"] {
    margin-top: 2px;
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.checkout-legal-text a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
}

.checkout-legal-notice {
    display: block;
    font-size: 11px;
    color: #b45309;
    margin-top: 6px;
    background: #fef3c7;
    padding: 6px 10px;
    border-radius: 6px;
    border-left: 3px solid #f59e0b;
    line-height: 1.4;
}

/* Submit Button */
.btn-checkout-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 800;
    border-radius: var(--radius-sm);
    background: var(--secondary);
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
    transition: var(--transition);
}

.btn-checkout-submit:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.45);
}

.btn-checkout-submit:active {
    transform: translateY(0);
}

/* Security Badges Row */
.checkout-trust-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 11.5px;
    color: var(--gray-500);
    flex-wrap: wrap;
}

.checkout-trust-badge {
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkout-trust-badge i {
    color: var(--primary);
}

/* --- Footer --- */
.site-footer {
    background: var(--dark);
    color: #94a3b8;
    padding-top: 60px;
    margin-top: 60px;
    border-top: 4px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}


.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-title {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
}

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

.footer-links a {
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}


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

/* --- Auth Tabbed Container --- */
.auth-wrapper {
    max-width: 480px;
    margin: 40px auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.auth-tab-btn {
    flex: 1;
    padding: 16px;
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-500);
    background: none;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

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

.auth-tab-btn:hover:not(.active) {
    color: var(--dark);
    background: rgba(255, 255, 255, 0.5);
}

.auth-content {
    padding: 32px;
}

.auth-pane {
    display: none;
}

.auth-pane.active {
    display: block;
    animation: authFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

.user-dropdown-menu.show {
    display: block !important;
}

/* --- Product Detail Page Styles --- */
.product-detail-main {
    padding-top: 24px;
}

.breadcrumb-nav {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 20px;
    word-break: break-word;
}

.breadcrumb-nav strong {
    color: var(--dark);
}

.product-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 48px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.product-detail-media,
.product-detail-info {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.product-detail-media {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

.product-detail-img-box,
.product-gallery-stage {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    background: #f8fafc;
    min-width: 0;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.product-gallery-stage .product-badge,
.product-detail-img-box .product-badge {
    top: 16px;
    left: 16px;
    font-size: 13px;
    padding: 6px 14px;
    z-index: 3;
}

.product-gallery-stage .discount-flag,
.product-detail-img-box .discount-flag {
    top: 16px;
    right: 16px;
    font-size: 14px;
    z-index: 3;
}

.gallery-main-img-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fafafa;
}

.product-detail-img,
.product-gallery-main-img {
    width: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.product-gallery-main-img:hover {
    transform: scale(1.02);
}

.product-gallery-main-img.fade-out {
    opacity: 0.2;
}

/* Gallery Navigation Arrows */
.gallery-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
    opacity: 0;
}

.product-gallery-stage:hover .gallery-nav-arrow {
    opacity: 1;
}

.gallery-nav-arrow.arrow-prev {
    left: 12px;
}

.gallery-nav-arrow.arrow-next {
    right: 12px;
}

.gallery-nav-arrow:hover {
    background: #ffffff;
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

/* Slide Counter Badge */
.gallery-counter-badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    z-index: 4;
}

/* Fullscreen Zoom Trigger Button */
.gallery-fullscreen-btn {
    position: absolute;
    bottom: 14px;
    left: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    opacity: 0;
}

.product-gallery-stage:hover .gallery-fullscreen-btn {
    opacity: 1;
}

.gallery-fullscreen-btn:hover {
    background: #ffffff;
    color: var(--primary);
    transform: scale(1.1);
}

/* Thumbnails Strip */
.product-gallery-thumbnails {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 8px 2px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
}

.product-gallery-thumbnails::-webkit-scrollbar {
    height: 5px;
}

.product-gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

.gallery-thumb-btn {
    position: relative;
    width: 76px;
    height: 76px;
    min-width: 76px;
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    background: #f1f5f9;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.gallery-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.gallery-thumb-btn:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.gallery-thumb-btn.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.25);
    transform: translateY(-2px);
}

.gallery-thumb-btn.active img {
    transform: scale(1.06);
}

/* Fullscreen Lightbox Modal */
.gallery-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-content-box {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 88vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: quickModalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-close-btn {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.lightbox-close-btn:hover {
    background: rgba(239, 68, 68, 0.85);
    transform: rotate(90deg);
}

.lightbox-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.lightbox-nav-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-arrow.lb-prev {
    left: 20px;
}

.lightbox-nav-arrow.lb-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.product-detail-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-detail-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin: 6px 0 12px 0;
    line-height: 1.2;
    word-break: break-word;
}

.product-detail-rating {
    font-size: 14px;
    margin-bottom: 16px;
}

.product-detail-price-box {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
    box-sizing: border-box;
}

.free-shipping-tag {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    margin-left: auto;
}

.product-detail-desc {
    font-size: 14px;
    color: var(--dark-muted);
    margin-bottom: 24px;
    line-height: 1.6;
    word-break: break-word;
}

.product-order-form {
    border-top: 1px solid var(--gray-200);
    padding-top: 24px;
    width: 100%;
    box-sizing: border-box;
}

.delivery-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.product-action-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

.product-add-btn {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    font-size: 15px;
    border-radius: var(--radius-sm);
    justify-content: center;
    box-sizing: border-box;
}

.product-fav-btn {
    padding: 14px 18px;
    font-size: 16px;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    color: var(--secondary);
    border: 1px solid var(--secondary);
    cursor: pointer;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Product Quick Contact Card */
.product-contact-actions {
    margin-top: 20px;
    padding: 18px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    width: 100%;
    box-sizing: border-box;
}

.product-contact-mobile {
    display: none !important;
}

.product-contact-desktop {
    display: block;
}

.product-contact-header {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.contact-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    box-sizing: border-box;
    width: 100%;
    transition: all 0.2s;
    text-align: center;
}

.contact-action-btn.wa-btn {
    background: #25D366;
    color: #fff;
    box-shadow: 0 3px 8px rgba(37, 211, 102, 0.25);
}

.contact-action-btn.phone-btn {
    background: #0f172a;
    color: #fff;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.2);
}

.product-contact-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--gray-100);
    font-size: 11.5px;
    color: var(--gray-500);
    flex-wrap: wrap;
    gap: 6px;
}

.product-fav-btn.active-fav {
    background: var(--secondary-light);
}

/* ==========================================================================
   MOBILE RESPONSIVE & APP-LIKE UI COMPONENT STYLES
   ========================================================================== */

.desktop-only {
    display: inline-flex !important;
}

.mobile-only {
    display: none !important;
}

.mobile-menu-toggle {
    display: none;
    background: var(--gray-100);
    border: none;
    color: var(--dark);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* --- Mobile Drawer Backdrop & Drawer Menu --- */
.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: var(--white);
    z-index: 1250;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

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

.drawer-header {
    padding: 20px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-brand {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-brand span {
    color: var(--dark);
}

.drawer-close-btn {
    background: var(--gray-100);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--gray-500);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-user-box {
    padding: 20px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.drawer-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

.drawer-user-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.drawer-user-links a {
    background: var(--white);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--gray-200);
}

.drawer-nav-section {
    padding: 20px;
    flex: 1;
}

.drawer-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--gray-500);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.drawer-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-menu-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
}

.drawer-menu-list a i {
    width: 20px;
    text-align: center;
    color: var(--primary);
}

.drawer-menu-list a:hover,
.drawer-menu-list a.active {
    background: var(--primary-light);
    color: var(--primary);
}

/* --- Mobile Sticky Bottom Navigation Bar --- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1100;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--gray-500);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    flex: 1;
    height: 100%;
    transition: var(--transition);
}

.bottom-nav-item i {
    font-size: 18px;
}

.bottom-nav-item.active {
    color: var(--primary);
    font-weight: 700;
}

.bottom-cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--secondary);
    color: var(--white);
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

/* --- Mobile Sticky Floating Contact Buttons --- */
.mobile-sticky-contact {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 80px;
    z-index: 1090;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.sticky-contact-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.sticky-contact-btn:active {
    transform: scale(0.92);
}

.sticky-wa-btn {
    background: #25D366;
    font-size: 26px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
    animation: pulse-wa 2.5s infinite;
}

.sticky-phone-btn {
    background: #0f172a;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.35);
    font-size: 20px;
}

@keyframes pulse-wa {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6), 0 4px 14px rgba(37, 211, 102, 0.45);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0), 0 4px 14px rgba(37, 211, 102, 0.45);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 4px 14px rgba(37, 211, 102, 0.45);
    }
}

/* ==========================================================================
   BREAKPOINTS & MEDIA QUERIES
   ========================================================================== */

@media (max-width: 992px) {
    .container {
        padding: 0 16px;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .mobile-menu-toggle {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .mobile-sticky-contact {
        display: flex;
    }

    body {
        padding-bottom: 74px;
    }

    .top-bar-container {
        flex-direction: column;
        gap: 4px;
        text-align: center;
        padding: 6px 16px;
        font-size: 11px;
    }

    .top-bar-links {
        display: none !important;
    }

    /* Modern 2-row Mobile Header */
    .header-main {
        display: grid;
        grid-template-columns: 42px 1fr 42px;
        align-items: center;
        gap: 8px 10px;
        padding: 10px 0;
        width: 100%;
        box-sizing: border-box;
    }

    .logo {
        grid-column: 2;
        grid-row: 1;
        font-size: 19px;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-actions {
        grid-column: 3;
        grid-row: 1;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .header-actions .cart-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--secondary);
        color: var(--white);
        box-shadow: 0 3px 10px rgba(225, 29, 72, 0.25);
        position: relative;
    }

    .header-actions .cart-btn i {
        font-size: 18px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-actions .cart-btn .cart-badge {
        position: absolute;
        top: -5px;
        right: -6px;
        min-width: 19px;
        height: 19px;
        padding: 0 4px;
        border-radius: 50px;
        font-size: 10px;
        font-weight: 800;
        background: var(--white);
        color: var(--secondary);
        border: 2px solid var(--secondary);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        box-sizing: border-box;
    }

    .header-search {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        margin: 2px 0 0 0;
    }

    .search-input {
        width: 100%;
        box-sizing: border-box;
        padding: 10px 16px 10px 42px;
        font-size: 13px;
        border-radius: 50px;
        background: var(--gray-100);
    }

    .site-nav {
        border-top: 1px solid var(--gray-100);
        padding: 8px 0;
        width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .nav-list {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        scrollbar-width: none;
        padding-bottom: 4px;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-list::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 50px;
        background: var(--gray-100);
        white-space: nowrap;
        flex-shrink: 0;
    }

    .nav-link.active {
        background: var(--primary);
        color: var(--white);
    }

    /* Product Grid 2-Columns on Mobile */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        width: 100%;
        box-sizing: border-box;
    }

    .product-card {
        border-radius: var(--radius-md);
        min-width: 0;
        box-sizing: border-box;
    }

    .product-info {
        padding: 12px;
    }

    .product-title {
        font-size: 13px;
        line-height: 1.3;
        height: 34px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-price {
        font-size: 15px;
    }

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

    /* Category Page Mobile Fixes */
    .category-page-main {
        padding-top: 14px;
    }

    .category-breadcrumb {
        font-size: 11.5px;
        margin-bottom: 8px;
    }

    .category-header-minimal {
        padding-bottom: 10px;
        margin-bottom: 16px;
    }

    .category-title {
        font-size: 18px;
        gap: 8px;
    }

    .category-icon-chip {
        width: 30px;
        height: 30px;
        font-size: 14px;
        border-radius: 8px;
    }

    .category-count-badge {
        font-size: 11px;
        padding: 2px 8px;
        margin-left: 4px;
    }

    /* Product Detail Page Mobile Fixes */
    .product-detail-main {
        padding-top: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .product-detail-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px;
        border-radius: var(--radius-md);
        margin-bottom: 24px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .product-detail-media,
    .product-detail-info,
    .product-order-form,
    .product-contact-actions {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .product-detail-img {
        height: 400px;
        width: 100%;
        object-fit: cover;
    }

    .product-detail-title {
        font-size: 22px;
        word-break: break-word;
    }

    .delivery-options-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .free-shipping-tag {
        margin-left: 0;
        width: 100%;
    }

    .preset-notes {
        display: flex;
        overflow-x: auto;
        padding-bottom: 6px;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .preset-notes::-webkit-scrollbar {
        display: none;
    }

    .note-chip {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .form-control {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .product-action-row {
        display: flex;
        flex-direction: row;
        gap: 10px;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    .product-add-btn {
        flex: 1;
        min-width: 0;
        padding: 14px 16px;
        font-size: 14px;
        border-radius: var(--radius-sm);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-fav-btn {
        flex-shrink: 0;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .product-contact-mobile {
        display: block !important;
        margin-top: 14px;
        margin-bottom: 2px;
    }

    .product-contact-desktop {
        display: none !important;
    }

    .product-contact-actions {
        padding: 14px 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .product-contact-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .contact-action-btn {
        padding: 11px 8px;
        font-size: 12.5px;
        gap: 6px;
    }

    .product-contact-footer {
        font-size: 11.5px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 6px;
    }

    /* Cart Page Mobile Responsiveness */
    .cart-page-main {
        padding-top: 14px;
        padding-bottom: 30px;
    }

    .cart-header-row {
        margin-bottom: 16px;
        padding-bottom: 10px;
    }

    .cart-page-title {
        font-size: 18px;
    }

    .cart-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .cart-summary-card {
        position: static;
        padding: 18px;
    }

    .cart-item-card {
        padding: 14px;
        gap: 12px;
    }

    .cart-item-img-link {
        width: 76px;
        height: 76px;
    }

    .cart-trust-badges {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }

    /* Checkout Page Mobile Responsiveness */
    .checkout-page-main {
        padding-top: 14px;
        padding-bottom: 30px;
    }

    .checkout-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .checkout-page-title {
        font-size: 18px;
    }

    .checkout-stepper {
        width: 100%;
        justify-content: space-between;
        padding: 8px 12px;
        box-sizing: border-box;
    }

    .stepper-item {
        font-size: 11.5px;
        gap: 4px;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .checkout-card {
        padding: 18px 16px;
        border-radius: var(--radius-md);
    }

    .checkout-card-header {
        margin-bottom: 16px;
        padding-bottom: 10px;
    }

    .checkout-card-title {
        font-size: 15px;
        gap: 8px;
    }

    .checkout-step-badge {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .checkout-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .payment-methods-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .payment-method-card {
        padding: 14px;
    }

    .card-details-box {
        padding: 14px;
    }

    .checkout-summary-card {
        position: static;
        padding: 18px 16px;
    }

    /* Global inline 2-col collapse on mobile */
    [style*="grid-template-columns: 2fr 1fr"],
    [style*="grid-template-columns:2fr 1fr"],
    [style*="grid-template-columns: 1fr 2fr"],
    [style*="grid-template-columns:1fr 2fr"],
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

@media (max-width: 540px) {
    .product-contact-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .product-info {
        padding: 10px;
    }

    .product-detail-img {
        height: 400px;
    }

    .product-detail-price-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .cart-item-card {
        padding: 12px;
        gap: 10px;
    }

    .cart-item-img-link {
        width: 68px;
        height: 68px;
    }

    .cart-item-title {
        font-size: 14px;
    }

    .cart-item-footer {
        flex-wrap: wrap;
        gap: 8px;
    }

    .checkout-card {
        padding: 16px 12px;
    }

    .checkout-summary-card {
        padding: 16px 12px;
    }

    .btn-checkout-submit {
        padding: 14px;
        font-size: 15px;
    }

    .auth-wrapper {
        margin: 15px auto;
        border-radius: var(--radius-md);
    }

    .auth-content {
        padding: 20px;
    }
}