:root {
    --primary-color: #1e293b;
    --primary-dark: #0f172a;
    --primary-light: #475569;
    --secondary-color: #059669;
    --accent-color: #d97706;
    --danger-color: #dc2626;
    --bg-color: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --text-dark: #0f172a;
    --text-medium: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --success-color: #059669;
    --warning-color: #d97706;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.03);
    --shadow: 0 1px 3px 0 rgba(0,0,0,0.05), 0 1px 2px 0 rgba(0,0,0,0.03);
    --shadow-lg: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.cart-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scroll */
html {
    overflow-x: hidden;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .category-btn,
    .cart-button,
    .info-button,
    .contact-link,
    .add-to-cart-btn,
    .qty-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .product-card:hover {
        transform: none;
    }
    
    .product-card:active {
        transform: scale(0.98);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Better text rendering on mobile */
@media (max-width: 767px) {
    body {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
}

/* Prevent iOS zoom on input focus - Force minimum 16px font size */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
select,
textarea {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.top-header {
    background: #ffffff;
    color: var(--text-dark);
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-color);
}

body {
    padding-top: 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    justify-content: flex-start;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo-section:hover {
    opacity: 0.85;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 100%; /* Full width in its column */
    margin: 0 auto;
}

/* Search container responsive behavior */
@media (max-width: 1200px) {
    .search-container {
        margin-top: 0.75rem;
        max-width: 100%;
    }
    
    /* Force search to full width and new row below 1200px */
    .header-search-col {
        order: 3 !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* Adjust other columns below 1200px */
    .header-logo-col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    .header-actions-col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        order: 2 !important;
    }
    
    .top-header {
        padding: 0.75rem 0;
    }
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.125rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.75rem 3rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 16px;
    background: var(--bg-secondary);
    transition: all 0.2s ease;
    outline: none;
    box-shadow: none;
    font-weight: 400;
}

.search-input:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.08);
}

.search-input:hover:not(:focus) {
    border-color: var(--primary-light);
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.search-clear:hover {
    background: var(--bg-secondary);
    color: var(--text-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem; /* Slightly reduced gap for better fit */
    flex-wrap: nowrap; /* Prevent wrapping */
}

.pdf-catalog-button,
.member-login-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #dc2626;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

/* Member login button - purple/blue color */
.member-login-button {
    background: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.pdf-catalog-button::before,
.member-login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.pdf-catalog-button:hover::before,
.member-login-button:hover::before {
    left: 100%;
}

.pdf-catalog-button:hover {
    background: #b91c1c;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transform: translateY(-2px);
}

.member-login-button:hover {
    background: #b91c1c;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transform: translateY(-2px);
}

.pdf-catalog-button i,
.member-login-button i {
    font-size: 1.125rem;
    transition: transform 0.2s ease;
}
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.pdf-catalog-button:hover i {
    transform: scale(1.1) rotate(-5deg);
}

.pdf-catalog-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.pdf-catalog-button:disabled {
    opacity: 0.6;
    cursor: wait;
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    border-color: #9ca3af;
    box-shadow: none;
    transform: none;
}

.pdf-catalog-button:disabled::before {
    display: none;
}

.pdf-catalog-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

.pdf-catalog-button:disabled i {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Hide button text below 1400px, show only icons */
@media (max-width: 1400px) {
    .pdf-catalog-button span,
    .member-login-button span {
        display: none;
    }
    
    .pdf-catalog-button,
    .member-login-button {
        padding: 0;
        width: 2.75rem;
        height: 2.75rem;
        min-width: 2.75rem;
        min-height: 2.75rem;
        justify-content: center;
        display: flex;
        align-items: center;
    }
    
    .pdf-catalog-button i {
        font-size: 1.25rem;
    }
}

/* Adjust header actions gap for smaller screens */
@media (max-width: 1200px) {
    .header-actions {
        gap: 0.5rem;
    }
    
    .pdf-catalog-button,
    .member-login-button {
        width: 2.75rem;
        height: 2.75rem;
    }
}

@media (max-width: 768px) {
    .header-actions {
        gap: 0.5rem;
    }
    
    .pdf-catalog-button,
    .member-login-button,
    .info-button,
    .category-menu-button {
        width: 2.75rem !important;
        height: 2.75rem !important;
        min-width: 2.75rem !important;
        min-height: 2.75rem !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .pdf-catalog-button i,
    .member-login-button i,
    .info-button i,
    .category-menu-button i {
        font-size: 1.25rem !important;
    }
    
    .cart-button {
        width: 2.75rem !important;
        height: 2.75rem !important;
        min-width: 2.75rem !important;
        min-height: 2.75rem !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .cart-button i {
        font-size: 1.25rem !important;
    }
    
    .contact-link {
        width: 2.75rem !important;
        height: 2.75rem !important;
        min-width: 2.75rem !important;
        min-height: 2.75rem !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .contact-link i {
        font-size: 1.125rem !important;
    }
    
    .cart-badge {
        top: -4px !important;
        right: -4px !important;
        font-size: 0.625rem !important;
        padding: 0.125rem 0.375rem !important;
        min-width: 1.125rem !important;
    }
    
    .logo-img {
        width: 48px !important;
        height: 48px !important;
    }
    
    .store-name {
        font-size: 1.125rem !important;
    }
    
    .search-input {
        padding: 0.625rem 2.5rem !important;
        font-size: 16px !important;
    }
    
    .search-icon {
        font-size: 1rem !important;
        left: 0.75rem !important;
    }
    
    .search-clear {
        right: 0.75rem !important;
    }
    
    .top-header {
        padding: 0.75rem 0 !important;
    }
}

@media (max-width: 480px) {
    .header-actions {
        gap: 0.375rem;
    }
    
    .pdf-catalog-button,
    .member-login-button,
    .info-button,
    .category-menu-button {
        width: 2.5rem !important;
        height: 2.5rem !important;
        min-width: 2.5rem !important;
        min-height: 2.5rem !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .pdf-catalog-button i,
    .member-login-button i,
    .info-button i,
    .category-menu-button i {
        font-size: 1rem !important;
    }
    
    .cart-button {
        width: 2.5rem !important;
        height: 2.5rem !important;
        min-width: 2.5rem !important;
        min-height: 2.5rem !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .cart-button i {
        font-size: 1.125rem !important;
    }
    
    .cart-badge {
        top: -3px !important;
        right: -3px !important;
        font-size: 0.5625rem !important;
        padding: 0.125rem 0.25rem !important;
        min-width: 1rem !important;
    }
    
    .contact-link {
        width: 2.5rem !important;
        height: 2.5rem !important;
        min-width: 2.5rem !important;
        min-height: 2.5rem !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .contact-link i {
        font-size: 1rem !important;
    }
    
    .logo-img {
        width: 44px !important;
        height: 44px !important;
    }
    
    .store-name {
        font-size: 1rem !important;
    }
    
    .search-input {
        padding: 0.5rem 2.25rem !important;
        font-size: 16px !important;
    }
    
    .search-icon {
        font-size: 0.9375rem !important;
        left: 0.625rem !important;
    }
    
    .search-clear {
        right: 0.625rem !important;
    }
    
    .top-header {
        padding: 0.625rem 0 !important;
    }
    
    .category-section {
        padding: 0.75rem 0 !important;
    }
}

@media (max-width: 375px) {
    .header-actions {
        gap: 0.25rem;
    }
    
    .pdf-catalog-button,
    .member-login-button,
    .info-button,
    .category-menu-button,
    .cart-button,
    .contact-link {
        width: 2.25rem !important;
        height: 2.25rem !important;
        min-width: 2.25rem !important;
        min-height: 2.25rem !important;
    }
    
    .pdf-catalog-button i,
    .member-login-button i,
    .info-button i,
    .category-menu-button i,
    .contact-link i {
        font-size: 0.9375rem !important;
    }
    
    .cart-button i {
        font-size: 1rem !important;
    }
    
    .logo-img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .store-name {
        font-size: 0.9375rem !important;
    }
}

.contact-info-compact {
    display: flex;
    align-items: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    justify-content: center;
}

.contact-link:hover {
    background: #f8fafc;
    color: #6366f1;
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.15);
}

.contact-link i {
    font-size: 1.125rem;
}
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.contact-link span {
    display: none;
}

.contact-link i {
    font-size: 1.125rem;
    transition: transform 0.2s ease;
}

.contact-link:hover i {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .contact-link {
        width: 2.75rem !important;
        height: 2.75rem !important;
        min-width: 2.75rem !important;
        min-height: 2.75rem !important;
    }
    
    .contact-link i {
        font-size: 1.125rem !important;
    }
}

@media (max-width: 480px) {
    .contact-link {
        width: 2.5rem !important;
        height: 2.5rem !important;
        min-width: 2.5rem !important;
        min-height: 2.5rem !important;
    }
    
    .contact-link i {
        font-size: 1rem !important;
    }
}

.info-button {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 2.75rem;
    height: 2.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.info-button:hover {
    background: #f8fafc;
    border-color: #6366f1;
    color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.15);
}

.info-button i {
    font-size: 1.125rem;
    transition: transform 0.2s ease;
}

.info-button:hover i {
    transform: scale(1.1);
}

.info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.info-modal.active {
    opacity: 1;
    visibility: visible;
}

.info-modal-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 31.25rem;
    width: 100%;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.info-modal.active .info-modal-content {
    transform: scale(1);
}

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

.info-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-modal-title i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.info-modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.info-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-dark);
}

.info-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem;
    background: var(--bg-secondary);
    border-radius: 0.625rem;
    transition: all 0.2s ease;
}

.info-item:hover {
    background: var(--border-color);
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-item-content {
    flex: 1;
}

.info-item-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 2px;
    font-weight: 500;
}

.info-item-value {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
    margin: 0;
}

.info-item-value a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.info-item-value a:hover {
    color: var(--primary-color);
}

.social-links-modal {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link-modal {
    flex: 1;
    min-width: 7.5rem;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.social-link-modal:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow);
}

.social-link-modal i {
    font-size: 1.125rem;
    color: white;
}

.cart-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.2);
    height: auto;
}

.cart-button:hover {
    background: #0f172a;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.3);
    transform: translateY(-2px);
}

.cart-button:active {
    transform: translateY(0);
}

.cart-button i {
    font-size: 1.125rem;
}

/* Hide cart button text below 1200px */
@media (max-width: 1200px) {
    .cart-button span:not(.cart-badge) {
        display: none !important;
    }
}

.cart-badge {
    position: absolute;
    top: -0.375rem;
    right: -0.375rem;
    background: #dc2626;
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    min-width: 1.25rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
    border: 2px solid white;
}

.logo-img {
    width: 50px; /* Smaller logo */
    height: 50px; /* Smaller logo */
    object-fit: contain;
    background: transparent;
    padding: 0;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.logo-section:hover .logo-img {
    transform: scale(1.05);
}

.store-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

@media (max-width: 1400px) {
    .store-name {
        font-size: 1.375rem;
    }
}

@media (max-width: 1200px) {
    .logo-img {
        width: 50px;
        height: 50px;
    }
    
    .store-name {
        font-size: 1.25rem;
    }
}

.contact-info {
    display: flex;
    gap: 1.5625rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.contact-item i {
    font-size: 1.3rem;
}

.contact-item a {
    color: var(--text-medium);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-item i {
    color: var(--text-light);
}

.contact-item span {
    color: var(--text-medium);
}

.announcement-banner {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #78350f;
    padding: 0.625rem 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    border-bottom: 1px solid #fde68a;
    letter-spacing: 0.3px;
    position: relative;
    margin: 0;
}

body {
    padding-top: 0;
}

.body-spacer {
    height: 11.25rem;
}

.announcement-banner i {
    margin-right: 0.5rem;
    color: #d97706;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.category-section {
    background: #ffffff;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.category-menu-button {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 2.75rem;
    height: 2.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Show category menu button only below 1200px */
@media (max-width: 1200px) {
    .category-menu-button {
        display: flex !important;
    }
}

.category-menu-button:hover {
    background: #f8fafc;
    border-color: #6366f1;
    color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.15);
}

.category-menu-button i {
    font-size: 1.25rem;
}

.category-menu-button i {
    font-size: 1.125rem;
    transition: transform 0.2s ease;
}

.category-menu-button:hover i {
    transform: scale(1.1);
}

.category-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 17.5rem;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 1rem rgba(0,0,0,0.15);
    z-index: 10001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Mobile responsive width for category dropdown */
@media (max-width: 480px) {
    .category-dropdown {
        width: 85vw;
        max-width: 20rem;
    }
}

@media (max-width: 320px) {
    .category-dropdown {
        width: 90vw;
    }
}

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

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

.category-dropdown-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-dropdown-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.category-dropdown-close:hover {
    background: var(--bg-color);
    color: var(--text-dark);
}

.category-dropdown-body {
    padding: 1rem;
    overflow-y: auto;
}

.category-dropdown-body .category-btn {
    width: 100%;
    justify-content: flex-start;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
}

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

.category-overlay.active {
    opacity: 1;
    visibility: visible;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.category-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Horizontal scroll for categories below 1006px */
@media (max-width: 1006px) {
    .category-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--border-color) transparent;
        padding-bottom: 0.25rem;
    }
    
    .category-buttons::-webkit-scrollbar {
        height: 4px;
    }
    
    .category-buttons::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .category-buttons::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 2px;
    }
    
    .category-buttons::-webkit-scrollbar-thumb:hover {
        background: var(--primary-light);
    }
    
    .category-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .category-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .category-btn i {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .category-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .category-btn i {
        font-size: 0.875rem;
    }
    
    .category-title {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
}

.category-btn {
    padding: 0.625rem 1.125rem;
    border: 1px solid var(--border-color);
    background: #ffffff;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-medium);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.category-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.2);
}

.category-btn.active i {
    color: white;
}

.category-btn i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.category-btn:hover i {
    transform: scale(1.1);
}

.products-section {
    padding: 3rem 0 3rem 0;
    padding-top: calc(3rem + 10px);
    min-height: 60vh;
    margin-bottom: 2.5rem;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 1.5rem 1rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.pagination-btn:active:not(:disabled) {
    transform: translateY(0);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bg-secondary);
}

.pagination-info {
    font-size: 0.95rem;
    color: var(--text-medium);
    font-weight: 500;
    padding: 0 1rem;
    text-align: center;
}

@media (max-width: 767px) {
    .pagination-container {
        gap: 1rem;
        margin-top: 2rem;
        padding: 1rem 0.5rem;
    }
    
    .pagination-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .pagination-btn span {
        display: none;
    }
    
    .pagination-info {
        font-size: 0.875rem;
        padding: 0 0.5rem;
    }
}

/* Override products-section padding for different screen sizes */

/* Desktop (1201px+) */
@media (min-width: 1201px) {
    .products-section {
        padding: 40px 0 !important;
        margin-bottom: 30px;
    }
}

/* Large tablets and small desktops (992px - 1200px) */
@media (min-width: 992px) and (max-width: 1200px) {
    .products-section {
        padding: 30px 0 !important;
        margin-bottom: 25px;
    }
}

/* Tablets (768px - 992px) - Compact header and improved spacing */
@media (min-width: 768px) and (max-width: 992px) {
    .products-section {
        padding: 25px 0 !important;
        margin-bottom: 25px;
    }
    
    /* Header optimization for tablets */
    .store-name {
        display: none !important;
    }
    
    .logo-img {
        width: 48px !important;
        height: 48px !important;
    }
    
    .top-header {
        padding: 0.625rem 0 !important;
    }
    
    .search-input {
        padding: 0.625rem 2.5rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Compact buttons */
    .contact-info-compact .contact-link {
        padding: 0 !important;
        width: 2.75rem !important;
        height: 2.75rem !important;
        min-width: 2.75rem !important;
        min-height: 2.75rem !important;
        border-radius: 0.625rem !important;
        justify-content: center !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: var(--shadow-sm) !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .contact-info-compact .contact-link span {
        display: none !important;
    }
    
    .contact-info-compact .contact-link i {
        font-size: 1.125rem !important;
    }
    
    .cart-button {
        padding: 0 !important;
        width: 2.75rem !important;
        height: 2.75rem !important;
        min-width: 2.75rem !important;
        min-height: 2.75rem !important;
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .cart-button span:not(.cart-badge) {
        display: none !important;
    }
    
    .cart-button i {
        font-size: 1.25rem !important;
    }
    
    .cart-badge {
        top: -4px !important;
        right: -4px !important;
        font-size: 0.625rem !important;
        padding: 0.125rem 0.375rem !important;
        min-width: 1.125rem !important;
    }
    
    .header-actions {
        gap: 0.5rem !important;
    }
    
    .category-menu-button {
        width: 2.75rem !important;
        height: 2.75rem !important;
        min-width: 2.75rem !important;
        min-height: 2.75rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .category-menu-button i {
        font-size: 1.125rem !important;
    }
    
    .pdf-catalog-button,
    .member-login-button,
    .info-button {
        width: 2.75rem !important;
        height: 2.75rem !important;
        min-width: 2.75rem !important;
        min-height: 2.75rem !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .pdf-catalog-button i,
    .member-login-button i,
    .info-button i {
        font-size: 1.125rem !important;
    }
    
    #productsGrid {
        margin-top: 135px;
    }
}

/* Large mobile (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .products-section {
        padding: 20px 0 !important;
        margin-bottom: 20px;
    }
}

/* Small mobile and below (max-width: 575px) */
@media (max-width: 575px) {
    .products-section {
        padding: 15px 0 !important;
        margin-bottom: 15px;
    }
}

#productsGrid {
    margin-top: 0;
}

/* Responsive productsGrid margin-top based on header height */

/* Desktop (1201px+) - Header with categories */
@media (min-width: 1201px) {
    #productsGrid {
        margin-top: 180px; /* Full header height with category section */
    }
}

/* Large tablets and small desktops (992px - 1200px) */
@media (min-width: 992px) and (max-width: 1200px) {
    #productsGrid {
        margin-top: 160px; /* Increased for larger header */
    }
}

/* Large mobile (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    #productsGrid {
        margin-top: 135px;
    }
}

/* Smaller screens (max-width: 764px) - Reduce spacing */
@media (max-width: 764px) {
    #productsGrid {
        margin-top: 125px !important;
    }
}

/* Small mobile (max-width: 580px) - Keep same spacing as 576px */
@media (max-width: 580px) {
    #productsGrid {
        margin-top: 125px !important; /* Reduced by 10px for smaller screens */
    }
}

/* Small mobile (max-width: 575px) */
@media (max-width: 575px) {
    #productsGrid {
        margin-top: 125px; /* Reduced by 10px for smaller screens */
    }
}

/* Extra small mobile (max-width: 374px) */
@media (max-width: 374px) {
    #productsGrid {
        margin-top: 130px; /* Increased by 10px for more spacing */
    }
}

#productsGrid > [class*="col-"] {
    padding: 0.75rem;
}

/* Responsive container padding */
.container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (max-width: 1199px) {
    .container-fluid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    #productsGrid > [class*="col-"] {
        padding: 0.625rem;
    }
}

@media (max-width: 991px) {
    .container-fluid {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    #productsGrid > [class*="col-"] {
        padding: 0.625rem;
    }
}

@media (max-width: 767px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #productsGrid > [class*="col-"] {
        padding: 0.5rem;
    }
}

@media (max-width: 575px) {
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    #productsGrid > [class*="col-"] {
        padding: 0.375rem;
    }
}

.product-card {
    background: #ffffff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: none;
    position: relative;
}

.product-card > * {
    position: relative;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-6px);
}

.product-image-wrapper {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #f8f9fa;
    z-index: 1;
}

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

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

.stock-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    color: #4a5568;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    backdrop-filter: blur(8px);
}

.stock-badge.out-of-stock {
    background: rgba(220, 38, 38, 0.95);
    color: white;
}

.stock-badge.low-stock {
    background: rgba(217, 119, 6, 0.95);
    color: white;
}

/* Modern Alert-Style Stock Badge */
.stock-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.375rem 0.625rem;
    margin-top: 0.5rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #065f46;
    border-left: 3px solid var(--success-color);
    box-shadow: 0 1px 3px rgba(5, 150, 105, 0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: fit-content;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.stock-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--success-color);
    opacity: 0.8;
}

