:root {
    --ios-bg: #f5f5f7;
    --ios-blue: #0071e3;
    --ios-text: #1d1d1f;
    --ios-secondary: #86868b;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-xl: 44px;
    --whatsapp-green: #25D366;
    
    /* IOS Fluid Animation Tokens */
    --fluid-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --fluid-active: cubic-bezier(0.3, 0, 0, 1);
    --transition-fast: 0.2s var(--fluid-ease);
    --transition-medium: 0.4s var(--fluid-ease);
    --transition-slow: 0.6s var(--fluid-ease);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f5f5f7;
    margin: 0;
    color: var(--ios-text);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: -0.01em;
    animation: iosFadeIn 1s var(--fluid-ease);
}

@keyframes iosFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes iosSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Fluid Hover & Active States */
button, .btn, .product-item, .thumb, .chip-item, a {
    transition: all var(--transition-medium);
}

button:active, .btn:active, .product-item:active, .thumb:active {
    transform: scale(0.96);
    filter: brightness(0.95);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
}

.container {
    max-width: 1100px; /* Ultra-tight container */
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    height: 52px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-content {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.012em;
    color: var(--ios-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo svg {
    width: 20px;
    height: 20px;
}

.nav-links {
    display: flex;
    gap: 24px;
}



.nav-links a {
    font-size: 12px;
    color: var(--ios-text);
    text-decoration: none;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
}

.header-wa-btn {
    display: none;
    /* Hidden by default on desktop */
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.floating-wa-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s;
    animation: pulse-wa 2s infinite;
}

.floating-wa-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

@keyframes pulse-wa {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.header-wa-btn:hover {
    transform: scale(1.1) rotate(5deg);
    background: #20BA56;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

/* Main Layout */
main {
    padding-top: 65px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 5px 0 10px; 
}

.hero-label {
    font-size: 17px;
    font-weight: 600;
    color: var(--ios-blue);
    margin-bottom: 12px;
    display: block;
}

.hero-title {
    font-size: 48px; 
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.015em;
    margin: 0 0 8px;
    color: #000;
}

.hero-subtitle {
    font-size: 28px;
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: .007em;
    color: var(--ios-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px; 
    margin-bottom: 20px; 
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
}

.product-item {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    transition: all var(--transition-medium);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: iosSlideUp 0.8s var(--fluid-ease) backwards;
}

.products-grid .product-item:nth-child(1) { animation-delay: 0.1s; }
.products-grid .product-item:nth-child(2) { animation-delay: 0.15s; }
.products-grid .product-item:nth-child(3) { animation-delay: 0.2s; }
.products-grid .product-item:nth-child(4) { animation-delay: 0.25s; }
.products-grid .product-item:nth-child(5) { animation-delay: 0.3s; }
.products-grid .product-item:nth-child(n+6) { animation-delay: 0.4s; }

.product-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.product-item .image-wrapper {
    flex: 1;
    width: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px; /* Reduced from 20px */
    overflow: hidden;
    min-height: 140px; /* Reduced from 180px */
}

.product-item img {
    max-width: 100%;
    max-height: 140px; /* Reduced from 200px */
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-item:hover img {
    transform: scale(1.08);
}

.product-overlay {
    padding: 10px 12px; /* Reduced from 16px */
    background: #fff;
    position: relative;
}

.product-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--ios-blue);
    margin-bottom: 2px; /* Reduced from 8px */
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 13px; /* Slightly smaller */
    font-weight: 700;
    margin: 0 0 4px; /* Reduced from 6px */
    letter-spacing: -0.01em;
    color: #000;
    line-height: 1.2;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.product-card-price {
    font-size: 15px; /* Reduced from 17px */
    font-weight: 600;
    color: #1d1d1f;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: var(--ios-blue);
    color: #fff;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}


.btn-more:hover {
    background: #0077ed;
    transform: scale(1.05);
}

/* Product Page Specific */
main.container {
    padding-top: 80px;
}

.product-page-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 25px; /* Reduced from 40px */
    margin-top: 10px;
    align-items: start; /* Changed from center to prevent weird vertical gaps */
}

.gallery-container {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.main-image-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    min-height: 400px;
}

.main-image-wrapper img {
    max-width: 100%;
    max-height: 400px;
    height: auto;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumbnail-grid {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.thumb {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    border: 2px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    overflow: hidden;
    background: #f9f9f9;
    transition: all 0.3s ease;
    padding: 5px;
}

.thumb:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.1);
}

.thumb.active {
    border-color: var(--ios-blue);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 113, 227, 0.15);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.details-panel {
    display: flex;
    flex-direction: column;
}

.category-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ios-blue);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
    display: block;
}

.p-title {
    font-size: 26px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 8px; /* Reduced */
}

.p-price {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px; /* Reduced from 30px */
}

.p-desc {
    font-size: 14px;
    line-height: 1.4;
    color: var(--ios-secondary);
    margin-bottom: 15px; /* Reduced */
}

.selection-group {
    margin-bottom: 16px;
}

.selection-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #86868b;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chip-item {
    padding: 10px 18px;
    border: 1px solid #f2f2f7;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.5);
}

.chip-item:hover {
    border-color: #86868b;
}

.chip-item.active {
    border-color: var(--ios-blue);
    border-width: 2px;
    padding: 15px 23px;
    background: #fff;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Reduced from 16px */
}

.btn-buy {
    width: 100%;
    padding: 18px;
    background: var(--ios-blue);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 17px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-buy:hover {
    background: #0077ed;
    transform: scale(1.01);
}

.btn-secondary {
    width: 100%;
    padding: 18px;
    background: transparent;
    border: 1px solid #f2f2f7;
    border-radius: var(--radius-sm);
    font-size: 17px;
    font-weight: 600;
    color: var(--ios-text);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-whatsapp {
    background: #25D366 !important;
    color: #fff !important;
    border: none !important;
}

.btn-whatsapp:hover {
    background: #20BA56 !important;
    transform: scale(1.01);
}

/* Floating Cart Sidebar Redesign */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.4);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 30px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
}

.cart-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #1d1d1f, #434345);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cart-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ios-text);
    transition: all 0.2s;
}

.cart-close:hover {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.cart-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px;
    background: #fff;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.cart-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.04);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: contain;
    background: #fdfdfd;
    padding: 3px;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 4px;
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.cart-item-variant-badge {
    display: inline-flex;
    padding: 2px 6px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--ios-blue);
    font-size: 9px;
    font-weight: 800;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    vertical-align: middle;
    white-space: nowrap;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--ios-blue);
}

.remove-item-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s;
    padding: 5px;
}

