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

:root {
    --primary: #2563eb;
    --primary-light: #dbeafe;
    --primary-dark: #1d4ed8;
    
    --bg: #f7f5f3;
    --bg-card: #ffffff;
    
    --text-primary: #2d2d2d;
    --text-secondary: #6b6b6b;
    
    --border: rgba(160, 137, 148, 0.1);
    --border-hover: rgba(160, 137, 148, 0.25);
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    --transition: 0.3s ease;
}

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', 'Heiti SC', 'Yuanti SC', 'STYuanti', 'SimHei', 'SimSun', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background-color: var(--primary);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

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

.logo i {
    font-size: 24px;
    color: #fff;
}

.logo h1 {
    font-size: 18px;
    color: #fff;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    border: none;
    background: none;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    padding: 5px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

.nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
}

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

.search-cart {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.92);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    writing-mode: horizontal-tb;
    flex-shrink: 0;
}

.shop-home-link:hover {
    background-color: #fff;
    color: var(--primary-dark);
    border-color: rgba(255, 255, 255, 0.7);
}

.search-box {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    padding: 4px 12px;
}

.search-box input {
    border: none;
    background: none;
    padding: 6px;
    outline: none;
    width: 150px;
    font-size: 14px;
}

.search-box button {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--primary);
    font-size: 14px;
}

.cart-btn {
    position: relative;
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
    color: #fff;
    padding: 5px;
}

.cart-btn:hover {
    opacity: 0.8;
}

.lang-switcher {
    display: flex;
    gap: 4px;
}

.lang-btn {
    padding: 4px 10px;
    border: 1px solid var(--primary-light);
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    transition: all 0.3s;
}

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