.stock-text i {
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.stock-text.out-of-stock {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    border-left-color: var(--danger-color);
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.1);
}

.stock-text.out-of-stock::before {
    background: var(--danger-color);
}

.stock-text.low-stock {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #92400e;
    border-left-color: var(--warning-color);
    box-shadow: 0 1px 3px rgba(217, 119, 6, 0.1);
}

.stock-text.low-stock::before {
    background: var(--warning-color);
}

/* Hover effect for better interactivity */
.product-card:hover .stock-text {
    transform: translateX(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.product-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #ffffff;
}

.product-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0;
    line-height: 1.4;
    min-height: 3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
    color: #a0aec0;
}

.product-info div {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    font-weight: 400;
}

.product-info i {
    display: none;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 0.75rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    letter-spacing: -0.5px;
}

.add-to-cart-btn {
    padding: 0.5rem 1rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    box-shadow: none;
    white-space: nowrap;
}

.add-to-cart-btn:hover:not(:disabled) {
    background: #059669;
}

.add-to-cart-btn:active:not(:disabled) {
    transform: scale(0.96);
}

.add-to-cart-btn:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
}

.add-to-cart-btn i {
    font-size: 0.875rem;
}

.add-to-cart-btn span {
    font-size: 0.8125rem;
}

.social-links {
    display: flex;
    gap: 0.9375rem;
    margin-top: 1.25rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    font-size: 1.125rem;
    transition: all 0.2s;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -30rem;
    width: 30rem;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height */
    background: #f8f9fa;
    box-shadow: -2px 0 1rem rgba(0,0,0,0.15);
    z-index: 10000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

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

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: white;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.cart-back {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    position: absolute;
    left: 1rem;
    z-index: 1;
}

.cart-back:hover {
    background: white;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
}

.cart-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--text-dark);
    flex: 1;
    justify-content: center;
}

