/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #01CBE0;
    --secondary-color: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #00b3c7;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: #f0f0f0;
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-white {
    background-color: white;
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: #f0f0f0;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-block {
    width: 100%;
    display: block;
}

/* ===== HEADER ===== */
.header {
    background-color: white;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1000;
}

.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.contact-info span {
    margin-right: 20px;
}

.topbar-menu {
    display: flex;
    gap: 25px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.topbar-menu a {
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.topbar-menu a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.topbar-menu .topbar-text {
    color: white;
    font-weight: 500;
    white-space: nowrap;
}

.user-menu {
    display: flex;
    gap: 15px;
}

.user-menu a {
    color: white;
    white-space: nowrap;
}

.user-menu a:hover {
    text-decoration: underline;
}

/* ===== NAVBAR ===== */
.navbar {
    padding: 15px 0;
    background-color: white !important;
    position: sticky;
    top: 0;
    z-index: 1100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    width: 100%;
}

.navbar .container {
    max-width: 1400px;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1101;
}

.logo {
    margin-right: auto;
}

.logo img {
    height: 70px;
    width: auto;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger-menu span {
    width: 30px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2000;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links > li > a {
    color: var(--text-dark);
    font-weight: 600;
    padding: 10px 12px;
    position: relative;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    display: inline-block;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-links > li > a:hover {
    background-color: rgba(1, 203, 224, 0.1);
    max-width: none;
    overflow: visible;
    z-index: 100;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: var(--shadow);
    border-radius: 5px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 10px 0;
    z-index: 2000;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    padding: 0;
}

.submenu a {
    display: block;
    padding: 10px 20px;
}

.submenu a:hover {
    background-color: #f5f5f5;
}

/* ===== CART ICON ===== */
.cart-icon {
    position: relative;
}

.cart-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: white;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* ===== SLIDER ===== */
.slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-color: #000;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background-color: white;
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    display: none;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: white;
    transform: scale(1.2);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    min-height: 60vh;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), #00a8c0);
    color: white;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
}

/* ===== PRODUCTS GRID ===== */
.products-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background-color: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px var(--product-shadow-intensity, 8px) -2px var(--product-shadow-color, #01CBE0);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px calc(var(--product-shadow-intensity, 8px) * 1.75) -2px var(--product-shadow-color, #01CBE0);
}

.discount-badge-small {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--discount-badge-bg-color, #4CAF50);
    color: var(--discount-badge-text-color, #ffffff);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.discount-badge-small .discount-text {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.discount-badge-small .discount-percent {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.product-link {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card > .add-to-cart {
    margin: 0 20px 20px 20px;
    width: calc(100% - 40px);
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #ffffff;
    position: relative;
    box-shadow: 0 4px 12px -2px rgba(1, 203, 224, 0.4);
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.product-card:hover .product-image::before {
    opacity: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.product-model {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.product-features {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.product-features li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: white;
    font-weight: bold;
    font-size: 12px;
    background-color: var(--primary-color);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.product-footer {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding-top: 15px;
    gap: 10px;
}

.product-price-container {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.product-price {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
}

.product-price-old {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-price-sale {
    color: #e74c3c;
}

.product-discount {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

/* ===== PRODUCT DETAIL ===== */
.breadcrumb {
    background-color: #f5f5f5;
    padding: 15px 0;
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-detail {
    padding: 60px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    align-self: start;
}

.main-image {
    width: 100%;
    height: 500px;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.main-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
    z-index: 1;
    pointer-events: none;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.4s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: #f5f5f5;
}

.thumbnail:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 182, 240, 0.3);
}

.product-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.product-model-detail {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.product-price-detail {
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.product-price-detail .price {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
}

.product-price-detail .price-old {
    font-size: 28px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-price-detail .price-sale {
    color: #e74c3c;
}

.discount-badge {
    background-color: #e74c3c;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
}

.product-description {
    margin: 30px 0;
    font-size: 16px;
    line-height: 1.8;
}

.product-features-detail {
    margin: 30px 0;
}

.product-features-detail h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.product-features-detail ul li {
    padding: 10px 0;
    padding-left: 35px;
    position: relative;
    font-size: 15px;
}

.product-features-detail ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: white;
    font-weight: bold;
    font-size: 14px;
    background-color: var(--primary-color);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.product-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.product-actions .btn {
    flex: 1;
}

.product-specifications {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 60px;
}

.product-specifications h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.spec-item {
    padding: 15px;
    padding-left: 45px;
    background-color: #f5f5f5;
    border-radius: 5px;
    position: relative;
}

.spec-item::before {
    content: '✓';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
    background-color: var(--primary-color);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.spec-label {
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 5px;
}

.spec-value {
    color: var(--text-light);
}

.related-products {
    margin-top: 60px;
}

.related-products h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

/* ===== CART SIDEBAR ===== */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
    font-size: 24px;
}

.close-cart {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--text-light);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: bold;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    background-color: white;
    cursor: pointer;
    border-radius: 3px;
}

.quantity-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 20px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1500;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), #00a8c0);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* ===== CATEGORY PAGE ===== */
.category-section {
    padding: 40px 0;
}

.page-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.category-description {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.subcategories {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.subcategory-btn {
    padding: 12px 24px;
    background-color: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.subcategory-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: var(--text-light);
}

/* ===== FOOTER ===== */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-section ul li {
    padding: 8px 0;
}

.footer-section a {
    color: #ecf0f1;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
    color: white;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-link:hover {
    background-color: #00b3c7;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #95a5a6;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--scroll-to-top-bg-color, #01CBE0);
    color: var(--scroll-to-top-text-color, #ffffff);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* ===== SERVICES SECTION ===== */
.services-section .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .services-section .services-grid,
    .services-section > .container > div {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ===== LOGIN PAGE ===== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #00a8c0);
    padding: 20px;
}

.login-box {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    max-height: 70px;
    margin: 0 auto;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.alert {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #fee;
    color: #c00;
    border: 1px solid #fcc;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    color: var(--primary-color);
}

.login-footer a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large tablets and small desktops */
@media (max-width: 1200px) and (min-width: 993px) {
    .nav-links {
        gap: 4px;
    }
    
    .nav-links > li > a {
        font-size: 11px;
        padding: 8px 8px;
        max-width: 130px;
        letter-spacing: 0.2px;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .logo img {
        height: 55px;
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
    
    .logo {
        position: absolute;
        left: 50px;
    }
    
    .logo img {
        height: 50px;
    }
    
    .navbar-content {
        justify-content: flex-end;
    }
    
    .nav-menu {
        position: fixed;
        top: 137px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 137px);
        background-color: white;
        flex-direction: column;
        padding: 30px;
        box-shadow: var(--shadow);
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links > li > a {
        display: block;
        padding: 15px 0;
        font-size: 14px;
        text-transform: none;
        max-width: none;
        letter-spacing: normal;
        background-color: transparent !important;
    }
    
    .nav-links a {
        display: block;
        padding: 15px 0;
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: #f5f5f5;
        display: none;
        margin-top: 10px;
    }
    
    .has-submenu.active .submenu {
        display: block;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .product-model {
        font-size: 12px;
    }
    
    .product-features {
        font-size: 11px;
    }
    
    .product-features li {
        padding: 3px 0;
        padding-left: 18px;
    }
    
    .product-features li::before {
        width: 14px;
        height: 14px;
        font-size: 10px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-card > .add-to-cart {
        margin: 0 15px 15px 15px;
        width: calc(100% - 30px);
        font-size: 14px;
        padding: 10px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .slider {
        height: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .cart-items {
        padding: 15px;
        padding-bottom: 10px;
    }
    
    .cart-footer {
        padding: 15px 20px;
        padding-bottom: max(25px, env(safe-area-inset-bottom, 25px));
        background-color: white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    
    .cart-total {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    #checkoutBtn {
        padding: 16px 30px;
        font-size: 16px;
        width: 100%;
    }
    
    /* Product Detail Mobile */
    .product-detail {
        padding: 30px 0;
    }
    
    .product-detail-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .product-gallery {
        position: relative !important;
        top: auto !important;
        max-height: none !important;
        order: 1 !important;
        width: 100% !important;
    }
    
    .product-details {
        order: 2 !important;
        width: 100% !important;
    }
    
    .main-image {
        height: 300px;
    }
    
    .thumbnail-images {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }
    
    .thumbnail {
        flex-shrink: 0;
    }
    
    .product-title {
        font-size: 22px;
    }
    
    .product-model-detail {
        font-size: 14px;
    }
    
    .product-price-detail .price {
        font-size: 26px;
    }
    
    .product-price-detail .price-old {
        font-size: 20px;
    }
    
    .discount-badge {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-actions .btn {
        width: 100%;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr !important;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-name {
        font-size: 16px;
    }
    
    .product-model {
        font-size: 13px;
    }
    
    .product-features {
        font-size: 12px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-card > .add-to-cart {
        margin: 0 15px 15px 15px;
        width: calc(100% - 30px);
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .slider {
        height: 200px;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    /* Product Detail Mobile Small */
    .product-detail {
        padding: 20px 0;
    }
    
    .product-detail-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .product-gallery {
        position: relative !important;
        top: auto !important;
        max-height: none !important;
        order: 1 !important;
    }
    
    .product-details {
        order: 2 !important;
    }
    
    .main-image {
        height: 250px;
    }
    
    .thumbnail-images {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .thumbnail {
        flex-shrink: 0;
        width: 70px;
        height: 70px;
    }
    
    .product-title {
        font-size: 18px;
    }
    
    .product-model-detail {
        font-size: 13px;
    }
    
    .product-price-detail {
        margin: 20px 0;
    }
    
    .product-price-detail .price {
        font-size: 22px;
    }
    
    .product-price-detail .price-old {
        font-size: 16px;
    }
    
    .discount-badge {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .product-description {
        font-size: 14px;
    }
    
    .product-features-detail h3 {
        font-size: 16px;
    }
    
    .product-features-detail ul li {
        font-size: 13px;
        padding: 8px 0;
        padding-left: 35px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 30px;
    }
    
    .product-actions .btn {
        width: 100% !important;
    }
    
    .specs-grid {
        grid-template-columns: 1fr !important;
    }
    
    .product-specifications {
        padding: 20px;
    }
    
    .product-specifications h2 {
        font-size: 20px;
    }
}
