:root {
    --primary-black: #000000;
    --primary-white: #FFFFFF;
    --grey-light: #F5F5F5;
    --grey-medium: #CCCCCC;
    --grey-dark: #333333;
    --accent: #1a1a1a;
    --shadow: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Work Sans', sans-serif;
    background: var(--primary-white);
    color: var(--primary-black);
    line-height: 1.6;
    transition: all 0.3s ease;
    margin-top: 0;
    padding-top: 0;
}

body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

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


/* Language Toggle - Compact Pills */
.lang-toggle {
    display: flex;
    gap: 6px;
    align-items: center;
    padding-right: 12px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

body[dir="rtl"] .lang-toggle {
    padding-right: 0;
    padding-left: 12px;
    border-right: none;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.lang-btn {
    padding: 6px 14px;
    border: none;
    background: var(--grey-light);
    cursor: pointer;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    color: var(--grey-dark);
    min-width: 40px;
    text-align: center;
}

.lang-btn:hover {
    background: var(--grey-medium);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: var(--primary-black);
    color: var(--primary-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Currency Selector - Minimal Design */
.currency-toggle {
    display: flex;
    align-items: center;
}

#currencySelector {
    padding: 6px 32px 6px 14px;
    border: none;
    background: var(--grey-light);
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--grey-dark);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.2s ease;
    min-width: 110px;
}

body[dir="rtl"] #currencySelector {
    background-position: left 12px center;
    padding: 6px 14px 6px 32px;
}

#currencySelector:hover {
    background: var(--grey-medium);
    transform: translateY(-1px);
}

#currencySelector:focus {
    outline: none;
    background: var(--primary-black);
    color: var(--primary-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#currencySelector option {
    background: var(--primary-white);
    color: var(--primary-black);
    padding: 10px;
}

/* Navigation */
.navbar {
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--primary-white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-white);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-white);
    list-style: none;
    padding: 1rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    color: var(--primary-black);
    padding: 0.5rem 1.5rem;
    display: block;
}

.dropdown-menu a:hover {
    background: var(--grey-light);
}

.nav-icons {
    display: flex;
    gap: 1rem;
}

.cart-icon {
    position: relative;
    color: var(--primary-white);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: var(--grey-dark);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    background: var(--primary-white);
    color: var(--primary-black);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-white);
    color: var(--primary-black);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--grey-light);
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--grey-dark) 100%);
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: var(--primary-white);
    animation: slideUp 1s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 900;
}

.slide-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.cta-btn {
    padding: 1rem 3rem;
    background: var(--primary-white);
    color: var(--primary-black);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-btn:hover {
    background: var(--grey-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: var(--primary-white);
    font-size: 3rem;
    cursor: pointer;
    padding: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-white);
    width: 40px;
    border-radius: 6px;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 900;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--primary-black);
    margin: 1rem auto;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--primary-white);
    border: 2px solid var(--primary-black);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow);
}

.product-image {
    width: 100%;
    height: 300px;
    background: var(--grey-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 10;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.9rem;
    color: var(--grey-dark);
    margin-bottom: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.price-new {
    font-size: 1.5rem;
    font-weight: 700;
}

.price-old {
    font-size: 1.1rem;
    text-decoration: line-through;
    color: var(--grey-medium);
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--primary-black);
    background: var(--primary-white);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

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

.btn-fav {
    width: 50px;
    font-size: 1.2rem;
}

.btn-fav.active {
    background: var(--primary-black);
    color: var(--primary-white);
}

/* Footer */
.footer {
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--primary-white);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.3rem 0;
}

.footer-section a:hover {
    padding-left: 10px;
}

.footer-bottom {
    border-top: 1px solid var(--grey-dark);
    padding-top: 1rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .controls-container {
        top: 70px;
        right: 10px;
        padding: 6px 10px;
        gap: 10px;
    }
    
    body[dir="rtl"] .controls-container {
        right: auto;
        left: 10px;
    }
    
    .lang-toggle {
        padding-right: 10px;
        gap: 4px;
    }
    
    body[dir="rtl"] .lang-toggle {
        padding-left: 10px;
        padding-right: 0;
    }
    
    .lang-btn {
        padding: 5px 12px;
        font-size: 0.8rem;
        min-width: 36px;
    }
    
    #currencySelector {
        padding: 5px 28px 5px 12px;
        font-size: 0.8rem;
        min-width: 95px;
        background-position: right 10px center;
    }
    
    body[dir="rtl"] #currencySelector {
        padding: 5px 12px 5px 28px;
        background-position: left 10px center;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .slide-content h2 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}


/* ==================== PAGINATION ==================== */

.topbaic-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0 8px;
    color: #999;
    font-size: 18px;
}

/* No products message */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .pagination-btn {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