.cart-title i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.cart-close {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    position: absolute;
    right: 1rem;
}

.cart-close:hover {
    background: white;
    border-color: #fca5a5;
    color: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    min-height: 0;
}

.cart-step-1 {
    width: 100%;
}

.cart-step-2 {
    width: 100%;
    background: #f8fafc;
    padding: 0.875rem;
    border-radius: 0.75rem;
    margin: -0.75rem;
    margin-bottom: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: 1px;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-light);
    text-align: center;
}

.cart-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.cart-empty p {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-medium);
}

.cart-empty small {
    font-size: 0.875rem;
}

.cart-item {
    display: flex;
    gap: 0.625rem;
    padding: 0.75rem;
    background: white;
    border-radius: 0.75rem;
    margin-bottom: 0.625rem;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1.5px solid #f1f5f9;
    transition: all 0.2s ease;
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #e2e8f0;
}

.cart-item-image {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: cover;
    border-radius: 0.625rem;
    background: #f8fafc;
    flex-shrink: 0;
    cursor: zoom-in;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.cart-item a {
    display: block;
    flex-shrink: 0;
    border-radius: 0.625rem;
    transition: all 0.2s ease;
}

.cart-item a:hover {
    transform: scale(1.05);
}

.cart-item a:hover .cart-item-image {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

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

.cart-item-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.125rem;
    padding-right: 1.5rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cart-item-package {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.375rem;
}

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.cart-item-price {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.qty-btn {
    width: 1.75rem;
    height: 1.75rem;
    border: 1.5px solid #e2e8f0;
    background: white;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.qty-btn:hover:not(:disabled) {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2);
}

.qty-btn.minus:hover:not(:disabled) {
    background: #f1f5f9;
    color: var(--text-dark);
    border-color: #cbd5e1;
}

.qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.qty-value {
    min-width: 2rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.cart-item-remove {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.cart-item-note {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-item-note:hover {
    color: var(--secondary-color);
}

.cart-item-note-display {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.625rem;
    background: #fffbeb;
    border-left: 3px solid #fbbf24;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    color: #78350f;
    line-height: 1.4;
    cursor: pointer;
}

.cart-item-note-display:hover {
    background: #fef3c7;
}

.cart-item-note-display i {
    color: #d97706;
    font-size: 0.875rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.cart-item-note-display span {
    flex: 1;
    word-break: break-word;
}

.cart-item-note-textarea {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.625rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    outline: none;
    resize: vertical;
    min-height: 2rem;
    max-height: 6rem;
    font-family: 'Poppins', sans-serif;
    background: #f8fafc;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.cart-item-note-textarea:hover {
    border-color: #cbd5e1;
    background: white;
}

.cart-item-note-textarea:focus {
    border-color: #fbbf24;
    background: #fffbeb;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.cart-item-note-textarea::placeholder {
    color: #94a3b8;
    font-size: 0.75rem;
}

.cart-item-stock-warning {
    margin-top: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    color: #92400e;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cart-item-stock-warning::before {
    content: '⚠️';
    font-size: 0.875rem;
}

.cart-item-note-input {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem;
    border: 2px solid var(--secondary-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    outline: none;
    resize: vertical;
    min-height: 5rem;
    font-family: 'Poppins', sans-serif;
    display: none;
}

.cart-item-note-input.active {
    display: block;
}

.cart-item-note-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.1);
}

.cart-footer {
    border-top: 1px solid #e8eaed;
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    background: white;
    flex-shrink: 0;
}

.cart-footer-step-1 {
    border-top: 1px solid #e8eaed;
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    background: white;
    flex-shrink: 0;
}

.cart-footer-step-2 {
    border-top: 1px solid #e8eaed;
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    background: white;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    flex-shrink: 0;
}

.cart-customer-info {
    margin-bottom: 0.75rem;
    padding: 0 0.25rem;
}

.auth-options {
    display: flex;
    gap: 0.375rem;
    margin-bottom: 0.875rem;
    background: #f1f5f9;
    padding: 0.25rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.auth-option-btn {
    flex: 1;
    padding: 0.625rem 1rem;
    background: transparent;
    border: none;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

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

.auth-option-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    font-weight: 600;
}

.auth-option-btn i {
    font-size: 1rem;
}

.member-login-section {
    display: none;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.member-login-section.active {
    display: block;
}

.member-login-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.member-login-header i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.member-login-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.member-login-form .form-group {
    margin-bottom: 0.75rem;
}

.member-login-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-member-login,
.btn-member-register {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.btn-member-login:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(30, 41, 59, 0.2);
}

.btn-member-register {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.btn-member-register:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
}

.member-info-display {
    display: none;
    padding: 1rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: 0.75rem;
    margin-bottom: 0.875rem;
    border: 1.5px solid #86efac;
}

.member-info-display.active {
    display: block;
}

.member-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.875rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #bbf7d0;
}

.member-info-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #166534;
    font-weight: 600;
    font-size: 0.9375rem;
}

.member-info-title i {
    font-size: 1.125rem;
    color: #22c55e;
}

.btn-member-logout {
    background: white;
    border: 1px solid #fecaca;
    color: #dc2626;
    cursor: pointer;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.btn-member-logout:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

.member-info-details {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.member-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: #166534;
    padding: 0.5rem;
    background: white;
    border-radius: 0.5rem;
}

.member-info-item i {
    color: #22c55e;
    font-size: 0.875rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.member-info-item strong {
    color: #15803d;
    margin-right: 0.25rem;
}

.guest-checkout-section {
    display: none;
}

.guest-checkout-section.active {
    display: block;
}

.info-title {
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-dark);
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.info-title:hover {
    background: #e8eaed;
}

.info-title-left {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.info-title-left i {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.info-toggle {
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.info-toggle.active {
    transform: rotate(180deg);
}

.customer-form {
    display: block;
    padding: 0;
}

.form-group {
    margin-bottom: 0.625rem;
    position: relative;
}

.form-group label {
    display: none;
}

.form-control {
    width: 100%;
    padding: 0.75rem 2.625rem 0.75rem 2.625rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.625rem;
    font-size: 16px;
    transition: all 0.2s ease;
    outline: none;
    background: #ffffff;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
}

.form-control:hover {
    border-color: #cbd5e1;
}

.form-control:focus {
    border-color: var(--secondary-color);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.08);
}

.form-control::placeholder {
    color: #94a3b8;
    font-size: 0.8125rem;
}

.form-group i {
    position: absolute;
    left: 0.9375rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1rem;
    z-index: 1;
    pointer-events: none;
}

.form-group.textarea-group i {
    top: 0.9375rem;
    transform: none;
}

.form-group.textarea-group .form-control {
    min-height: 4rem;
    max-height: 8rem;
    resize: vertical;
    padding-top: 0.75rem;
    line-height: 1.5;
}

.cart-total {
    padding: 0.875rem 0;
    margin-bottom: 0.875rem;
    border-top: 2px solid #e2e8f0;
    border-bottom: 2px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 1rem;
    border-radius: 0.625rem;
    margin-bottom: 0.875rem;
    border: 1.5px solid #e2e8f0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9375rem;
    color: #64748b;
    font-weight: 500;
}

.total-row strong {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.btn-whatsapp {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
    margin-bottom: 1rem;
}

.btn-whatsapp:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
    transform: translateY(-2px);
}

.btn-whatsapp:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}

.btn-whatsapp:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.btn-whatsapp i {
    font-size: 1.375rem;
}

.btn-pdf {
    width: 100%;
    padding: 0.875rem;
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.btn-pdf:hover:not(:disabled) {
    background: var(--bg-color);
    border-color: var(--border-color);
    transform: translateY(-1px);
}

.btn-pdf:active:not(:disabled) {
    transform: translateY(0);
}

.btn-pdf:disabled {
    background: var(--bg-secondary);
    color: var(--text-light);
    border-color: var(--border-light);
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-complete-order {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.2);
}

.btn-complete-order:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #020617 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 41, 59, 0.3);
}

.btn-complete-order:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.2);
}

.btn-complete-order:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

/* Product Detail Modal - Minimal & Mobile-First */
.product-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10005;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.product-detail-modal.active {
    opacity: 1;
    visibility: visible;
}

.product-detail-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10004;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.product-detail-modal-content {
    position: relative;
    background: white;
    border-radius: 1rem;
    width: 100%;
    height: auto;
    max-width: 19.5rem;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10006;
    display: flex;
    flex-direction: column;
}

.product-detail-modal.active .product-detail-modal-content {
    transform: scale(1);
}

.product-detail-modal-header {
    position: relative;
    background: white;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-radius: 1rem 1rem 0 0;
}

.product-detail-modal-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.product-detail-modal-back:hover {
    background: var(--bg-secondary);
}

.product-detail-modal-back i {
    font-size: 1.25rem;
}

.product-detail-modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.product-detail-modal-close {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--bg-secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.125rem;
    transition: all 0.2s ease;
}

.product-detail-modal-close:hover {
    background: var(--border-color);
    color: var(--danger-color);
}

.product-detail-modal-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.product-detail-image-section {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    height: 200px;
}

.product-detail-image-section a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
    padding: 0;
}

.product-detail-image-section a:hover {
    transform: scale(1.02);
}

.product-detail-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: all 0.3s ease;
}

.product-detail-image-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    color: #4a5568;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.product-detail-image-badge.out-of-stock {
    background: rgba(220, 38, 38, 0.95);
    color: white;
}

.product-detail-image-badge.low-stock {
    background: rgba(217, 119, 6, 0.95);
    color: white;
}

.product-detail-image-badge.in-stock {
    background: rgba(5, 150, 105, 0.95);
    color: white;
}

.product-detail-info-section {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: white;
}

.product-detail-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

.product-detail-package {
    font-size: 0.875rem;
    color: var(--text-light);
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    text-align: center;
}

.product-detail-meta {
    display: flex;
    gap: 0.75rem;
}

.product-detail-meta-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    border: 1px solid var(--border-light);
}

.product-detail-meta-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.product-detail-meta-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-detail-meta-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-detail-meta-value {
    font-size: 0.9375rem;
    color: var(--text-dark);
    font-weight: 600;
}

.product-detail-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.product-detail-stock-badge i {
    font-size: 0.875rem;
}

.product-detail-stock-badge.in-stock {
    background: rgba(5, 150, 105, 0.12);
    color: var(--success-color);
}

.product-detail-stock-badge.low-stock {
    background: rgba(217, 119, 6, 0.12);
    color: var(--warning-color);
}

.product-detail-stock-badge.out-of-stock {
    background: rgba(220, 38, 38, 0.12);
    color: var(--danger-color);
}

.product-detail-footer {
    background: white;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 0 0 1rem 1rem;
}

.product-detail-price-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-detail-price-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.product-detail-add-btn {
    flex: 1;
    padding: 0.875rem 1.25rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
    min-height: 2.75rem;
}

.product-detail-add-btn:hover:not(:disabled) {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
}

.product-detail-add-btn:active:not(:disabled) {
    transform: translateY(0);
}

.product-detail-add-btn:disabled {
    background: var(--bg-secondary);
    color: var(--text-light);
    cursor: not-allowed;
    box-shadow: none;
}

.product-detail-add-btn i {
    font-size: 1.25rem;
}

/* Desktop view - centered modal */
@media (min-width: 768px) {
    .product-detail-modal {
        padding: 1.5rem;
    }
    
    .product-detail-modal-content {
        border-radius: 1rem;
        max-width: 19.5rem;
        max-height: 80vh;
        height: auto;
        transform: scale(0.95);
    }
    
    .product-detail-modal.active .product-detail-modal-content {
        transform: scale(1);
    }
    
    .product-detail-modal-header {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        background: transparent;
        padding: 0;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }
    
    .product-detail-modal-back {
        display: none;
    }
    
    .product-detail-modal-title {
        display: none;
    }
    
    .product-detail-modal-close {
        width: 2.5rem;
        height: 2.5rem;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    .product-detail-modal-close:hover {
        background: white;
        transform: rotate(90deg);
    }
    
    .product-detail-image-section {
        height: 200px;
        padding: 0;
    }
    
    .product-detail-image-section a {
        padding: 0;
    }
    
    .product-detail-info-section {
        padding: 1.25rem 1.5rem;
    }
    
    .product-detail-title {
        font-size: 1.375rem;
    }
    
    .product-detail-footer {
        position: relative;
        padding: 1rem 1.5rem;
        border-radius: 0 0 1rem 1rem;
    }
    
    .product-detail-price {
        font-size: 1.75rem;
    }
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .product-detail-modal {
        padding: 0.75rem;
    }
    
    .product-detail-modal-content {
        max-width: calc(100% - 1.5rem);
        width: 100%;
        max-height: 90vh;
    }
    
    .product-detail-modal-header {
        padding: 1rem 1.25rem;
    }
    
    .product-detail-modal-back i {
        font-size: 1.125rem;
    }
    
    .product-detail-modal-close {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .product-detail-image-section {
        height: 220px;
        padding: 0;
    }
    
    .product-detail-image-section a {
        padding: 0;
    }
    
    .product-detail-info-section {
        padding: 1.25rem;
    }
    
    .product-detail-title {
        font-size: 1.25rem;
    }
    
    .product-detail-package {
        font-size: 0.9375rem;
        padding: 0.625rem 1rem;
    }
    
    .product-detail-footer {
        padding: 1rem 1.25rem;
    }
    
    .product-detail-price {
        font-size: 1.5rem;
    }
    
    .product-detail-add-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 3rem;
    }
}

/* Enhanced Add to Cart Modal Styles */
.add-to-cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10003;
    display: flex;
    align-items: center; /* Dikey ortalama */
    justify-content: center; /* Yatay ortalama */
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    overflow: hidden; /* Scroll engelleme */
}

.add-to-cart-modal.active {
    opacity: 1;
    visibility: visible;
}

.add-to-cart-modal-content {
    background: white;
    border-radius: 1rem;
    width: 100%;
    max-width: 28rem;
    max-height: 90vh;
    max-height: 90dvh; /* Dynamic viewport height for mobile */
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    margin: auto; /* Tam ortada */
}

.add-to-cart-modal.active .add-to-cart-modal-content {
    transform: scale(1);
}

.add-to-cart-modal-header {
    padding: 1.25rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    flex-shrink: 0;
    z-index: 10;
}

.add-to-cart-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.add-to-cart-modal-close {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--bg-secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.125rem;
    transition: all 0.2s ease;
}

.add-to-cart-modal-close:hover {
    background: var(--border-color);
    color: var(--danger-color);
}

.add-to-cart-modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    min-height: 0; /* Flex shrink için gerekli */
}

.product-preview {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    border: 1px solid var(--border-light);
}

.modal-product-image {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    border-radius: 0.5rem;
    background: white;
    flex-shrink: 0;
    cursor: zoom-in;
    transition: all 0.2s ease;
}

.product-preview a {
    display: block;
    flex-shrink: 0;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.product-preview a:hover {
    transform: scale(1.05);
}

.product-preview a:hover .modal-product-image {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.modal-product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

.modal-product-package {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.modal-product-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.quantity-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
}

.quantity-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hızlı Seçim Butonları */
.quick-quantity-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.quick-qty-btn {
    min-width: 3rem;
    height: 2.25rem;
    padding: 0 0.75rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-qty-btn:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2);
}

.quick-qty-btn:active {
    transform: translateY(0);
}

.quick-qty-btn.selected {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2);
}

.quantity-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-dark);
    font-size: 1rem;
}