.lang-btn.active {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ef4444;
    color: #fff;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(160, 137, 148, 0.16), transparent 32%),
        radial-gradient(circle at right center, rgba(196, 178, 188, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f8f5f3 100%);
    color: var(--text-primary);
    padding: 88px 0 76px;
    text-align: center;
    border-bottom: 1px solid rgba(160, 137, 148, 0.12);
}

.hero-content {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 8px 0;
}

.hero-content h2 {
    font-size: clamp(30px, 4.6vw, 52px);
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-wrap: balance;
}

.hero-content p {
    font-size: clamp(16px, 2.2vw, 20px);
    margin-bottom: 30px;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.7;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

.hero .btn-primary {
    background-color: var(--bg-card);
    color: var(--primary-dark);
    border: 1px solid rgba(160, 137, 148, 0.25);
    box-shadow: 0 10px 24px rgba(160, 137, 148, 0.14);
}

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

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

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

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

.btn-secondary:hover {
    background-color: var(--primary);
    color: #fff;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}

.products {
    padding: 40px 0;
}

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

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.category-btn {
    padding: 8px 20px;
    border: 1px solid var(--border);
    background-color: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

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

.category-btn.active {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.sold-count {
    display: block;
    font-size: 12px;
    font-weight: 400;
    margin-top: 4px;
    opacity: 0.8;
}

.filters {
    display: flex;
    gap: 10px;
}

.filters select {
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #fff;
    outline: none;
    cursor: pointer;
    font-size: 14px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.category-section {
    margin-bottom: 20px;
}

.category-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-light);
    display: inline-block;
}

.product-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

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

.product-image-container {
    position: relative;
    width: 100%;
    height: 240px;
    background-color: #f8f9fa;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-emoji {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--primary-light);
}

.image-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 10px;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.product-description {
    color: #666;
    font-size: 13px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.product-category {
    display: inline-block;
    background-color: #FFFAFA;
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 11px;
    margin-bottom: 12px;
    border: 1px solid var(--primary-light);
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    background-color: var(--primary-dark);
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 30px;
    color: var(--primary);
}

.about {
    padding: 40px 0;
    background-color: #fff;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.about-image {
    flex-shrink: 0;
}

.about-image i {
    font-size: 80px;
    color: var(--primary);
}

.about-text h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.about-text p {
    margin-bottom: 12px;
    color: #666;
    font-size: 14px;
}

.about-highlights {
    list-style: none;
    margin: 8px 0 14px;
    padding: 0;
}

.about-highlights li {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    color: #333;
    font-size: 14px;
}

.contact-info {
    margin-top: 15px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 14px;
}

.contact-info i {
    color: var(--primary);
}

.whatsapp-link {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.whatsapp-link:hover {
    color: #128C7E;
    text-decoration: underline;
}

.email-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.email-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.footer {
    background-color: var(--primary);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: var(--radius-lg);
    width: 95%;
    max-width: 700px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 60px rgba(236, 72, 153, 0.3);
}

.cart-modal {
    max-width: 95%;
}

.shopping-list-modal {
    max-width: 95%;
}

.product-detail-modal {
    max-width: 95%;
    max-height: 95vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 100;
}

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

.modal-body {
    display: flex;
    gap: 35px;
}

.product-gallery {
    flex-shrink: 0;
    width: 400px;
}

.gallery-main {
    position: relative;
    width: 100%;
    height: 380px;
    background-color: #f8f9fa;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-emoji {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--primary-light);
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

.gallery-prev:hover,
.gallery-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: #2563eb;
}

.gallery-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s, border-color 0.3s;
    border: 2px solid transparent;
}

.thumbnail.active {
    opacity: 1;
    border-color: #2563eb;
}

.modal-details {
    flex: 1;
}

.modal-details h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.modal-details p {
    color: #666;
    margin-bottom: 8px;
    font-size: 14px;
}

.modal-price {
    font-size: 28px;
    font-weight: 700;
    color: #ef4444;
    margin: 15px 0;
}

.product-color-section {
    margin-bottom: 16px;
}

.product-color-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.product-color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-option-btn {
    border: 1px solid var(--primary-light);
    background: #fff;
    color: var(--text-primary);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

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

.color-option-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.cart-items {
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #FFE4E1;
}

.cart-item-image {
    width: 50px;
    height: 50px;
    background-color: #FFFAFA;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.cart-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-placeholder {
    font-size: 24px;
    color: var(--primary-light);
}

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

.cart-item-name {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.cart-item-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

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

.quantity-btn {
    width: 26px;
    height: 26px;
    border: 1px solid var(--primary-light);
    background-color: #FFFAFA;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    color: var(--primary);
}

.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--primary-light);
}

.cart-total {
    font-size: 18px;
    font-weight: 600;
}

.total-price {
    color: var(--primary);
    font-size: 22px;
}

.empty-cart {
    text-align: center;
    padding: 30px;
    color: var(--primary);
}

.remove-btn {
    border: none;
    background: none;
    color: var(--primary);
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    flex-shrink: 0;
}

.remove-btn:hover {
    color: #dc2626;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    z-index: 300;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.cart-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.shopping-list-modal {
    max-width: 95%;
}

.shopping-list-content {
    background-color: #FFFAFA;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 2px solid var(--primary-light);
}

.shopping-list-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.shopping-list-header h4 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 4px;
}

.shopping-list-header .list-date {
    color: #666;
    font-size: 13px;
}

.shopping-list-items {
    margin-bottom: 15px;
}

.shopping-list-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--primary-light);
}

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

.shopping-list-item-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.list-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.list-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-light);
    background-color: #fff;
    border-radius: 6px;
}

.shopping-list-item-info {
    flex: 1;
}

.shopping-list-item-name {
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 14px;
}

.shopping-list-item-price {
    display: flex;
    align-items: center;
    gap: 15px;
}

.shopping-list-item-price .quantity {
    color: #666;
    font-size: 13px;
}

.shopping-list-item-price .price {
    font-weight: 600;
    color: #333;
}

.shopping-list-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 2px solid var(--primary);
    font-size: 16px;
    font-weight: 600;
}

.shopping-list-total .total-label {
    color: #333;
}

.shopping-list-total .total-amount {
    color: #ef4444;
    font-size: 22px;
}

.shopping-list-actions {
    display: flex;
    justify-content: flex-end;
}

.address-section {
    margin-top: 20px;
    padding: 20px;
    background-color: #FFFAFA;
    border-radius: 10px;
    border: 2px solid var(--primary-light);
}

.address-section h4 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

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

.form-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-row.full-width {
    grid-column: 1 / -1;
}

.form-row label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.form-row input {
    padding: 10px 12px;
    border: 1px solid var(--primary-light);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    background-color: #fff;
}