.remove-item-btn:hover {
    color: #ff3b30;
}

.cart-footer {
    padding: 30px 24px;
    background: rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.footer-trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(52, 199, 89, 0.1);
    border-radius: 12px;
    color: #248a3d;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.cart-summary {
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #86868b;
}

.summary-row.total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
    font-size: 20px;
    font-weight: 800;
}

.btn-checkout {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #0071e3, #0077ed);
    color: #fff;
    border: none;
    border-radius: 18px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(0, 113, 227, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-checkout:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 113, 227, 0.4);
}

.btn-checkout:active {
    transform: translateY(-1px);
}

.btn-checkout::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
    pointer-events: none;
}

.btn-checkout:hover::after {
    left: 100%;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cart-overlay.open {
    display: block;
    opacity: 1;
}

/* Footer Rendering */
footer {
    background: #fbfbfd;
    color: var(--ios-secondary);
    padding: 10px 0 40px;
    font-size: 15px;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f2f2f7;
    padding-bottom: 20px;
}

.footer-col h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ios-text);
    margin-bottom: 18px;
}

.footer-col a {
    display: block;
    color: var(--ios-secondary);
    text-decoration: none;
    margin-bottom: 12px;
}

.footer-col a:hover {
    text-decoration: underline;
    color: var(--ios-text);
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Floating WA - REMOVED */

.floating-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--ios-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 9998;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    font-size: 24px;
}

