/**
 * Main Stylesheet
 * Clean, modern, and responsive design
 */

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #666666;
    --nav-bg-color: #ffffff;
    --nav-text-color: #000000;
    --footer-bg-color: #ffffff;
    --footer-text-color: #000000;
    --button-color: #000000;
    --button-text-color: #ffffff;
    --heading-font: 'Rubik', sans-serif;
    --body-font: 'Rubik', sans-serif;
    --font-size: 16px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-muted: #999999;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--body-font);
    font-size: var(--font-size);
    line-height: 1.6;
    color: var(--text-primary);
    background: #ffffff;
    direction: rtl;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* ===== Header ===== */
.site-header {
    background: #ffffff;
    color: #000000;
    border-bottom: 2px solid #000000;
    position: relative;
    z-index: 1000;
}

.sticky-header {
    position: sticky;
    top: 0;
}

.header-container {
    padding: 20px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.header-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.header-logo img {
    max-height: 50px;
}

.header-search {
    flex: 1;
    max-width: 500px;
}

.search-form {
    display: flex;
    background: #ffffff;
    border: 1px solid #000000;
    border-radius: 0;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: #ffffff;
    font-size: 14px;
    color: #000000;
}

.search-button {
    padding: 12px 20px;
    background: var(--button-color, #000000);
    color: var(--button-text-color, #ffffff);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.search-button:hover {
    opacity: 0.9;
}

.menu-toggle {
    font-size: 24px;
    padding: 8px;
    cursor: pointer;
}

.cart-icon {
    position: relative;
    font-size: 24px;
    padding: 8px;
}

.cart-count {
    position: absolute;
    top: 0;
    left: 0;
    background: #ff4444;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.header-nav {
    display: flex;
    gap: 25px;
}

.header-nav a {
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

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

/* ===== Menu Lightbox ===== */
.menu-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.menu-lightbox.active {
    display: flex;
}

.menu-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.menu-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: #ffffff;
    border: 3px solid #000000;
    overflow-y: auto;
    animation: menuSlideIn 0.3s ease;
}

@keyframes menuSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.menu-lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    border-bottom: 2px solid #000000;
    background: #ffffff;
}

.menu-lightbox-header h3 {
    font-size: 1.8rem;
    margin: 0;
    color: #000000;
}

.menu-close {
    width: 40px;
    height: 40px;
    border: 2px solid #000000;
    background: #ffffff;
    color: #000000;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.menu-close:hover {
    background: #000000;
    color: #ffffff;
}

.menu-lightbox-nav {
    padding: 30px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid #000000;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #000000;
    transition: var(--transition);
}

.menu-item i {
    font-size: 1.3rem;
}

.menu-item:hover {
    background: #000000;
    color: #ffffff;
}

.menu-categories {
    margin: 30px 0;
    padding: 20px;
    border: 2px solid #000000;
}

.menu-categories-header {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000000;
}

.menu-categories-header i {
    font-size: 1.3rem;
}

.menu-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.category-item {
    padding: 15px;
    border: 1px solid #000000;
    text-align: center;
    font-weight: 500;
    color: #000000;
    transition: var(--transition);
}

.category-item:hover {
    background: #000000;
    color: #ffffff;
}

@media (max-width: 768px) {
    .menu-lightbox-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .menu-lightbox-header {
        padding: 20px;
    }
    
    .menu-lightbox-nav {
        padding: 20px;
    }
    
    .menu-categories-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    min-height: 500px;
}

.default-hero {
    background: #ffffff;
    border: 2px solid #000000;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    margin: 20px;
}

.default-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #000000;
}

.default-hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #666666;
}

.default-hero .btn {
    background: #000000;
    color: #ffffff;
    font-size: 1.2rem;
    padding: 15px 40px;
    border: 2px solid #000000;
}

.default-hero .btn:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-3px);
}

.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-color);
    color: var(--button-text-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    padding: 15px 20px;
    border-radius: 50%;
    font-size: 20px;
    z-index: 10;
    transition: var(--transition);
}

.slider-control:hover {
    background: white;
}

.slider-control.prev {
    right: 20px;
}

.slider-control.next {
    left: 20px;
}

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

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

.dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* ===== Sections ===== */
.products-section,
.categories-section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

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

.product-card {
    background: #ffffff;
    border: 1px solid #000000;
    border-radius: var(--radius-md, 20px);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #000000;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.badge-featured {
    background: #ffd700;
    color: #000;
}

.badge-discount {
    background: #ff4444;
    color: white;
}

.product-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: var(--radius-md, 20px) var(--radius-md, 20px) 0 0;
}

/* Aspect ratio variations */
.product-image.aspect-reel {
    aspect-ratio: 9/16;
}

.product-image.aspect-square {
    aspect-ratio: 1/1;
}

.product-image.aspect-portrait {
    aspect-ratio: 3/4;
}

.product-image.aspect-reel-full {
    aspect-ratio: 9/16;
    height: auto;
}

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

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