.form-row input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 5px rgba(255, 123, 172, 0.2);
}

.payment-section {
    margin-top: 20px;
    padding: 20px;
    background-color: #FFFAFA;
    border-radius: 10px;
    border: 2px solid var(--primary-light);
}

.payment-section h4 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.payment-hint {
    text-align: center;
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
}

#paypal-button-container {
    max-width: 400px;
    margin: 0 auto;
}

.payment-status {
    text-align: center;
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.payment-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.payment-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }

    .header {
        padding-top: env(safe-area-inset-top);
    }

    .header .container {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 12px;
    }

    .logo {
        flex: 1 1 auto;
        min-width: 0;
    }

    .logo h1 {
        font-size: 16px;
    }

    .logo i {
        font-size: 20px;
    }

    .mobile-menu-btn {
        display: block;
        order: 2;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        z-index: 99;
        border-radius: 0 0 20px 20px;
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        gap: 8px;
        text-align: left;
    }

    .nav a {
        font-size: 15px;
        padding: 10px 14px;
        display: block;
        border-radius: 12px;
        color: var(--text-primary);
        transition: background-color 0.2s;
    }

    .nav a:hover {
        background-color: rgba(139, 92, 246, 0.08);
        color: var(--primary);
    }

    .search-cart {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: wrap;
    }

    .search-box {
        flex: 1;
        min-width: 0;
        max-width: none;
    }

    .search-box input {
        width: 100%;
        padding: 10px 14px;
        font-size: 14px;
    }

    .shop-home-link {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 12px;
    }

    .hero {
        padding: 24px 0 20px;
    }

    .hero-content h2 {
        font-size: 26px;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hero .btn-primary {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 16px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .category-buttons {
        width: 100%;
        gap: 6px;
    }

    .category-btn {
        flex: 1;
        min-width: 70px;
        text-align: center;
        font-size: 12px;
        padding: 8px 8px;
        border-radius: 12px;
    }

    .filters {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .filters select {
        flex: 1;
        min-width: 110px;
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 12px;
    }

    .product-grid-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    
    .category-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .product-image-container {
        height: 140px;
    }

    .product-card {
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        overflow: hidden;
    }

    .product-info {
        padding: 10px;
    }

    .product-name {
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 4px;
    }

    .product-description {
        font-size: 11px;
        -webkit-line-clamp: 1;
        margin-bottom: 6px;
    }

    .product-price {
        font-size: 18px;
        margin-bottom: 8px;
        font-weight: 700;
    }

    .add-to-cart-btn {
        padding: 9px;
        font-size: 12px;
        border-radius: 10px;
        font-weight: 600;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .about-image i {
        font-size: 60px;
    }

    .modal-body {
        flex-direction: column;
        gap: 20px;
    }

    .product-gallery {
        width: 100%;
        margin-bottom: 10px;
    }

    .gallery-main {
        height: 300px;
        border-radius: 16px;
    }

    .gallery-thumbnails {
        justify-content: flex-start;
        padding: 5px 0;
    }

    .thumbnail {
        width: 50px;
        height: 50px;
        border-radius: 8px;
    }

    .modal-details {
        text-align: center;
    }

    .modal-details h3 {
        font-size: 20px;
    }

    .modal-price {
        font-size: 26px;
        margin: 12px 0;
    }

    .modal-actions {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }

    .modal-actions .btn {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }

    .cart-item {
        gap: 12px;
        padding: 12px;
        border-bottom: 1px solid #FFE4E1;
        background-color: #FFFAFA;
        border-radius: 10px;
        margin-bottom: 8px;
    }

    .cart-item-image {
        width: 55px;
        height: 55px;
        border-radius: 10px;
    }

    .cart-item-name {
        font-size: 14px;
        font-weight: 600;
    }

    .cart-item-price {
        font-size: 15px;
    }

    .quantity-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .cart-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        padding: 15px;
        background-color: #fff;
        border-radius: 12px;
    }

    .cart-total {
        font-size: 18px;
        text-align: center;
    }

    .cart-actions {
        flex-direction: column;
        gap: 10px;
    }

    .cart-actions .btn {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }

    .shopping-list-item {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        padding: 12px 0;
    }

    .shopping-list-item-image {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
    
    .shopping-list-header h4 {
        font-size: 16px;
    }
    
    .shopping-list-total {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
    }
    
    .shopping-list-actions {
        justify-content: center;
    }
    
    .shopping-list-actions .btn {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 15px;
    }
    
    .shopping-list-content {
        padding: 15px;
    }

    .address-section {
        padding: 15px;
    }

    .address-form {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .form-row input {
        padding: 12px;
        font-size: 15px;
    }

    .payment-section {
        padding: 20px 15px;
    }

    .payment-hint {
        font-size: 12px;
        margin-bottom: 12px;
    }

    #paypal-button-container {
        max-width: 100%;
    }
    
    .image-zoom-close {
        font-size: 28px;
        top: 15px;
        right: 15px;
    }
    
    .image-zoom-prev,
    .image-zoom-next {
        padding: 10px;
        font-size: 16px;
    }
    
    .image-zoom-prev {
        left: 10px;
    }
    
    .image-zoom-next {
        right: 10px;
    }
}

#imageZoomModal {
    z-index: 400;
    background-color: rgba(0, 0, 0, 0.9);
}

.image-zoom-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

#imageZoomContent {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    cursor: zoom-out;
    transition: transform 0.3s ease;
}

.image-zoom-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.image-zoom-close:hover {
    color: var(--primary);
}

.image-zoom-prev,
.image-zoom-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: background-color 0.3s;
}