.quantity-btn:hover:not(:disabled) {
    background: var(--secondary-color);
    color: white;
}

.quantity-btn:disabled {
    background: var(--border-light);
    color: var(--text-light);
    cursor: not-allowed;
}

.quantity-input {
    width: 6rem;
    height: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    text-align: center;
    font-size: 16px; /* iPhone zoom prevention - minimum 16px */
    font-weight: 600;
    color: var(--text-dark);
    background: white;
    outline: none;
    transition: all 0.2s ease;
    touch-action: manipulation; /* Prevent double-tap zoom */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on iOS */
}

.quantity-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.note-section {
    margin-top: 1rem;
}

.note-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.note-input-wrapper {
    position: relative;
}

.note-input {
    width: 100%;
    min-height: 4rem;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-family: 'Poppins', sans-serif;
    resize: vertical;
    outline: none;
    transition: all 0.2s ease;
    background: white;
}

.note-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.note-counter {
    position: absolute;
    bottom: 0.5rem;
    right: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-light);
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.note-counter.warning {
    color: var(--warning-color);
}

.add-to-cart-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: white;
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    flex-shrink: 0; /* Footer'ın kesilmemesi için */
    z-index: 10;
}

.modal-total-footer {
    flex: 1.5; /* %60 gibi - daha geniş */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid var(--secondary-color);
    border-radius: 0.75rem;
    min-width: 0; /* Flex shrink için */
}

