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

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    direction: rtl;
    position: relative;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Top Bar */
.top-bar {
    background: #1a365d;
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    justify-content: space-between;
    align-items: center;
}

.top-bar-right a {
    margin-right: 15px;
    color: #fff;
}

.top-bar-right a:hover {
    text-decoration: underline;
}

/* Header */
.main-header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.logo a {
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo-bold {
    color: #1a365d;
}

.logo-red {
    color: #dc2626;
}

.search-bar {
    flex: 1;
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-btn {
    padding: 12px 25px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.free-shipping-badge {
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #dc2626;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Navigation */
.main-nav {
    background: #1a365d;
    padding: 12px 0;
    position: relative;
}

.nav-menu {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

.nav-menu li {
    position: relative;
}

.nav-item--has-children {
    position: relative;
}

.nav-item--has-children:hover .nav-submenu {
    display: block;
}

.nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a365d;
    min-width: 250px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px 0;
    margin-top: 0;
}

.nav-submenu-item {
    position: relative;
}

.nav-submenu-link {
    display: block;
    padding: 12px 20px;
    color: #fff;
    font-size: 14px;
    transition: background 0.3s;
    white-space: nowrap;
}

.nav-submenu-link:hover {
    background: #2c5282;
}

.nav-submenu--nested {
    display: none;
    position: absolute;
    top: 0;
    right: 100%;
    background: #1a365d;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1001;
    padding: 10px 0;
    margin-top: 0;
}

.nav-submenu-item--has-children:hover .nav-submenu--nested {
    display: block;
}

.nav-arrow {
    margin-right: 5px;
    font-size: 12px;
}

.nav-submenu-arrow {
    float: left;
    margin-left: 5px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .nav-submenu {
        position: static;
        display: none;
        background: rgba(0,0,0,0.2);
        box-shadow: none;
    }
    
    .nav-item--has-children.active .nav-submenu {
        display: block;
    }
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
    margin-left: auto;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 80vw;
    height: 100vh;
    height: 100dvh;
    background: #1a365d;
    z-index: 1002;
    padding: 60px 0 20px 0;
    overflow-y: auto;
    box-shadow: -4px 0 15px rgba(0,0,0,0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-sidebar.active {
    transform: translateX(0);
}

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

.sidebar-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu li a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    font-size: 15px;
    transition: background 0.3s;
}

.sidebar-menu li a:hover {
    background: #2c5282;
}

/* Close button inside sidebar */
.sidebar-close-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 1003;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-close-btn:hover {
    background: rgba(255,255,255,0.25);
}

.nav-menu li a,
.nav-link {
    color: #fff;
    padding: 15px 20px;
    display: block;
    transition: background 0.3s;
    font-size: 15px;
    text-decoration: none;
}

@media (max-width: 768px) {
    .nav-menu li a,
    .nav-link {
        padding: 18px 20px;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

.nav-menu li a:hover,
.nav-link:hover {
    background: #2c5282;
}

.nav-icon {
    margin-left: 8px;
    display: inline-block;
}

.nav-arrow {
    margin-right: 5px;
    font-size: 12px;
    display: inline-block;
}

/* Mobile Sidebar Overlay */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 40px;
}

.hero-content {
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #1d4ed8;
}

/* Brand Logos */
.brand-logos {
    padding: 30px 0;
    background: #f9fafb;
    margin-bottom: 40px;
}

.brand-carousel {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.brand-item {
    font-weight: bold;
    color: #666;
    font-size: 18px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

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

.product-badge.new {
    background: #10b981;
    color: #fff;
}

.product-badge.sale {
    background: #dc2626;
    color: #fff;
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-brand {
    font-size: 12px;
    color: #666;
    padding: 10px 15px 5px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 15px;
    font-size: 12px;
}

.stars {
    color: #fbbf24;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    padding: 10px 15px;
    margin: 0;
}

.product-price {
    padding: 0 15px 10px;
}

.current-price {
    font-size: 18px;
    font-weight: bold;
    color: #2563eb;
}

.old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

.product-actions {
    padding: 15px;
    display: flex;
    gap: 10px;
}

.btn-quick-view, .btn-add-cart {
    flex: 1;
    padding: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-cart {
    background: #1e3a8a;
    color: #fff;
    border: none;
}

.btn-add-cart:hover {
    background: #1d4ed8;
}

/* Footer */
.main-footer {
    background: #1f2937;
    color: #fff;
    margin-top: 60px;
}

.footer-top {
    padding: 40px 0;
    border-bottom: 1px solid #374151;
}

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

.footer-col h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

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

.footer-col ul li a {
    color: #d1d5db;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-middle {
    padding: 40px 0;
    border-bottom: 1px solid #374151;
}

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

.footer-logo-section p {
    margin: 10px 0;
    color: #d1d5db;
}

.footer-about {
    color: #d1d5db;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.social-icons a {
    font-size: 24px;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.newsletter-form {
    display: flex;
    margin-top: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #374151;
    border-radius: 4px 0 0 4px;
    background: #374151;
    color: #fff;
}

.newsletter-form button {
    padding: 10px 20px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.footer-bottom {
    padding: 20px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-icon {
    font-size: 24px;
}

.copyright {
    color: #d1d5db;
}

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

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

.filter-toggle-btn {
    display: none;
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 20px;
    width: 100%;
}

.products-sidebar {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.cart-summary {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.cart-summary h3 {
    margin-bottom: 10px;
}

.btn-view-cart {
    display: block;
    background: #2563eb;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    margin-top: 10px;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #1a365d;
}

.filter-list li {
    margin-bottom: 10px;
}

.filter-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.filter-list input[type="checkbox"],
.filter-list input[type="radio"] {
    cursor: pointer;
}

.filter-list span {
    color: #666;
    font-size: 12px;
}

.color-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-block;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.products-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-sort select {
    padding: 8px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.page-btn, .page-number {
    padding: 8px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    color: #333;
    transition: all 0.3s;
}

.page-number.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.page-btn:hover, .page-number:hover {
    background: #f3f4f6;
}

/* Product Detail Page */
.breadcrumb {
    padding: 15px 0;
    background: #f9fafb;
}

.breadcrumb a {
    color: #2563eb;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.product-images .main-image img {
    width: 100%;
    border-radius: 8px;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail.active {
    border-color: #2563eb;
}

.product-info .product-brand {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

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

.product-price-section {
    margin: 20px 0;
}

.discount-badge {
    background: #dc2626;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 10px;
}

.product-options {
    margin: 30px 0;
}

.option-group {
    margin-bottom: 25px;
}

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

.color-options, .size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option, .size-option {
    width: 40px;
    height: 40px;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.color-option.active, .size-option.active {
    border-color: #2563eb;
}

.size-option {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
}

#quantity {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.product-actions-detail {
    margin: 30px 0;
}

.btn-add-cart-large {
    width: 100%;
    padding: 15px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
}

.btn-wishlist {
    width: 100%;
    padding: 15px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    cursor: pointer;
}

.product-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Product Tabs */
.product-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: -2px;
}

.tab-btn.active {
    border-bottom-color: #2563eb;
    color: #2563eb;
}

.tab-content {
    margin-bottom: 40px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    margin-bottom: 15px;
}

.tab-pane ul {
    list-style: disc;
    margin-right: 20px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.spec-table td:first-child {
    font-weight: 600;
    width: 200px;
}

/* Reviews */
.review-summary {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.big-rating {
    font-size: 48px;
    font-weight: bold;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: #fbbf24;
}

.review-item {
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 15px;
}

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

/* Blog Pages */
.blog-page, .blog-detail-page {
    padding: 40px 0;
}

.blog-layout, .blog-detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.blog-grid {
    display: grid;
    gap: 30px;
}

.blog-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.blog-image {
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #2563eb;
    color: #fff;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 12px;
}

.blog-content {
    padding: 20px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.blog-excerpt {
    color: #666;
    margin-bottom: 15px;
}

.blog-read-more {
    color: #2563eb;
    font-weight: 600;
}

.blog-sidebar {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.blog-search-form {
    display: flex;
}

.blog-search-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 4px 0 0 4px;
}

.blog-search-form button {
    padding: 10px 15px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

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

.category-list a {
    color: #666;
}

.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-post {
    display: flex;
    gap: 15px;
}

.popular-post img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.popular-post div {
    flex: 1;
}

.popular-post a {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.popular-post span {
    font-size: 12px;
    color: #666;
}

/* Contact Page */
.contact-page {
    padding: 40px 0;
}

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

.contact-card {
    background: #f9fafb;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.contact-card h3 {
    margin-bottom: 10px;
}

.contact-map {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.contact-form-section h2 {
    margin-bottom: 20px;
}

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

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

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 14px;
}

.contact-form textarea {
    resize: vertical;
}

/* About Page */
.about-page {
    padding: 40px 0;
}

.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
}

.about-intro h2 {
    margin-bottom: 20px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.value-card {
    text-align: center;
    padding: 30px;
    background: #f9fafb;
    border-radius: 8px;
}

.value-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: #f9fafb;
    border-radius: 8px;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 10px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

/* Cart Page */
.cart-page {
    padding: 40px 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-clear-cart {
    background: #dc2626;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr 150px 150px 50px;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 15px;
    align-items: center;
}

.cart-item-image img {
    width: 100%;
    border-radius: 4px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-quantity button {
    width: 30px;
    height: 30px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.cart-item-quantity input {
    width: 50px;
    text-align: center;
    padding: 5px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.cart-item-remove button {
    background: #dc2626;
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.cart-summary-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.cart-summary-card {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.total-row {
    border-top: 2px solid #e5e7eb;
    padding-top: 15px;
    font-size: 18px;
    font-weight: bold;
}

.coupon-section {
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.coupon-input {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.coupon-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.coupon-input button {
    padding: 10px 20px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: 15px;
    background: #2563eb;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: bold;
}

.btn-continue-shopping {
    display: block;
    width: 100%;
    padding: 15px;
    background: #fff;
    color: #2563eb;
    text-align: center;
    border: 1px solid #2563eb;
    border-radius: 4px;
}

/* Checkout Page */
.checkout-page {
    padding: 40px 0;
}

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

.checkout-section {
    background: #f9fafb;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.checkout-section h2 {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.shipping-methods, .payment-methods-checkout {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.shipping-method, .payment-method {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
}

.shipping-method input:checked + div,
.payment-method input:checked + div {
    color: #2563eb;
}

.shipping-method input:checked,
.payment-method input:checked {
    accent-color: #2563eb;
}

.btn-checkout-submit {
    width: 100%;
    padding: 15px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.order-summary-card {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    position: sticky;
    top: 20px;
}

.checkout-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.checkout-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.checkout-item div {
    flex: 1;
}

.checkout-item h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.checkout-item p {
    font-size: 12px;
    color: #666;
}

/* Payment Result */
.payment-result-page {
    padding: 60px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.payment-result-card {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.payment-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 48px;
}

.payment-icon.success {
    background: #10b981;
    color: #fff;
}

.payment-icon.failed {
    background: #dc2626;
    color: #fff;
}

.payment-result-card h1 {
    margin-bottom: 15px;
}

.order-info {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: right;
}

.payment-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-secondary {
    background: #fff;
    color: #2563eb;
    padding: 15px 30px;
    border: 1px solid #2563eb;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
}

/* Login Page */
.login-page {
    padding: 60px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.login-container {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
}

.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #e5e7eb;
}

.login-tabs .tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: -2px;
}

.login-tabs .tab-btn.active {
    border-bottom-color: #2563eb;
    color: #2563eb;
}

.login-tab-content {
    display: none;
}

.login-tab-content.active {
    display: block;
}

.auth-form h2 {
    margin-bottom: 25px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.forgot-password {
    color: #2563eb;
    font-size: 14px;
}

.btn-full {
    width: 100%;
}

.social-login {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.social-login p {
    margin-bottom: 15px;
    color: #666;
}

.social-buttons {
    display: flex;
    gap: 10px;
}

.btn-social {
    flex: 1;
    padding: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-social:hover {
    background: #f9fafb;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-layout,
    .blog-layout,
    .blog-detail-layout,
    .contact-layout,
    .checkout-layout,
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .products-sidebar,
    .blog-sidebar {
        position: static;
    }

    .filter-toggle-btn {
        display: block;
    }

    .products-sidebar {
        display: none;
    }

    .products-sidebar.mobile-open {
        display: block;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .about-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 12px 0;
    }

    .header-content {
        flex-direction: column;
        gap: 12px;
        position: relative;
    }

    .logo {
        text-align: center;
        margin-bottom: 5px;
        flex: 0 0 auto;
    }

    .logo a {
        font-size: 22px;
        justify-content: center;
    }

    .search-bar {
        width: 100%;
        max-width: 100%;
        margin: 0;
        order: 2;
    }

    .search-bar input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 10px 12px;
        min-width: 0;
    }

    .search-btn {
        padding: 10px 15px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .header-actions {
        justify-content: center;
        gap: 6px;
        order: 3;
        flex-wrap: wrap;
        width: 100%;
        overflow: hidden;
    }

    .icon-link {
        font-size: 12px;
        padding: 5px 8px;
        white-space: nowrap;
        background: #f3f4f6;
        border-radius: 4px;
    }

    .cart-icon {
        font-size: 20px;
    }

    /* Hide some header elements on mobile */
    .header-actions .icon-link:nth-child(1),
    .header-actions .icon-link:nth-child(2) {
        display: none;
    }

    /* Page Titles */
    .page-title {
        font-size: 22px;
        margin-bottom: 15px;
    }

    /* Section Titles */
    .section-title {
        font-size: 18px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    /* Main Content Mobile */
    .main-content {
        padding: 0 0 20px 0;
    }
    
    .product-section {
        margin-bottom: 30px;
    }

    .free-shipping-badge {
        display: none;
    }

    .main-nav {
        padding: 10px 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .desktop-menu {
        display: none;
    }

    /* Top Bar Mobile */
    .top-bar {
        font-size: 12px;
        padding: 6px 0;
    }

    .top-bar .container {
        flex-wrap: wrap;
        gap: 5px;
    }

    .top-bar-left span {
        display: block;
        text-align: center;
        width: 100%;
    }

    .top-bar-right {
        display: flex;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .top-bar-right a {
        font-size: 11px;
        margin: 0;
    }

    .hero-banner {
        height: 300px;
        margin-bottom: 25px;
        padding: 20px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 22px;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    .btn-primary {
        padding: 12px 25px;
        font-size: 14px;
    }

    /* Brand Logos Mobile */
    .brand-carousel {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .brand-item {
        font-size: 12px;
        padding: 8px 12px;
        background: #fff;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }

    .cart-item-quantity,
    .cart-item-total,
    .cart-item-remove {
        grid-column: 2;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-middle-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-columns {
        gap: 20px;
    }

    .brand-logos {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .top-bar {
        padding: 4px 0;
        font-size: 11px;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 3px;
        align-items: center;
    }
    
    .top-bar-left span {
        font-size: 10px;
    }
    
    .top-bar-right a {
        font-size: 10px;
    }
    
    /* Header 480px */
    .logo a {
        font-size: 20px;
    }
    
    .search-bar input {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .search-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .header-actions {
        gap: 5px;
    }
    
    /* Hero 480px */
    .hero-banner {
        height: 250px;
        margin-bottom: 20px;
    }
    
    .hero-content h1 {
        font-size: 18px;
        line-height: 1.5;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* Brand 480px */
    .brand-logos {
        padding: 15px 0;
    }
    
    .brand-item {
        font-size: 10px;
        padding: 6px 10px;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .product-card {
        margin-bottom: 0;
    }
    
    .product-card img {
        height: 180px;
    }

    .product-brand {
        font-size: 10px;
        padding: 8px 10px 3px;
    }
    
    .product-rating {
        font-size: 10px;
        padding: 0 10px;
    }

    .product-name {
        font-size: 13px;
        padding: 6px 10px;
    }

    .product-price {
        padding: 0 10px 6px;
    }
    
    .current-price {
        font-size: 14px;
    }
    
    .old-price {
        font-size: 11px;
    }

    .product-actions {
        padding: 10px;
        flex-direction: column;
        gap: 8px;
    }

    .btn-quick-view, .btn-add-cart {
        padding: 8px;
        font-size: 11px;
        width: 100%;
    }

    .payment-actions {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }

    /* Footer 480px */
    .footer-top {
        padding: 25px 0;
    }
    
    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .footer-col h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .footer-col ul li {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .footer-middle {
        padding: 25px 0;
    }
    
    .footer-logo {
        font-size: 20px;
    }
    
    .footer-about p {
        font-size: 12px;
    }
    
    .newsletter-form input {
        padding: 8px;
        font-size: 14px;
    }
    
    .newsletter-form button {
        padding: 8px 15px;
        font-size: 12px;
    }

    .footer-bottom {
        padding: 12px 0;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .copyright p {
        font-size: 11px;
    }
    
    .payment-methods {
        font-size: 12px;
    }

    /* Login Page Mobile Styles */
    .login-page {
        padding: 30px 0;
        min-height: auto;
    }

    .login-container {
        padding: 30px 20px;
        margin: 20px 15px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .login-tabs {
        margin-bottom: 25px;
    }

    .login-tabs .tab-btn {
        padding: 12px;
        font-size: 14px;
    }

    .auth-form h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

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

    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .form-group input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    .forgot-password {
        font-size: 13px;
    }

    .btn-primary.btn-full {
        padding: 14px;
        font-size: 16px;
    }

    .social-login {
        margin-top: 25px;
        padding-top: 25px;
    }

    .social-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-social {
        padding: 12px;
        font-size: 14px;
    }

    /* Contact Page Mobile */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-card {
        padding: 20px;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Cart Page Mobile */
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary-sidebar {
        position: static;
        margin-top: 30px;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
        padding: 15px;
    }

    .cart-item-image {
        grid-row: 1;
    }

    .cart-item-info {
        grid-column: 2;
    }

    .cart-item-quantity,
    .cart-item-total,
    .cart-item-remove {
        grid-column: 2;
        margin-top: 10px;
    }

    /* Checkout Page Mobile */
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .order-summary-card {
        position: static;
        margin-top: 30px;
    }

    .checkout-section {
        padding: 20px;
    }

    /* Product Detail Mobile */
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-title {
        font-size: 24px;
    }

    .product-options {
        margin: 20px 0;
    }

    .product-actions-detail {
        margin: 20px 0;
    }

    /* Blog Mobile */
    .blog-layout,
    .blog-detail-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        margin-top: 30px;
    }

    .blog-title {
        font-size: 20px;
    }

    /* About Page Mobile */
    .about-hero {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .values-grid,
    .stats-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* Payment Result Mobile */
    .payment-result-card {
        padding: 30px 20px;
        margin: 20px 15px;
    }

    .payment-actions {
        flex-direction: column;
    }

    .btn-secondary {
        width: 100%;
    }
}