.image-zoom-prev:hover,
.image-zoom-next:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.image-zoom-prev {
    left: 20px;
}

.image-zoom-next {
    right: 20px;
}

.gallery-image {
    cursor: zoom-in;
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .header .container {
        padding: 6px 10px;
        gap: 6px;
    }

    .logo h1 {
        font-size: 15px;
    }

    .logo i {
        font-size: 18px;
    }

    .search-box input {
        padding: 8px 12px;
        font-size: 13px;
    }

    .hero {
        padding: 20px 0 16px;
    }

    .hero-content h2 {
        font-size: 24px;
        line-height: 1.15;
    }

    .hero-content p {
        font-size: 13px;
        max-width: 100%;
        margin-bottom: 16px;
    }

    .hero .btn-primary {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 14px;
    }

    .section-title {
        font-size: 20px;
    }

    .products {
        padding: 20px 0;
    }

    .section-header {
        gap: 10px;
    }

    .category-btn {
        font-size: 11px;
        padding: 6px 6px;
    }

    .product-grid-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .product-image-container {
        height: 120px;
    }

    .product-card {
        border-radius: 14px;
    }

    .product-info {
        padding: 8px;
    }

    .product-name {
        font-size: 12px;
        margin-bottom: 3px;
    }

    .product-description {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .product-price {
        font-size: 17px;
        margin-bottom: 6px;
    }

    .add-to-cart-btn {
        padding: 7px;
        font-size: 11px;
        border-radius: 8px;
    }

    .modal-content {
        margin: 1% auto;
        padding: 12px;
        width: 96%;
        max-height: 90vh;
        border-radius: 20px;
    }

    .modal-body {
        gap: 16px;
    }

    .gallery-main {
        height: 200px;
        border-radius: 16px;
    }

    .gallery-thumbnails {
        padding: 4px 0;
        gap: 6px;
    }

    .thumbnail {
        width: 45px;
        height: 45px;
        border-radius: 8px;
    }

    .modal-details h3 {
        font-size: 18px;
    }

    .modal-price {
        font-size: 24px;
        margin: 10px 0;
    }

    .modal-actions {
        gap: 8px;
    }

    .modal-actions .btn {
        padding: 12px;
        font-size: 14px;
        border-radius: 12px;
    }

    .cart-item {
        gap: 10px;
        padding: 10px;
        margin-bottom: 6px;
        border-radius: 12px;
    }

    .cart-item-image {
        width: 50px;
        height: 50px;
        border-radius: 10px;
    }

    .cart-item-name {
        font-size: 13px;
    }

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

    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 15px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 12px;
    }

    .shop-home-link {
        padding: 6px 10px;
        font-size: 11px;
        border-radius: 10px;
    }
}