.modal-total-footer .total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-add-to-cart {
    flex: 1; /* %40 gibi - daha dar */
    padding: 0.875rem 1rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
    white-space: nowrap;
    min-width: 0; /* Flex shrink için */
}

.btn-add-to-cart i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.btn-add-to-cart .btn-text-short {
    display: inline; /* Her zaman "Ekle" göster */
}

.btn-add-to-cart .btn-text-full {
    display: none; /* "Sepete Ekle" gizle */
}

.btn-add-to-cart:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
}

.btn-add-to-cart:active {
    transform: translateY(0);
}

/* Mobil için kısa metin göster */
@media (max-width: 480px) {
    .add-to-cart-modal-footer {
        padding: 0.875rem 1rem;
        gap: 0.625rem;
    }
    
    .modal-total-footer {
        flex: 1.5; /* Mobilde de %60 */
        padding: 0.75rem 0.875rem;
    }
    
    .modal-total-footer .total-amount {
        font-size: 1.25rem;
    }
    
    .btn-add-to-cart {
        flex: 1; /* Mobilde de %40 */
        padding: 0.75rem 0.875rem;
        font-size: 0.9375rem;
        gap: 0.375rem;
    }
    
    .btn-add-to-cart i {
        font-size: 1.125rem;
    }
    
    .btn-add-to-cart .btn-text-full {
        display: none;
    }
    
    .btn-add-to-cart .btn-text-short {
        display: inline;
    }
}

/* Çok küçük ekranlar için */
@media (max-width: 360px) {
    .add-to-cart-modal-footer {
        padding: 0.75rem 0.875rem;
        gap: 0.5rem;
    }
    
    .modal-total-footer {
        flex: 1.75; /* Çok küçük ekranda fiyat daha geniş */
        padding: 0.625rem 0.75rem;
    }
    
    .modal-total-footer .total-amount {
        font-size: 1.125rem;
    }
    
    .btn-add-to-cart {
        flex: 1; /* Buton daha dar */
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
        gap: 0.375rem;
    }
    
    .btn-add-to-cart i {
        font-size: 1rem;
    }
}

/* Desktop view for add to cart modal */
@media (min-width: 768px) {
    .add-to-cart-modal {
        align-items: center;
        padding: 1.5rem;
    }
    
    .add-to-cart-modal-content {
        border-radius: 1.25rem;
        max-width: 28rem;
        max-height: 80vh;
        transform: scale(0.95);
    }
    
    .add-to-cart-modal.active .add-to-cart-modal-content {
        transform: scale(1);
    }
}

/* Large desktop */
@media (min-width: 1024px) {
    .product-detail-modal-content {
        max-width: 48rem;
    }
    
    .product-detail-image-section {
        min-height: 28rem;
    }
    
    .product-detail-title {
        font-size: 2rem;
    }
}

/* Small mobile optimization */
@media (max-width: 480px) {
    .product-detail-modal-header {
        padding: 0.875rem 1rem;
    }
    
    .product-detail-modal-back i {
        font-size: 1.125rem;
    }
    
    .product-detail-modal-close {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1rem;
    }
    
    .product-detail-image-section {
        max-height: 45vh;
    }
    
    .product-detail-info-section {
        padding: 1.25rem 1rem;
        gap: 1rem;
    }
    
    .product-detail-title {
        font-size: 1.25rem;
    }
    
    .product-detail-meta {
        gap: 0.625rem;
    }
    
    .product-detail-meta-item {
        padding: 0.875rem 0.625rem;
    }
    
    .product-detail-meta-item i {
        font-size: 1.25rem;
    }
    
    .product-detail-meta-label {
        font-size: 0.6875rem;
    }
    
    .product-detail-meta-value {
        font-size: 0.875rem;
    }
    
    .product-detail-footer {
        padding: 1rem;
    }
    
    .product-detail-price {
        font-size: 1.625rem;
    }
    
    .product-detail-add-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
        min-height: 3rem;
    }
}

/* Corporate Minimal Add to Cart Modal */
.add-to-cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10003;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden; /* Scroll engelleme */
}

.add-to-cart-modal.active {
    opacity: 1;
    visibility: visible;
}

.add-to-cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    z-index: 10002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.add-to-cart-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.add-to-cart-modal-content {
    background: var(--bg-card);
    border-radius: 0.75rem;
    width: 100%;
    max-width: 28rem;
    max-height: 90vh;
    max-height: 90dvh;
    box-shadow: var(--shadow-lg);
    transform: scale(0.96) translateY(1rem);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    margin: auto; /* Tam ortada */
}

.add-to-cart-modal.active .add-to-cart-modal-content {
    transform: scale(1) translateY(0);
}

.add-to-cart-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-card);
    flex-shrink: 0;
}

.add-to-cart-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
}

.add-to-cart-modal-close {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-medium);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    width: 2rem;
    height: 2rem;
}

.add-to-cart-modal-close:hover {
    background: var(--border-color);
    color: var(--text-dark);
}

.add-to-cart-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    min-height: 0;
}

.product-preview {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.625rem;
    border: 1px solid var(--border-light);
}

.modal-product-image {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.modal-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
}

.modal-product-name {
    font-size: 0.9375rem;
    font-weight: 500;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.4;
    font-family: 'Poppins', sans-serif;
}

.modal-product-package {
    font-size: 0.8125rem;
    color: var(--text-medium);
    font-weight: 400;
}

