@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&family=Monda:wght@400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Orbitron&family=Playwrite+NZ+Basic:wght@100..400&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Roboto+Slab:wght@100..900&family=Rubik:ital,wght@0,300..900;1,300..900&family=SN+Pro:ital,wght@0,200..900;1,200..900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f0;
    color: #333;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Navigation Bar */
nav {
    background-color: #1a1a1a;
    padding: 1.2rem 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #f5f5f0;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: #f5f5f0;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.7s;
    font-weight: 500;
}

.nav-links a:hover {
    color: #888;
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
    color: #f5f5f0;
    font-size: 1.2rem;
}

.nav-icons i {
    cursor: pointer;
    transition: color 0.7s;
}

.nav-icons i:hover {
    color: #888;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #f5f5f0;
    padding: 6rem 5%;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-btn {
    background-color: #f5f5f0;
    color: #1a1a1a;
    padding: 1rem 3rem;
    border: 2px solid transparent;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.7s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background-color: #1a1a1a;
    transition: left 0.7s ease;
    z-index: -1;
}

.hero-btn::after {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 50%;
    height: 100%;
    background-color: #1a1a1a;
    transition: right 0.7s ease;
    z-index: -1;
}

.hero-btn:hover::before {
    left: 0;
}

.hero-btn:hover::after {
    right: 0;
}

.hero-btn:hover {
    color: #f5f5f0;
    background-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Products Section */
.products-section {
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
    letter-spacing: 1px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

/* Product Card */
.product-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.7s, box-shadow 0.7s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s, filter 0.7s;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 2;
}

.product-image-container:hover .product-overlay {
    opacity: 1;
    pointer-events: auto;
}

.product-image-container:hover .product-image {
    transform: scale(1.08);
    filter: blur(3px) brightness(0.7);
}

.overlay-btn {
    background-color: #1a1a1a;
    color: #f5f5f0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.7s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.overlay-btn:hover {
    background-color: #2a2a2a;
    transform: scale(1.15);
}

.product-info {
    padding: 1.3rem;
    text-align: center;
}

.product-name {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #1a1a1a;
    font-weight: 600;
}

.product-price {
    color: #1a1a1a;
    font-weight: 400;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    justify-content: center;
    direction: ltr;
    flex-direction: row-reverse;
    opacity: .9;
}



.new-price {
    font-size: 1.15rem;
    color: #1a1a1a;
    font-weight: 400;
      font-family: "Rubik", sans-serif;
}

.old-price {
    font-size: 0.95rem;
    color: #999;
    font-weight: 300;
    text-decoration: line-through;
    opacity: 0.7;
}



.product-buttons {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    transition: opacity 0.7s;
}

.product-btn {
    flex: 1;
    padding: 0.65rem 1rem;
    background-color: transparent;
    border: 1px solid #1a1a1a;
    color: #1a1a1a;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.7s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-btn i {
    position: absolute;
    font-size: 1.1rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.7s ease;
}

.product-btn span {
    transition: all 0.7s ease;
    font-weight: 600;
}

.product-btn:hover {
    background-color: #1a1a1a;
    color: #f5f5f0;
    border-color: #1a1a1a;
}

.product-btn:hover span {
    opacity: 0;
    transform: scale(0);
}

.product-btn:hover i {
    opacity: 1;
    transform: scale(1);
}

/* Hide buttons when hovering over image container only */
.product-image-container:hover ~ .product-info .product-buttons {
    opacity: 0;
    pointer-events: none;
}

/* Show overlay icons only when hovering over image */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.7s;
    z-index: 2;
    pointer-events: none;
}

.product-image-container:hover .product-overlay {
    opacity: 1;
    pointer-events: auto;
}

.product-image-container:hover .product-image {
    transform: scale(1.08);
    filter: blur(3px) brightness(0.7);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #f5f5f0;
    padding: 3rem 5%;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #f5f5f0;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.7s;
}

.footer-section a:hover {
    opacity: 1;
}

.social-icons {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
    margin-top: 1rem;
}

.social-icons i {
    cursor: pointer;
    transition: transform 0.7s;
}

.social-icons i:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    opacity: 0.7;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #0d0d0d;
    color: #e0e0e0;
}

body.dark-mode nav {
    background-color: #000;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
}

body.dark-mode .section-title {
    color: #f5f5f0;
}

body.dark-mode .product-card {
    background-color: #1a1a1a;
    box-shadow: 0 3px 15px rgba(255,255,255,0.05);
}

body.dark-mode .product-card:hover {
    box-shadow: 0 8px 25px rgba(255,255,255,0.1);
}

body.dark-mode .product-image-container {
    background-color: #0d0d0d;
}

body.dark-mode .product-name {
    color: #f5f5f0;
}

body.dark-mode .product-price {
    color: #f5f5f0;
}

body.dark-mode .new-price {
    color: #f5f5f0;
}

body.dark-mode .old-price {
    color: #666;
}

body.dark-mode .product-btn {
    border-color: #f5f5f0;
    color: #f5f5f0;
}

body.dark-mode .product-btn::before,
body.dark-mode .product-btn::after {
    background-color: #f5f5f0;
}

body.dark-mode .product-btn:hover {
    color: #1a1a1a;
    border-color: #f5f5f0;
    background-color: #f5f5f0;
}

body.dark-mode .product-btn:hover i {
    color: #1a1a1a;
}

body.dark-mode .overlay-btn {
    background-color: #f5f5f0;
    color: #1a1a1a;
}

body.dark-mode .overlay-btn:hover {
    background-color: #e5e5e0;
}

body.dark-mode footer {
    background-color: #000;
}

#darkModeToggle {
    cursor: pointer;
    transition: transform 0.7s;
}

#darkModeToggle:hover {
    transform: rotate(20deg) scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .product-image-container {
        height: 250px;
    }
}