/* Title overlay on image */
.product-title-overlay {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 2;
}

/* Overlay at bottom (default) */
.product-title-overlay.overlay-bottom {
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.65) 60%, transparent 100%);
    padding: 30px 15px 15px;
}

/* Overlay at top */
.product-title-overlay.overlay-top {
    top: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.65) 60%, transparent 100%);
    padding: 15px 15px 30px;
}

/* No overlay background - text only */
.product-title-overlay.no-overlay-bg {
    background: none !important;
}

.product-title-overlay.no-overlay-bg .product-name,
.product-title-overlay.no-overlay-bg .product-name a {
    text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.6);
}

.product-title-overlay.no-overlay-bg .product-price-overlay .price-current,
.product-title-overlay.no-overlay-bg .product-price-overlay .price-discount,
.product-title-overlay.no-overlay-bg .product-price-overlay .price-original {
    text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.6);
}

.product-title-overlay .product-name {
    color: #fff;
    margin: 0 0 8px 0;
    min-height: auto;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.product-title-overlay .product-name a {
    color: #fff;
    text-decoration: none;
}

.product-title-overlay .product-name a:hover {
    color: #fff;
    opacity: 0.9;
}

/* Price overlay for full-image cards */
.product-price-overlay {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.product-price-overlay .price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color, #FFD700);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.product-price-overlay .price-original {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    text-decoration: line-through;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.product-price-overlay .price-discount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color, #FFD700);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Full-image card style */
.product-card-full-image {
    overflow: hidden;
    position: relative;
}

.product-card-full-image .product-image-link {
    display: block;
    width: 100%;
}

.product-card-full-image .product-image {
    position: relative;
    width: 100%;
}

.product-card-full-image .product-image img {
    display: block;
    width: 100%;
    height: auto;
}

.product-info {
    padding: 20px;
}

/* Title above image (not overlay) */
.product-title-above {
    padding: 15px 20px 10px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.product-title-above .product-name {
    margin: 0;
    min-height: auto;
    font-size: 1.1rem;
}

/* Border and shadow control */
.product-card.no-border {
    border: none !important;
}

.product-card.no-shadow {
    box-shadow: none !important;
}

.product-name {
    font-size: 1.1rem;
    margin-bottom: 10px;
    min-height: 50px;
}

.product-name a {
    color: #333;
}

.product-name a:hover {
    color: var(--primary-color);
}

.product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-original {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
}

.price-discount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff4444;
}

.product-actions {
    margin-top: 15px;
}

/* ===== Categories Grid ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: #ffffff;
    border: 1px solid #000000;
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

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

.category-info {
    padding: 20px;
}

.category-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--button-color, #000000);
    color: var(--button-text-color, #ffffff);
    border: 2px solid var(--button-color, #000000);
}

.btn-primary:hover {
    background: #ffffff;
    color: var(--button-color, #000000);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ===== Footer ===== */
.site-footer {
    background: #ffffff;
    color: #000000;
    border-top: 2px solid #000000;
    margin-top: 60px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.footer-container {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.footer-newsletter {
    background: #000000;
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.newsletter-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 20px auto 0;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: var(--border-radius);
}

.newsletter-form button {
    padding: 15px 30px;
    background: var(--button-text-color, #ffffff);
    color: var(--button-color, #000000);
    border: 2px solid var(--button-text-color, #ffffff);
    border-radius: 0;
    font-weight: 600;
}

.newsletter-form button:hover {
    background: var(--button-color, #000000);
    color: var(--button-text-color, #ffffff);
}

.footer-main {
    padding: 60px 20px 40px;
    width: 100%;
    box-sizing: border-box;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.footer-column {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: #666;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 18px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: white;
}

.footer-bottom {
    border-top: 2px solid #000000;
    padding: 30px 20px;
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.footer-bottom-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #000000;
}

.footer-payment {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-payment span {
    font-size: 0.95rem;
    color: #000000;
    font-weight: 500;
}

.footer-payment i {
    font-size: 24px;
    color: #000000;
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    border-radius: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-5px);
}

/* ===== Product Page ===== */
.page-header {
    background: #ffffff;
    border-bottom: 1px solid #000000;
    padding: 30px 0;
    margin-bottom: 40px;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb .separator {
    color: #ccc;
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.gallery-main {
    margin-bottom: 20px;
}

.main-image {
    aspect-ratio: 3/4;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

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

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.thumbnail {
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-main {
    padding-top: 20px;
}

.product-title {
    font-size: 2rem;
    margin-bottom: 15px;
}

.product-short-desc {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.product-price-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.price-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.savings {
    color: #28a745;
    font-weight: 600;
}

.product-form {
    margin-bottom: 30px;
}

.product-variations {
    margin-bottom: 25px;
}

.variation-label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
}

.variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variation-option {
    position: relative;
}

.variation-option input {
    position: absolute;
    opacity: 0;
}

.variation-text {
    display: block;
    padding: 10px 20px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.variation-option input:checked + .variation-text {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.variation-option input:disabled + .variation-text {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-quantity {
    margin-bottom: 25px;
}

.quantity-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.quantity-input {
    display: flex;
    align-items: center;
    width: fit-content;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    font-size: 18px;
    font-weight: 600;
    transition: var(--transition);
}

.qty-btn:hover {
    background: #e0e0e0;
}

.quantity-input input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.product-meta {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.meta-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.meta-label {
    font-weight: 600;
}

.product-description-section,
.related-products-section {
    margin-top: 60px;
}

.product-description-section {
    padding: 30px;
    background: #ffffff;
    border: 1px solid #000000;
}

.product-description-content {
    line-height: 1.8;
    color: #666666;
}

.product-description-content p {
    margin-bottom: 15px;
    color: #000000;
}

.product-description-content ul,
.product-description-content ol {
    margin: 15px 0;
    padding-right: 20px;
}

.product-description-content li {
    margin-bottom: 8px;
}

.product-description-content strong,
.product-description-content b {
    color: #000000;
    font-weight: 600;
}

/* ===== Products Page ===== */
.products-page {
    padding: 40px 0;
}

.products-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.products-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: #ffffff;
    border: 1px solid #000000;
    border-radius: 0;
    padding: 20px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 5px;
}

.category-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.category-list a:hover,
.category-list a.active {
    background: #f5f5f5;
    color: var(--primary-color);
}

.sidebar-search {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px;
    align-items: stretch;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.sidebar-search .search-input {
    flex: 1 1 auto !important;
    padding: 10px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: var(--border-radius);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    width: auto !important;
    min-width: 0;
    background: #ffffff !important;
    box-sizing: border-box;
    height: auto;
}

.sidebar-search .search-input:focus {
    border-color: var(--primary-color);
}

.sidebar-search .search-button {
    padding: 10px 15px !important;
    background: var(--button-color, #000000) !important;
    color: var(--button-text-color, #ffffff) !important;
    border: none !important;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    flex-basis: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    max-width: 50px;
    width: 50px !important;
    height: auto;
    position: static !important;
    box-sizing: border-box;
}

.sidebar-search .search-button:hover {
    opacity: 0.9 !important;
}

.sidebar-search .search-button i {
    font-size: 16px;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #000000;
    border-radius: 0;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
}

.no-products i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-link {
    padding: 10px 15px;
    border: 1px solid #000000;
    border-radius: 0;
    transition: var(--transition);
    background: #ffffff;
    color: #000000;
}

.pagination-link:hover,
.pagination-link.active {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.pagination-dots {
    padding: 10px;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-close {
    font-size: 24px;
    padding: 5px;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-actions {
    margin-top: 25px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    /* Remove sticky positioning on mobile */
    .product-gallery {
        position: relative;
        top: auto;
    }
    
    .header-nav {
        display: none;
    }
    
    .header-container {
        padding: 15px;
    }
    
    .header-content {
        gap: 10px;
    }
    
    .header-section {
        gap: 10px;
    }
    
    .site-header {
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .site-footer {
        padding: 0;
        margin: 0;
        margin-top: 40px;
        width: 100vw;
        max-width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    
    .footer-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .footer-newsletter {
        padding: 30px 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .newsletter-content {
        max-width: 100%;
        padding: 0;
    }
    
    .newsletter-content h3 {
        font-size: 1.5rem;
        padding: 0 10px;
    }
    
    .newsletter-content p {
        padding: 0 10px;
    }
    
    .footer-main {
        padding: 40px 15px 30px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .footer-column {
        padding: 0;
        max-width: 100%;
        width: 100%;
    }
    
    .footer-column h4 {
        font-size: 1.1rem;
    }
    
    .footer-links,
    .footer-contact {
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    .footer-links a,
    .footer-contact li {
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .footer-bottom {
        padding: 20px 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 0;
        width: 100%;
    }
    
    .footer-bottom-content p {
        font-size: 0.85rem;
        word-break: break-word;
    }
    
    .footer-payment {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .footer-payment span {
        font-size: 0.85rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 20px auto 0;
        gap: 10px;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        box-sizing: border-box;
    }
    
    .product-details {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .products-sidebar {
        display: none;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Ensure all elements fit within viewport */
    * {
        max-width: 100%;
    }
    
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
    
    /* Mobile: Smaller text for product card overlays */
    .product-title-overlay .product-name {
        font-size: 0.9rem;
    }
    
    .product-price-overlay .price-current,
    .product-price-overlay .price-discount {
        font-size: 1.1rem;
    }
    
    .product-price-overlay .price-original {
        font-size: 0.85rem;
    }
    
    .product-title-overlay {
        padding: 20px 10px 10px;
    }
    
    .product-title-overlay.overlay-top {
        padding: 10px 10px 20px;
    }
}
