/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: 'Noto Sans Arabic', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    /* Additional copy protection */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

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

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    color: #764ba2;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    color: #764ba2;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
}

.cart-count {
    position: absolute;
    top: -5px;
    left: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Main Content */
.main {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Search and Filter Section */
.search-filter-section {
    margin-bottom: 3rem;
}

.search-container {
    display: flex;
    max-width: 500px;
    margin: 0 auto 2rem;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-family: 'Noto Sans Arabic', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    text-align: right;
    /* Allow text selection in input fields */
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.search-input:focus {
    border-color: #764ba2;
    box-shadow: 0 0 20px rgba(118, 75, 162, 0.3);
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    position: absolute;
    left: 5px;
    top: 5px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4);
}

/* Categories */
.categories-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.categories-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 800px;
}

.category-tab {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans Arabic', sans-serif;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.category-tab.active {
    background: rgba(255, 255, 255, 0.95);
    color: #764ba2;
    border-color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.section-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
}

/* Simplified Product Cards */
.product-card-simple {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.product-card-simple:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.product-header-simple {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.product-title-simple {
    color: #764ba2;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    margin-left: 1rem;
}

.product-category-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.4rem 0.6rem;
    border-radius: 20px;
    font-size: 1rem;
    min-width: 35px;
    text-align: center;
}

.product-description {
    margin-bottom: 1.5rem;
}

.product-description p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.product-footer-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-range {
    color: #27ae60;
    font-weight: 600;
    font-size: 1.1rem;
}

.view-details-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #764ba2;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.product-card-simple:hover .view-details-btn {
    color: #667eea;
    transform: translateX(-3px);
}

.featured-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    z-index: 10;
}

/* Product Detail Page Styles */
.product-detail-main {
    padding: 1rem 0 2rem;
}

.back-navigation {
    margin-bottom: 2rem;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans Arabic', sans-serif;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #764ba2;
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.product-detail-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 800px;
    margin: 0 auto;
}

.product-header {
    text-align: center;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1.5rem;
}

.product-detail-title {
    color: #764ba2;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 500;
}

.detail-section-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.section-icon {
    font-size: 1.2rem;
}

.product-benefits-detail {
    margin-bottom: 2rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    position: relative;
    padding: 0.8rem 2rem 0.8rem 2rem;
    color: #555;
    line-height: 1.6;
    border-bottom: 1px solid #f5f5f5;
}

.benefits-list li:before {
    content: "✓";
    position: absolute;
    right: 0.5rem;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.1rem;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.product-usage-detail {
    margin-bottom: 2rem;
}

.usage-content {
    background: #f8f9ff;
    padding: 1.5rem;
    border-radius: 12px;
    border-right: 4px solid #667eea;
}

.usage-content p {
    margin: 0;
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

.product-purchase {
    margin-bottom: 2rem;
}

.size-options-detail {
    margin-bottom: 1.5rem;
}

.size-option-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: 0.8rem;
    background: #f8f9ff;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.size-option-detail:hover {
    border-color: #667eea;
    background: #eef1ff;
}

.size-option-detail.selected {
    border-color: #764ba2;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.size-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.size-name-detail {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.size-weight {
    color: #666;
    font-size: 0.9rem;
}

.size-price-detail {
    font-weight: 700;
    color: #27ae60;
    font-size: 1.2rem;
}

.size-selector {
    width: 20px;
    height: 20px;
}

.radio-circle {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.size-option-detail.selected .radio-circle {
    border-color: #764ba2;
    background: #764ba2;
    position: relative;
}

.size-option-detail.selected .radio-circle:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.purchase-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.add-to-cart-btn-detail {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans Arabic', sans-serif;
    min-width: 200px;
    justify-content: center;
}

.add-to-cart-btn-detail:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(118, 75, 162, 0.3);
}

.price-summary {
    text-align: center;
    color: #666;
    font-size: 1rem;
}

.selected-size-info {
    font-weight: 500;
}

.related-products-hint {
    background: #f0f8ff;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e6f3ff;
}

.hint-text {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.browse-category-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans Arabic', sans-serif;
    font-weight: 500;
}

.browse-category-btn:hover {
    background: #667eea;
    color: white;
}

.loading-message, .product-not-found {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.loading-icon, .not-found-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.product-not-found h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.product-not-found p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.back-home-btn {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans Arabic', sans-serif;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.back-home-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #764ba2;
    border-color: rgba(255, 255, 255, 0.8);
}

.product-title {
    color: #764ba2;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.product-benefits {
    margin-bottom: 1.5rem;
}

.product-benefits h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.product-benefits ul {
    list-style-type: none;
    padding-right: 1rem;
}

.product-benefits li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-right: 2rem;
    color: #555;
}

.product-benefits li:before {
    content: "✓";
    position: absolute;
    right: 0.5rem;
    color: #27ae60;
    font-weight: bold;
}

.product-usage {
    margin-bottom: 1.5rem;
    background: #f8f9ff;
    padding: 1rem;
    border-radius: 10px;
    border-right: 4px solid #667eea;
}

.product-usage h4 {
    color: #764ba2;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.product-sizes {
    margin-bottom: 1.5rem;
}

.product-sizes h4 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 500;
}