.modal-product-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    font-family: 'Poppins', sans-serif;
}

.quantity-section {
    margin-bottom: 0;
}

.quantity-card {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border: 1px solid var(--border-light);
    height: 100%;
    min-height: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quantity-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: block;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.quantity-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.quantity-btn {
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-dark);
    font-size: 0.875rem;
    font-weight: 500;
}

.quantity-btn:hover:not(:disabled) {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background: var(--bg-secondary);
}

.quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.quantity-input {
    width: 3rem;
    height: 2rem;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    background: var(--bg-card);
    color: var(--text-dark);
    outline: none;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
    touch-action: manipulation; /* Prevent double-tap zoom */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on iOS */
}

.quantity-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.note-section {
    margin-bottom: 1.5rem;
}

.note-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: block;
    font-family: 'Poppins', sans-serif;
}

.note-input-wrapper {
    position: relative;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    background: var(--bg-card);
}

.note-input-wrapper:focus-within {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.note-input {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-family: 'Poppins', sans-serif;
    resize: vertical;
    outline: none;
    background: transparent;
    min-height: 4rem;
    line-height: 1.5;
    color: var(--text-dark);
}

.note-input::placeholder {
    color: var(--text-light);
}

.note-counter {
    position: absolute;
    bottom: 0.5rem;
    right: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-light);
    background: var(--bg-card);
    padding: 0.125rem 0.25rem;
    font-weight: 400;
}

.add-to-cart-modal-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-card);
    align-items: stretch;
    flex-shrink: 0;
    z-index: 10;
}

.modal-total-footer {
    flex: 1.5; /* %60 gibi - daha geniş */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid var(--secondary-color);
    border-radius: 0.75rem;
    min-width: 0;
}

.modal-total-footer .total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-add-to-cart {
    flex: 1; /* %40 gibi - daha dar */
    padding: 0.875rem 1rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    min-width: 0;
}

.btn-add-to-cart i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.btn-add-to-cart .btn-text-short {
    display: inline; /* Her zaman "Ekle" göster */
}

.btn-add-to-cart .btn-text-full {
    display: none; /* "Sepete Ekle" gizle */
}

.btn-add-to-cart:hover {
    background: #047857;
    box-shadow: var(--shadow);
}

.btn-add-to-cart:active {
    transform: translateY(1px);
}

/* Mobil için kısa metin göster */
@media (max-width: 480px) {
    .add-to-cart-modal-footer {
        padding: 0.875rem 1rem;
        gap: 0.625rem;
    }
    
    .modal-total-footer {
        flex: 1.5; /* Mobilde de %60 */
        padding: 0.75rem 0.875rem;
    }
    
    .modal-total-footer .total-amount {
        font-size: 1.25rem;
    }
    
    .btn-add-to-cart {
        flex: 1; /* Mobilde de %40 */
        padding: 0.75rem 0.875rem;
        font-size: 0.9375rem;
        gap: 0.375rem;
    }
    
    .btn-add-to-cart i {
        font-size: 1.125rem;
    }
    
    .btn-add-to-cart .btn-text-full {
        display: none;
    }
    
    .btn-add-to-cart .btn-text-short {
        display: inline;
    }
}

/* Çok küçük ekranlar için */
@media (max-width: 360px) {
    .add-to-cart-modal-footer {
        padding: 0.75rem 0.875rem;
        gap: 0.5rem;
    }
    
    .modal-total-footer {
        flex: 1.75; /* Çok küçük ekranda fiyat daha geniş */
        padding: 0.625rem 0.75rem;
    }
    
    .modal-total-footer .total-amount {
        font-size: 1.125rem;
    }
    
    .btn-add-to-cart {
        flex: 1; /* Buton daha dar */
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
        gap: 0.375rem;
    }
    
    .btn-add-to-cart i {
        font-size: 1rem;
    }
}
    box-shadow: var(--shadow);
}

.btn-add-to-cart:active {
    transform: translateY(1px);
}


/* Corporate Modal - Mobile Responsive */
@media (max-width: 767px) {
    .add-to-cart-modal {
        padding: 1rem;
        overflow: hidden; /* Mobilde de scroll engelleme */
    }
    
    .add-to-cart-modal-content {
        max-width: 100%;
        border-radius: 1rem;
        transform: scale(0.95);
        max-height: 85vh;
        max-height: 85dvh; /* Mobilde biraz daha küçük */
        margin: auto; /* Tam ortada */
    }
    
    .add-to-cart-modal.active .add-to-cart-modal-content {
        transform: scale(1);
    }
    
    .add-to-cart-modal-header {
        position: relative;
        padding: 1.25rem 1.25rem 1rem 1.25rem;
    }
    
    .add-to-cart-modal-header::before {
        content: '';
        position: absolute;
        top: 0.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 2rem;
        height: 0.25rem;
        background: var(--border-color);
        border-radius: 0.125rem;
    }
    
    .add-to-cart-modal-body {
        padding: 1.25rem;
    }
    
    .product-preview {
        padding: 0.875rem;
        margin-bottom: 1.25rem;
        gap: 0.875rem;
    }
    
    .modal-product-image {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    /* Mobilde quantity label'ı gizle */
    .quantity-label {
        display: none;
    }
    
    .row.g-3 {
        margin-bottom: 1rem !important;
    }
    
    .quantity-card {
        min-height: 3.5rem;
        padding: 0.875rem;
    }
    
    .quick-quantity-buttons {
        gap: 0.375rem;
        margin-bottom: 0.875rem;
    }
    
    .quick-qty-btn {
        min-width: 2.5rem;
        height: 2rem;
        font-size: 0.8125rem;
        padding: 0 0.625rem;
    }
    
    .quantity-input-group {
        justify-content: center;
    }
    
    .quantity-btn {
        width: 2rem;
        height: 2rem;
    }
    
    .quantity-input {
        width: 5rem;
        height: 2rem;
        font-size: 16px; /* iPhone zoom prevention - minimum 16px */
    }
}

@media (max-width: 480px) {
    .add-to-cart-modal-content {
        max-height: 90vh;
        max-height: 90dvh;
        margin: auto; /* Tam ortada */
    }
    
    .add-to-cart-modal-header {
        padding: 1rem 1rem 0.75rem 1rem;
    }
    
    .add-to-cart-modal-body {
        padding: 1rem;
    }
    
    .cart-sidebar {
        height: 100vh;
        height: 100dvh;
    }
    
    .cart-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .cart-footer-step-1,
    .cart-footer-step-2 {
        padding: 0.875rem;
        padding-bottom: max(0.875rem, env(safe-area-inset-bottom));
    }
    
    .product-preview {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .modal-product-image {
        width: 3rem;
        height: 3rem;
    }
    
    .modal-product-name {
        font-size: 0.875rem;
    }
    
    .modal-product-package {
        font-size: 0.75rem;
    }
    
    .modal-product-price {
        font-size: 0.9375rem;
    }
    
    .row.g-3 .col-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    .quantity-card {
        padding: 0.75rem;
        min-height: 3rem;
    }
    
    /* Mobilde quantity label gizli */
    .quantity-label {
        display: none;
    }
    
    .quick-quantity-buttons {
        gap: 0.25rem;
        margin-bottom: 0.75rem;
    }
    
    .quick-qty-btn {
        min-width: 2.25rem;
        height: 1.875rem;
        font-size: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .quantity-btn {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.75rem;
    }
    
    .quantity-input {
        width: 4.5rem;
        height: 1.75rem;
        font-size: 16px;
    }
    
    .total-amount {
        font-size: 1rem;
    }
    
    .quantity-input-group {
        gap: 0.375rem;
    }
}

/* Desktop - Show info button */
@media (min-width: 1201px) {
    .info-button {
        display: flex;
    }
}

/* Show phone number text only on very large screens (1623px+) */
@media (min-width: 1623px) {
    .contact-info-compact .contact-link {
        padding: 0.625rem 1rem !important;
        width: auto !important;
        height: auto !important;
        border-radius: 0.625rem !important;
        justify-content: flex-start !important;
        border: 1px solid transparent !important;
        box-shadow: none !important;
    }
    
    .contact-info-compact .contact-link span {
        display: inline !important;
    }
    
    .contact-info-compact .contact-link i {
        font-size: 1rem !important;
    }
}

/* Tablet and Mobile (max-width: 1200px) - Optimized layout */
@media (max-width: 1200px) {
    /* Hide desktop category section */
    .category-section {
        display: none;
    }
    
    /* Optimized store name visibility */
    .store-name {
        display: block !important;
        font-size: 1.5rem;
    }
    
    /* Keep info button visible */
    .info-button {
        display: flex;
    }
    
    /* Consistent header padding */
    .top-header {
        padding: 15px 0;
    }
    
    /* Optimized logo size */
    .logo-img {
        width: 70px;
        height: 70px;
    }
    
    /* Compact contact link */
    .contact-info-compact .contact-link {
        padding: 0 !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 10px !important;
        justify-content: center !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: var(--shadow-sm) !important;
    }
    
    .contact-info-compact .contact-link:hover {
        background: var(--bg-secondary);
        border-color: var(--primary-color);
        color: var(--primary-color);
    }
    
    .contact-info-compact .contact-link i {
        font-size: 1.125rem;
    }
    
    .contact-info-compact .contact-link span {
        display: none !important;
    }
    
    /* Cart button with text */
    .cart-button {
        padding: 0.75rem 1.5rem !important;
        border-radius: 0.625rem !important;
        width: auto !important;
        height: 2.75rem !important;
        justify-content: center !important;
    }
    
    .cart-button span:not(.cart-badge) {
        display: inline !important;
    }
    
    .cart-button i {
        font-size: 1.25rem;
    }
    
    .cart-badge {
        top: -0.375rem;
        right: -0.375rem;
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
        min-width: 1.25rem;
    }
    
    .header-actions {
        gap: 1rem;
    }
    
    .category-menu-button {
        width: 2.75rem;
        height: 2.75rem;
    }
    
    /* Search input optimization */
    .search-input {
        padding: 0.875rem 3rem;
        font-size: 0.9375rem;
        border-radius: 0.75rem;
    }
    
    .search-icon {
        font-size: 1.125rem;
        left: 1rem;
    }
    
    .search-clear {
        right: 1rem;
    }
    
    /* Product grid optimization */
    #productsGrid > [class*="col-"] {
        padding: 8px;
    }
    
    .product-card {
        border-radius: 16px;
    }
    
    .product-body {
        padding: 1.125rem !important;
    }
    
    .product-title {
        font-size: 0.9375rem;
        min-height: 42px;
        margin-bottom: 6px;
    }
    
    .product-info {
        font-size: 0.8125rem;
        margin-bottom: 8px;
    }
    
    .product-price {
        font-size: 1.25rem;
        margin-bottom: 0;
    }
    
    .add-to-cart-btn {
        padding: 7px 14px;
        font-size: 0.75rem;
        border-radius: 7px;
    }
    
    .add-to-cart-btn i {
        font-size: 0.8125rem;
    }
    
    .add-to-cart-btn span {
        font-size: 0.75rem;
    }
    
    .stock-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
        top: 12px;
        right: 12px;
    }
    
    /* Cart sidebar full width on mobile */
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    /* Modal optimizations */
    .info-modal-content {
        padding: 24px;
        border-radius: 16px;
        max-width: 90%;
    }
    
    .info-modal-title {
        font-size: 1.25rem;
    }
    
    .social-link-modal {
        min-width: 100%;
    }
}

/* Mobile Landscape & Small Tablets (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .top-header {
        padding: 0.75rem 0;
    }
    
    .logo-img {
        width: 3.75rem;
        height: 3.75rem;
    }
    
    .store-name {
        font-size: 1.375rem;
    }
    
    .search-input {
        font-size: 16px;
        padding: 0.6875rem 2.625rem;
    }
    
    .products-section {
        padding: 2.25rem 0;
        margin-bottom: 1.25rem;
    }
    
    .product-body {
        padding: 1.125rem !important; /* Consistent padding */
    }
    
    .cart-sidebar {
        width: 23.75rem;
    }
    
    .announcement-banner {
        font-size: 0.875rem;
    }
}