.floating-cart-btn:hover {
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b30;
    color: white;
    font-size: 12px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

@media (max-width: 900px) {
    .product-page-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 40px;
    }
}

/* Ratings & Reviews */
.rating-stars {
    display: inline-flex;
    gap: 2px;
    color: #ff9f0a;
    font-size: 14px;
}

.rating-stars .fa-star-o {
    color: #f2f2f7;
}

.review-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #f2f2f7;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.review-item {
    background: white;
    padding: 24px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.review-user {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}

.review-date {
    font-size: 12px;
    color: #86868b;
    margin-bottom: 12px;
}

.review-text {
    font-size: 15px;
    line-height: 1.6;
}

.rate-now-box {
    background: #fbfbfd;
    border-radius: 30px;
    padding: 40px;
    text-align: center;
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.star-rating-input input {
    display: none !important;
}

.star-rating-input label {
    font-size: 32px;
    color: #f2f2f7;
    cursor: pointer;
    transition: color 0.1s;
}

.star-rating-input label:hover,
.star-rating-input label:hover~label,
.star-rating-input input:checked~label {
    color: #ff9f0a;
}

.review-input {
    width: 100%;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid #f2f2f7;
    background: white;
    font-size: 15px;
    font-family: inherit;
    margin-bottom: 20px;
    box-sizing: border-box;
    resize: none;
}

/* Similar Products */
.similar-section {
    margin-top: 40px;
    padding-bottom: 40px;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .similar-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .similar-grid { 
        display: flex;
        overflow-x: auto;
        padding-bottom: 20px;
        margin-right: -22px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        gap: 15px;
    }
    .similar-grid::-webkit-scrollbar { display: none; }
    .similar-item { 
        min-width: 160px; 
        scroll-snap-align: start;
    }
}

.similar-item {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.similar-item:hover {
    transform: translateY(-8px);
}

.similar-img-wrapper {
    background: #fff;
    border-radius: 22px;
    padding: 20px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s;
}

.similar-item:hover .similar-img-wrapper {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 113, 227, 0.1);
}

.similar-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

.similar-item:hover img {
    transform: scale(1.1);
}

.similar-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #1d1d1f;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-price {
    font-size: 13px;
    color: var(--ios-blue);
    font-weight: 700;
}

.nav-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--ios-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 16px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links a:hover {
    color: var(--ios-blue);
    transform: translateY(-2px);
}

.nav-links svg {
    opacity: 0.85;
    color: #434345;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 2px;
}

.nav-links a:hover svg {
    color: var(--ios-blue);
    transform: scale(1.1);
    opacity: 1;
}

.logo-text {
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    font-size: 18px; /* Reduced from 20px */
    letter-spacing: -0.8px;
    margin-left: 10px;
    background: linear-gradient(135deg, #1d1d1f 0%, #434343 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #ff3b30;
    color: white;
    font-size: 9px;
    font-weight: 900;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(255, 59, 48, 0.3);
}

.admin-entry-link {
    opacity: 0.2;
    margin-left: 15px;
}

.admin-entry-link svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 900px) {

    /* Product Page */
    .product-page-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Header Container */
    .header-content {
        padding: 0 10px;
    }

    .logo-text {
        font-size: 18px;
        display: inline-block;
    }

    .nav-links {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        margin: 0;
        z-index: 10001;
        gap: 0;
    }

    .nav-links span {
        display: block;
        font-size: 10px;
        margin-top: 4px;
        font-weight: 500;
    }

    .nav-links a {
        padding: 5px;
        flex-direction: column;
        flex: 1;
        align-items: center;
        justify-content: center;
    }

    /* Main Container & Hero Section */
    main {
        padding-top: 60px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 16px;
        padding: 0 15px;
    }

    .hero-section {
        padding: 30px 0 40px;
    }

    /* Footer */
    footer {
        padding-top: 5px;
        padding-bottom: 80px;
    }

    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        text-align: left;
    }

    .footer-legal {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-col h3 {
        font-size: 18px;
    }

    /* Floating Buttons */
    .header-wa-btn {
        display: flex !important;
        width: 32px;
        height: 32px;
        font-size: 16px;
        margin-right: 0;
    }

    .floating-wa-btn {
        display: none !important;
    }

    .floating-cart-btn {
        display: none !important;
    }

    /* Auth & Account Cards */
    .auth-container,
    .account-card,
    .order-card {
        padding: 20px !important;
        margin: 85px 10px 20px !important;
    }

    .main-image-wrapper {
        min-height: 250px;
    }

    .p-title {
        font-size: 28px;
    }

    .product-item {
        min-height: auto;
    }

    .product-item .image-wrapper {
        padding: 15px;
        min-height: 160px;
    }

    .product-item img {
        max-height: 140px;
        border-radius: 16px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
        /* shadow behind image */
    }

    .product-overlay {
        padding: 12px;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    .product-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .product-card-price {
        font-size: 15px;
    }

    .btn-more {
        width: 100%;
        padding: 8px;
        font-size: 13px;
        text-align: center;
    }
}

/* New Product Page Features */
.thumb.video-thumb:hover i {
    transform: scale(1.2);
    color: #ff3b30;
}

.thumb.video-thumb i {
    transition: all 0.3s ease;
}

#buy-qty::-webkit-inner-spin-button,
#buy-qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.p-price-container strong {
    color: #34c759;
}