.size-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.size-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: #f8f9ff;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-option:hover {
    border-color: #667eea;
    background: #eef1ff;
}

.size-option.selected {
    border-color: #764ba2;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.size-name {
    font-weight: 500;
}

.size-price {
    font-weight: 600;
    color: #27ae60;
}

.size-option.selected .size-price {
    color: #fff;
}

.add-to-cart-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans Arabic', sans-serif;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(118, 75, 162, 0.3);
}

.add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

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

/* Mobile responsive cart styles */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100vw;
        right: -100vw;
        display: flex;
        flex-direction: column;
    }
    
    .cart-sidebar.open {
        right: 0;
    }
    
    .cart-items {
        flex: 1;
        height: calc(100vh - 60px - 150px); /* Subtract header and footer height */
        padding-bottom: 1rem;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
        padding: 0.8rem;
    }
    
    .cart-item-actions {
        justify-content: center;
    }
    
    .quantity-controls {
        gap: 0.5rem;
    }
    
    .cart-item-info h4 {
        font-size: 0.9rem;
    }
    
    .cart-item-info p {
        font-size: 0.8rem;
    }
    
    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .remove-btn {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
    }

    .cart-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 1rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
        background: #f8f9ff;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    }
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.cart-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close-cart:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    padding-bottom: calc(1rem + 150px); /* Add extra padding for the footer */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    height: calc(100vh - 60px); /* Subtract header height */
    box-sizing: border-box;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    background: #f8f9ff;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    gap: 1rem;
}

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

.cart-item-info h4 {
    color: #764ba2;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.cart-item-info p {
    color: #666;
    font-size: 0.9rem;
}

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

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 5px;
    background: #667eea;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #764ba2;
}

.quantity-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.quantity {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.remove-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #ff3742;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.cart-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background: #f8f9ff;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    z-index: 1001;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.cart-total {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
    color: #764ba2;
}

.whatsapp-btn {
    width: 100%;
    padding: 1rem;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    font-family: 'Noto Sans Arabic', sans-serif;
}

.whatsapp-btn:hover {
    background: #20b95a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.clear-cart-btn {
    width: 100%;
    padding: 0.8rem;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans Arabic', sans-serif;
}

.clear-cart-btn:hover {
    background: #ff3742;
    transform: translateY(-1px);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    cursor: pointer;
    display: none;
    pointer-events: none;
    pointer-events: none;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans Arabic', sans-serif;
    backdrop-filter: blur(10px);
}