/* Small Mobile (max-width: 580px) - Keep same padding as 600px */
@media (max-width: 580px) {
    .product-body {
        padding: 1.125rem !important; /* Same as 576px-767px range */
    }
}

/* Small Mobile (max-width: 575px) */
@media (max-width: 575px) {
    .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
        height: 100vh;
        height: 100dvh;
    }
    
    .cart-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .store-name {
        font-size: 1.25rem;
    }
    
    .search-input {
        font-size: 16px;
        padding: 0.625rem 2.5rem;
    }
    
    .cart-button {
        padding: 0.625rem 1rem;
    }
    
    .product-title {
        font-size: 0.8125rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
}

/* Mobile Portrait (max-width: 767px) - Compact and clean */
@media (max-width: 767px) {
    /* Compact header design */
    .store-name {
        display: none !important;
    }
    
    .logo-img {
        width: 56px !important;
        height: 56px !important;
    }
    
    .top-header {
        padding: 10px 0 !important;
    }
    
    /* Hide phone icon on mobile to save space */
    .contact-info-compact {
        display: none !important;
    }
    
    /* Compact contact and cart buttons */
    .contact-info-compact .contact-link {
        padding: 0 !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 10px !important;
        justify-content: center !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: var(--shadow-sm) !important;
    }
    
    .contact-info-compact .contact-link span {
        display: none !important;
    }
    
    .contact-info-compact .contact-link i {
        font-size: 1.125rem !important;
    }
    
    .cart-button {
        padding: 0 !important;
        border-radius: 50% !important;
        width: 44px !important;
        height: 44px !important;
        justify-content: center !important;
    }
    
    .cart-button span:not(.cart-badge) {
        display: none !important;
    }
    
    .cart-button i {
        font-size: 1.375rem !important;
    }
    
    .cart-badge {
        top: -2px !important;
        right: -2px !important;
        font-size: 0.625rem !important;
        padding: 2px 5px !important;
        min-width: 16px !important;
    }
    
    .header-actions {
        gap: 8px !important;
    }
    
    .category-menu-button {
        width: 44px !important;
        height: 44px !important;
    }
    
    /* Compact search */
    .search-input {
        padding: 10px 40px 10px 40px !important;
        font-size: 0.875rem !important;
        border-radius: 10px !important;
    }
    
    .search-icon {
        font-size: 1rem !important;
        left: 14px !important;
    }
    
    .search-clear {
        right: 14px !important;
    }
    
    /* Optimized spacing */
    .announcement-banner {
        font-size: 0.8125rem;
        padding: 10px;
    }
    
    .products-section {
        padding: 32px 0;
        margin-bottom: 20px;
    }
    
    /* Product grid optimization */
    #productsGrid > [class*="col-"] {
        padding: 8px;
    }
    
    .product-card {
        border-radius: 16px;
    }
    
    .product-body {
        padding: 1.125rem !important;
    }
    
    .product-title {
        font-size: 0.9375rem;
        min-height: 42px;
        margin-bottom: 6px;
    }
    
    .product-info {
        font-size: 0.8125rem;
        margin-bottom: 8px;
    }
    
    .product-price {
        font-size: 1.25rem;
        margin-bottom: 0;
    }
    
    .add-to-cart-btn {
        padding: 7px 14px;
        font-size: 0.75rem;
        border-radius: 7px;
    }
    
    .stock-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
        top: 12px;
        right: 12px;
    }
    
    /* Cart and modal optimizations */
    .cart-sidebar {
        width: 100%;
        right: -100%;
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for mobile browsers */
    }
    
    .cart-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
    }
    
    .cart-footer-step-1,
    .cart-footer-step-2 {
        padding: 1rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
    
    .info-modal-content {
        padding: 24px;
        border-radius: 16px;
        max-width: 90%;
    }
}

/* Extra Small Mobile (max-width: 374px) - Optimized */
@media (max-width: 374px) {
    .logo-img {
        width: 3rem;
        height: 3rem;
    }
    
    .search-input {
        font-size: 16px;
        padding: 0.5625rem 2.25rem;
    }
    
    .search-icon {
        font-size: 0.875rem;
        left: 0.75rem;
    }
    
    .cart-button,
    .info-button,
    .contact-link,
    .category-menu-button {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .header-actions {
        gap: 0.375rem;
    }
    
    .announcement-banner {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
    
    #productsGrid > [class*="col-"] {
        padding: 0.375rem;
    }
    
    .product-body {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 0.8125rem;
        min-height: 2.375rem;
    }
    
    .product-info {
        font-size: 0.75rem;
    }
    
    .product-price {
        font-size: 1.125rem;
    }
    
    .add-to-cart-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.6875rem;
        border-radius: 0.375rem;
    }
    
    .add-to-cart-btn i {
        font-size: 0.75rem;
    }
    
    .add-to-cart-btn span {
        font-size: 0.6875rem;
    }
    
    .stock-badge {
        font-size: 0.6875rem;
        padding: 0.3125rem 0.625rem;
    }
}

/* Large Desktop (min-width: 1600px) */
@media (min-width: 1600px) {
    .container-fluid {
        max-width: 1920px;
        margin: 0 auto;
    }
    
    .search-container {
        max-width: 100%; /* Full width in its column */
    }
}

