/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

/* ============================================
   HEADER STYLES
   ============================================ */
.header {
    position: sticky;
    top: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #d946ef;
    letter-spacing: -0.5px;
}

.search-bar {
    flex: 1;
    max-width: 600px;
    display: flex;
    gap: 0.5rem;
}

.search-bar input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    border-color: #d946ef;
}

.search-btn {
    padding: 0.75rem 1.5rem;
    background: #d946ef;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #c026d3;
}

.header-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.icon-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #333;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    color: #d946ef;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #d946ef;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
/* ============================================
   LEFT NAVBAR – FIXED PROPERLY
   ============================================ */

.navbar {
    background: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 100%);
    border-bottom: 1px solid #f3e8ff;

    /* المهم */
    display: flex;
    justify-content: flex-start;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.5rem;

    /* ❌ شيلنا centering */
   margin: 1rem 2rem 1rem auto;
    padding: 0.75rem 2rem;

    background: linear-gradient(
        135deg,
        #ede9fe 0%,
        #f3e8ff 50%,
        #fce7f3 100%
    );
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(217, 70, 239, 0.15);
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

/* Hover */
.nav-links a:hover {
    color: #d946ef;
}

/* Underline animation */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: linear-gradient(135deg, #d946ef, #ec4899);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}




/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    padding-top: 0;
}

.collection-section {
    margin-bottom: 4rem;
}

/* ============================================
   PROMOTIONAL BANNERS
   ============================================ */
.promo-banner {
    width: 100%;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 3rem;
}

.banner-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 2rem;
}

.banner-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.banner-btn {
    padding: 1rem 2.5rem;
    background: white;
    color: #333;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Gradient Backgrounds */
.purple-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.pink-gradient {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.red-gradient {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 50%, #ff6b6b 100%);
}

.green-gradient {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 50%, #4facfe 100%);
}

.blue-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #4facfe 100%);
}

.gold-gradient {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 50%, #ffd89b 100%);
}

.black-gradient {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #1a1a1a 100%);
}

.purple-pink-gradient {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f472b6 100%);
}

.rainbow-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
}

.neutral-gradient {
    background: linear-gradient(135deg, #d4a574 0%, #c9a961 50%, #b8a082 100%);
}

/* ============================================
   CONTAINER & SECTION TITLES
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
    font-weight: 600;
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: #f9fafb;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 1.25rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.4;
    min-height: 2.8rem;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #d946ef;
    margin-bottom: 0.75rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.stars {
    color: #fbbf24;
    font-size: 0.9rem;
}

.rating-text {
    font-size: 0.85rem;
    color: #6b7280;
}

.color-variants {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.color-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.color-circle:hover {
    transform: scale(1.1);
    border-color: #d946ef;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-cart {
    background: #d946ef;
    color: white;
}

.btn-add-cart:hover {
    background: #c026d3;
    transform: translateY(-1px);
}

.btn-quick-view {
    background: white;
    color: #d946ef;
    border: 2px solid #d946ef;
}

.btn-quick-view:hover {
    background: #d946ef;
    color: white;
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 2rem;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.modal-image {
    width: 100%;
    border-radius: 8px;
}

.modal-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.modal-info .product-price {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-info .product-rating {
    margin-bottom: 1rem;
}

.modal-description {
    margin-bottom: 1.5rem;
    color: #6b7280;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.modal-actions .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   FOOTER STYLES
   ============================================ */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #d946ef;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .banner-content h2 {
        font-size: 2.5rem;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        padding: 1rem;
    }

    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 1rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .banner-content h2 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .promo-banner {
        height: 300px;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 1.2rem;
        padding: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.2rem;
        padding: 1rem 1.5rem;
    }
}
    


@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .banner-content h2 {
        font-size: 1.5rem;
    }

    .promo-banner {
        height: 250px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }

    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
}

/* ============================================
   LAZY LOADING
   ============================================ */
.product-image {
    opacity: 0;
    transition: opacity 0.3s;
}

.product-image.loaded {
    opacity: 1;
}

.product-image-container {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.product-image.loaded ~ .product-image-container {
    animation: none;
    background: #f9fafb;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   FULL-SCREEN POPUP ADVERTISEMENT
   ============================================ */
.popup-ad {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    animation: fadeIn 0.4s ease-out;
    overflow-y: auto;
}

.popup-ad.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.popup-ad-content {
    position: relative;
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 50%, #f9a8d4 100%);
    border-radius: 20px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUpScale 0.5s ease-out;
}

.popup-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.8rem;
    color: #333;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-weight: bold;
    line-height: 1;
}

.popup-close:hover {
    background: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.popup-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 10001;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.popup-header {
    background: linear-gradient(135deg, #ec4899 0%, #d946ef 100%);
    padding: 2rem;
    text-align: center;
}

.popup-logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0;
}

.popup-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: white;
}

.popup-image-section {
    position: relative;
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.popup-image-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.popup-product-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.popup-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(236, 72, 153, 0.1) 100%);
    pointer-events: none;
}

.popup-sparkle {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2) rotate(180deg);
    }
}

.popup-offer-section {
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.popup-offer-content {
    width: 100%;
    max-width: 400px;
}

.popup-offer-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ef4444;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(239, 68, 68, 0.2);
    animation: bounceIn 0.6s ease-out;
}

.popup-offer-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.popup-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.popup-input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.popup-email-input {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    background: #f9fafb;
}

.popup-email-input:focus {
    border-color: #d946ef;
    background: white;
    box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.1);
}

.popup-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popup-checkbox-label {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.5;
    cursor: pointer;
}

.popup-checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #d946ef;
    flex-shrink: 0;
}

.popup-link {
    color: #d946ef;
    text-decoration: underline;
    transition: color 0.3s;
}

.popup-link:hover {
    color: #c026d3;
}

.popup-submit-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ec4899 0%, #d946ef 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(217, 70, 239, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 70, 239, 0.5);
}

.popup-submit-btn:active {
    transform: translateY(0);
}

.popup-no-thanks {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
    text-align: center;
    margin-top: 0.5rem;
}

.popup-no-thanks:hover {
    color: #374151;
    text-decoration: underline;
}

@keyframes slideUpScale {
    from {
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Popup Responsive Design */
@media (max-width: 768px) {
    .popup-ad.show {
        padding: 1rem;
    }

    .popup-ad-content {
        max-height: 95vh;
        border-radius: 15px;
    }

    .popup-body {
        grid-template-columns: 1fr;
    }

    .popup-image-section {
        padding: 1.5rem;
        max-height: 300px;
    }

    .popup-image-container {
        max-width: 250px;
    }

    .popup-offer-section {
        padding: 2rem 1.5rem;
    }

    .popup-offer-title {
        font-size: 2.5rem;
    }

    .popup-logo {
        font-size: 2rem;
    }

    .popup-badge {
        font-size: 0.65rem;
        padding: 0.5rem 1rem;
    }

    .popup-close {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
        top: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .popup-offer-title {
        font-size: 2rem;
    }

    .popup-offer-subtitle {
        font-size: 1rem;
    }

    .popup-offer-section {
        padding: 1.5rem 1rem;
    }

    .popup-image-section {
        padding: 1rem;
        max-height: 250px;
    }

    .popup-checkbox-label {
        font-size: 0.8rem;
    }
}