.load-more-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #764ba2;
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* No Results Section */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.no-results h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.no-results p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-container {
        max-width: 100%;
        margin: 0 0 1.5rem;
    }
    
    .search-input {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .search-btn {
        width: 40px;
        height: 40px;
        left: 3px;
        top: 3px;
    }
    
    .categories-tabs {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    
    .category-tab {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .section-header h3 {
        font-size: 1.6rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .product-card-simple {
        padding: 1.2rem;
    }
    
    .product-title-simple {
        font-size: 1.2rem;
    }
    
    .product-detail-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .product-detail-title {
        font-size: 1.8rem;
    }
    
    .detail-section-title {
        font-size: 1.2rem;
    }
    
    .size-option-detail {
        padding: 0.8rem 1rem;
    }
    
    .add-to-cart-btn-detail {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        min-width: 180px;
    }
    
    .size-options {
        gap: 0.3rem;
    }
    
    .size-option {
        padding: 0.6rem;
    }
    
    .load-more-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .no-results {
        padding: 3rem 1rem;
    }
    
    .no-results-icon {
        font-size: 3rem;
    }
    
    .no-results h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header .container {
        padding: 0.8rem 10px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .search-input {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .categories-tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
    }
    
    .category-tab {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        min-width: 150px;
        justify-content: center;
    }
    
    .section-header h3 {
        font-size: 1.4rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .product-card-simple {
        padding: 1rem;
    }
    
    .product-title-simple {
        font-size: 1.1rem;
    }
    
    .product-description p {
        font-size: 0.9rem;
    }
    
    .price-range {
        font-size: 1rem;
    }
    
    .view-details-btn {
        font-size: 0.8rem;
    }
    
    .product-detail-card {
        padding: 1rem;
        margin: 0 0.25rem;
    }
    
    .product-detail-title {
        font-size: 1.6rem;
    }
    
    .detail-section-title {
        font-size: 1.1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .size-option-detail {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .add-to-cart-btn-detail {
        padding: 0.9rem 1.2rem;
        font-size: 1rem;
        min-width: 160px;
    }
    
    .back-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .no-results {
        padding: 2rem 0.5rem;
    }
    
    .no-results-icon {
        font-size: 2.5rem;
    }
    
    .no-results h3 {
        font-size: 1.3rem;
    }
    
    .no-results p {
        font-size: 0.9rem;
    }
}

/* Product Detail Page - Specific Styles for Generated Pages */
.product-detail {
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 0;
    font-family: 'Noto Sans Arabic', sans-serif;
    margin-top: 80px;
}

.breadcrumb {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.product-detail .product-header {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.product-detail .product-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.product-detail .product-title {
    color: #764ba2;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-detail .product-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.product-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.benefits-usage-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.benefits-section,
.usage-section,
.sizes-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sizes-section {
    margin-bottom: 2rem;
}

.product-content .section-title {
    color: #764ba2;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.8rem;
}

.product-content .section-title::before {
    content: "✨";
    font-size: 1.2rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    position: relative;
    padding: 0.8rem 2.5rem 0.8rem 0;
    color: #555;
    line-height: 1.6;
    border-bottom: 1px solid #f5f5f5;
    font-size: 1rem;
}

.benefits-list li:before {
    content: "✓";
    position: absolute;
    right: 0;
    top: 0.8rem;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2rem;
    width: 2rem;
    text-align: center;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.usage-text {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
    background: #f8f9ff;
    padding: 1.5rem;
    border-radius: 12px;
    border-right: 4px solid #667eea;
    margin: 0;
}

.sizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.size-card {
    background: #f8f9ff;
    border: 2px solid #e6f3ff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.size-card:hover {
    border-color: #667eea;
    background: #eef1ff;
    transform: translateY(-2px);
}

.size-name {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.size-price {
    font-weight: 700;
    color: #27ae60;
    font-size: 1.3rem;
}

.whatsapp-order {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    background: #25d366;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-order:hover {
    background: #20b95a;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

.product-detail .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 100px;
    right: 2rem;
    z-index: 200;
}

.product-detail .back-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #764ba2;
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* Responsive Design for Product Detail Pages */
@media (max-width: 768px) {
    .product-detail {
        padding: 1rem 0;
    }
    
    .breadcrumb {
        padding: 0 1rem;
        margin-bottom: 1.5rem;
    }
    
    .product-detail .product-header {
        margin: 0 1rem 2rem;
        padding: 1.5rem;
    }
    
    .product-detail .product-title {
        font-size: 1.8rem;
    }
    
    .product-detail .product-description {
        font-size: 1rem;
    }
    
    .product-content {
        padding: 0 1rem;
    }
    
    .benefits-usage-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefits-section,
    .usage-section,
    .sizes-section {
        padding: 1.5rem;
    }
    
    .sizes-section {
        margin-bottom: 1.5rem;
    }
    
    .product-content .section-title {
        font-size: 1.3rem;
    }
    
    .sizes-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-order {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .product-detail .back-btn {
        top: 90px;
        right: 1.5rem;
    }
}

@media (max-width: 480px) {
    .product-detail .product-header {
        margin: 0 0.5rem 1.5rem;
        padding: 1rem;
    }
    
    .product-detail .product-title {
        font-size: 1.6rem;
    }
    
    .product-content {
        padding: 0 0.5rem;
    }
    
    .benefits-usage-container {
        gap: 1rem;
    }
    
    .benefits-section,
    .usage-section,
    .sizes-section {
        padding: 1rem;
    }
    
    .product-content .section-title {
        font-size: 1.2rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .benefits-list li {
        padding: 0.6rem 2rem 0.6rem 0;
        font-size: 0.95rem;
    }
    
    .usage-text {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .whatsapp-order {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
    
    .product-detail .back-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        top: 80px;
        right: 1rem;
    }
}

/* Add to Cart Container for size cards */
.add-to-cart-container {
    margin-top: 15px;
    text-align: center;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(118, 75, 162, 0.3);
    width: 100%;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.4);
}

/* Cart Actions Section */
.cart-actions-section {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.cart-info p {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Success Message */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    z-index: 1000;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}