.desktop-only-flex {
    display: flex !important;
    width: 100%;
}

.mobile-only-flex {
    display: none !important;
    width: 100%;
}

.header-search-container {
    flex: 0 0 140px;
    margin: 0 10px;
    transition: flex 0.4s var(--fluid-ease);
}

.header-search-input {
    width: 100%;
    padding: 6px 10px 6px 30px !important;
    border-radius: 10px;
    border: none;
    background: rgba(0,0,0,0.05);
    font-size: 13px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s;
    height: 32px;
}

.header-search-input:focus {
    background: #fff;
    box-shadow: 0 0 0 2px var(--ios-blue);
}

.header-search-container:focus-within {
    flex: 0 0 200px;
}

.search-cancel-btn {
    display: none;
    background: none;
    border: none;
    color: var(--ios-blue);
    font-weight: 500;
    font-size: 15px;
    padding: 0 0 0 10px;
    cursor: pointer;
    white-space: nowrap;
}

.search-icon-main {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #86868b;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 18px !important;
        font-weight: 700 !important;
        display: block !important;
        white-space: nowrap;
        max-width: none !important;
    }
    
    .search-icon-main {
        font-size: 19px;
    }

    .header-search-container {
        flex: 0 0 36px !important;
        width: 36px !important;
        margin: 0 15px 0 auto !important;
        background: none !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .header-search-input {
        background: none !important;
        color: transparent !important;
        padding-left: 36px !important;
        cursor: pointer;
        width: 100%;
        border-radius: 10px;
        height: 36px !important;
    }

    .header-search-input::placeholder {
        color: transparent !important;
    }

    header.search-active .logo,
    header.search-active .header-right-actions {
        display: none !important;
    }

    header.search-active .header-search-container {
        flex: 1 !important;
        width: 100% !important;
        max-width: none !important;
        background: #fff !important;
        padding: 0 10px;
    }

    header.search-active .header-search-input {
        color: #000 !important;
        padding-left: 35px !important;
        background: #f2f2f7 !important;
        border: 1px solid #e5e5e7 !important;
    }

    header.search-active .header-search-input::placeholder {
        color: #86868b !important;
    }

    header.search-active .search-cancel-btn {
        display: block;
    }

    /* Ensure bottom nav stays visible */
    .nav-links {
        display: flex !important;
    }

    header.search-active .search-icon-main {
        font-size: 16px;
        left: 20px;
    }

    .logo {
        flex-shrink: 1;
        min-width: 0;
    }

    .header-right-actions {
        gap: 8px !important;
        flex-shrink: 0;
    }

    .desktop-only-flex, .desktop-only {
        display: none !important;
    }

    .mobile-only-flex {
        display: flex !important;
        width: 100%;
    }
}