/* Medium Desktop (1400px - 1599px) - 4 columns full width */
@media (min-width: 1400px) and (max-width: 1599px) {
    .container-fluid {
        max-width: 100%;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    .search-container {
        max-width: 100%; /* Full width in its column */
    }
    
    #productsGrid > [class*="col-"] {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Desktop (1201px - 1399px) - 4 columns full width */
@media (min-width: 1201px) and (max-width: 1399px) {
    .container-fluid {
        max-width: 100%;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    #productsGrid > [class*="col-"] {
        flex: 0 0 25%;
        max-width: 25%;
    }
}



/* iPad Pro Portrait (992px - 1200px) - Now uses mobile layout */
@media (min-width: 992px) and (max-width: 1200px) {
    .container-fluid {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    #productsGrid > [class*="col-"] {
        padding: 0.625rem;
    }
    
    .product-body {
        padding: 1.375rem;
    }
    
    .cart-sidebar {
        width: 27.5rem;
    }
}

/* Landscape Orientation Optimizations */
@media (max-height: 600px) and (orientation: landscape) and (max-width: 1200px) {
    .top-header {
        padding: 0.5rem 0;
    }
    
    .logo-img {
        width: 3rem;
        height: 3rem;
    }
    
    .search-input {
        padding: 0.5625rem 2.5rem;
    }
    
    .cart-button,
    .info-button,
    .contact-link,
    .category-menu-button {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .announcement-banner {
        padding: 0.5rem;
        font-size: 0.8125rem;
    }
    
    .products-section {
        padding: 1.5rem 0;
    }
    
    .cart-sidebar {
        width: 22.5rem;
    }
    
    .info-modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Sepet Mobil Optimizasyonları */
@media (max-width: 767px) {
    .cart-header {
        padding: 1rem;
    }
    
    .cart-title {
        font-size: 1.125rem;
    }
    
    .cart-title i {
        font-size: 1.25rem;
    }
    
    .cart-back,
    .cart-close {
        padding: 0.375rem;
        font-size: 1.125rem;
    }
    
    .cart-body {
        padding: 0.625rem;
    }
    
    .cart-step-2 {
        padding: 0.625rem;
        margin: -0.625rem;
        margin-bottom: 0;
        margin-left: 1px;
    }
    
    .cart-item {
        padding: 0.625rem;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .cart-item-image {
        width: 3rem;
        height: 3rem;
    }
    
    .cart-item-name {
        font-size: 0.8125rem;
        line-height: 1.25;
    }
    
    .cart-item-package {
        font-size: 0.6875rem;
        margin-bottom: 0.25rem;
    }
    
    .cart-item-price {
        font-size: 0.875rem;
    }
    
    .qty-btn {
        width: 1.625rem;
        height: 1.625rem;
        font-size: 0.8125rem;
    }
    
    .qty-value {
        min-width: 1.75rem;
        font-size: 0.8125rem;
    }
    
    .cart-item-remove {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 0.8125rem;
        width: 1.375rem;
        height: 1.375rem;
    }
    
    .cart-item-note-textarea {
        margin-top: 0.375rem;
        padding: 0.5rem;
        font-size: 0.75rem;
        min-height: 1.75rem;
    }
    
    .cart-footer-step-1,
    .cart-footer-step-2 {
        padding: 0.875rem;
    }
    
    .cart-total {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .total-row {
        font-size: 0.875rem;
    }
    
    .total-row strong {
        font-size: 1.25rem;
    }
    
    .btn-whatsapp,
    .btn-complete-order {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .auth-option-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .form-control {
        padding: 0.625rem 0.75rem 0.625rem 2.375rem;
        font-size: 0.8125rem;
    }
    
    .form-group i {
        left: 0.8125rem;
        font-size: 0.9375rem;
    }
    
    .form-group.textarea-group i {
        top: 0.8125rem;
    }
    
    .member-info-display {
        padding: 0.875rem;
    }
    
    .member-info-item {
        font-size: 0.75rem;
        padding: 0.375rem;
    }
}

/* Çok küçük ekranlar için ekstra optimizasyon */
@media (max-width: 360px) {
    .cart-item {
        padding: 0.5rem;
    }
    
    .cart-item-image {
        width: 2.75rem;
        height: 2.75rem;
    }
    
    .cart-item-name {
        font-size: 0.75rem;
    }
    
    .cart-item-package {
        font-size: 0.625rem;
    }
    
    .cart-item-price {
        font-size: 0.8125rem;
    }
    
    .qty-btn {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .qty-value {
        min-width: 1.5rem;
        font-size: 0.75rem;
    }
}

/* Analog Sayaç Tarzı Scroll Picker Stilleri */
.quantity-scroll-picker {
    position: relative;
    height: 200px;
    width: 100%;
    margin: 1rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 20%, #ffffff 80%, #f8fafc 100%);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 2px solid var(--border-color);
}

.picker-scroll-container {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 0;
    cursor: grab;
    -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
    overscroll-behavior: contain;
    scroll-behavior: smooth; /* Daha yumuşak scroll */
}

.picker-scroll-container:active {
    cursor: grabbing;
}

.picker-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.picker-item {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-medium);
    scroll-snap-align: center;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1); /* Daha hızlı ve yumuşak geçiş */
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
    will-change: transform, opacity; /* Performans optimizasyonu */
}

.picker-item:hover:not(.picker-item-empty) {
    color: var(--primary-color);
}

.picker-item-empty {
    height: 50px;
    pointer-events: none;
    cursor: default;
}

.picker-item-selected {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.75rem;
    text-shadow: 0 1px 2px rgba(30, 41, 59, 0.1); /* Hafif gölge */
}

.picker-indicator {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 50px;
    transform: translateY(-50%);
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    background: rgba(30, 41, 59, 0.03);
    pointer-events: none;
    z-index: 1;
    box-shadow: 0 0 10px rgba(30, 41, 59, 0.05); /* Hafif gölge */
}

.picker-overlay {
    position: absolute;
    left: 0;
    right: 0;
    height: 75px;
    pointer-events: none;
    z-index: 2;
}

.picker-overlay-top {
    top: 0;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(248, 250, 252, 0) 100%);
}

.picker-overlay-bottom {
    bottom: 0;
    background: linear-gradient(0deg, rgba(248, 250, 252, 0.98) 0%, rgba(248, 250, 252, 0) 100%);
}

/* Mobil için optimize edilmiş boyutlar */
@media (max-width: 767px) {
    .quantity-scroll-picker {
        height: 180px;
    }
    
    .picker-item {
        height: 45px;
        font-size: 1.375rem;
    }
    
    .picker-item-empty {
        height: 45px;
    }
    
    .picker-item-selected {
        font-size: 1.625rem;
    }
    
    .picker-indicator {
        height: 45px;
    }
}

@media (max-width: 480px) {
    .quantity-scroll-picker {
        height: 160px;
    }
    
    .picker-item {
        height: 40px;
        font-size: 1.25rem;
    }
    
    .picker-item-empty {
        height: 40px;
    }
    
    .picker-item-selected {
        font-size: 1.5rem;
    }
    
    .picker-indicator {
        height: 40px;
    }
}

/* Quantity input group - Picker ile uyumlu stil */
.quantity-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.quantity-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--primary-color);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.quantity-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.quantity-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.quantity-input {
    width: 100px;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 16px; /* iPhone zoom prevention - minimum 16px */
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    background: white;
    color: var(--text-dark);
    transition: all 0.2s ease;
    touch-action: manipulation; /* Prevent double-tap zoom */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on iOS */
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1);
}

/* Mobil için optimize edilmiş boyutlar */
@media (max-width: 767px) {
    .quantity-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.125rem;
    }
    
    .quantity-input {
        width: 90px;
        height: 2.5rem;
        font-size: 16px; /* iPhone zoom prevention - minimum 16px */
    }
}

@media (max-width: 480px) {
    .quantity-btn {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1rem;
    }
    
    .quantity-input {
        width: 80px;
        height: 2.25rem;
        font-size: 16px; /* iPhone zoom prevention - minimum 16px */
    }
}

/* ============================================
   CUSTOMER PANEL STYLES
   ============================================ */

.member-panel-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    height: auto;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.member-panel-button:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.member-panel-button i {
    font-size: 1.125rem;
}

.panel-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e5e7eb;
    flex-wrap: wrap;
}

.panel-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.panel-tab:hover {
    color: #667eea;
    background: #f9fafb;
}

.panel-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.panel-tab i {
    font-size: 16px;
}

.panel-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.panel-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Order cards */
.panel-content details summary {
    padding: 8px 0;
}

.panel-content details[open] summary i {
    transform: rotate(180deg);
}

.panel-content details summary i {
    transition: transform 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .member-panel-button span {
        display: none !important;
    }
    
    .panel-tabs {
        gap: 5px;
    }
    
    .panel-tab {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .panel-tab span {
        display: none;
    }
    
    .panel-tab i {
        font-size: 18px;
    }
}

/* ============================================
   iOS ZOOM PREVENTION - ALL INPUTS
   ============================================ */

/* Prevent iOS zoom on all input fields */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
textarea,
select {
    font-size: 16px !important; /* iPhone zoom prevention - minimum 16px */
    touch-action: manipulation; /* Prevent double-tap zoom */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on iOS */
}

/* Prevent zoom on buttons */
button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent zoom on the entire page */
body {
    touch-action: pan-y pan-x;
    -webkit-text-size-adjust: 100%;
}
