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

:root {
    --primary-color: #FFC107;
    --primary-dark: #FFA000;
    --secondary-color: #FF3D57;
    --dark-bg: #000000;
    --darker-bg: #1a1a1a;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --border-color: #e0e0e0;
    --bg-light: #F5F5F5;
    --white: #FFFFFF;
    --star-color: #FFC107;
    --gray-gradient-start: #4a4a4a;
    --gray-gradient-end: #2a2a2a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

button {
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.breadcrumb-section {
    background-color: var(--bg-light);
    padding: 15px 0;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    list-style: none;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    color: var(--text-gray);
    font-size: 14px;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 10px;
    color: var(--text-light);
}

.breadcrumb li a {
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.breadcrumb li a:hover {
    color: var(--primary-color);
}

.breadcrumb li:last-child {
    color: var(--text-dark);
    font-weight: 500;
}

/* ====================================
   Top Bar
   ==================================== */
.top-bar {
    background-color: var(--primary-color);
    padding: 8px 0;
    font-size: 14px;
}

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

.top-bar-left .auth-link {
    color: var(--text-dark);
    font-weight: 500;
}

.top-bar-right .phone-number {
    color: var(--text-dark);
}

.top-bar-right .phone-number i {
    margin-right: 5px;
}

/* ====================================
   Header
   ==================================== */
.main-header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo h1 {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
}

.search-bar {
    display: flex;
    flex: 1;
    max-width: 600px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.category-select {
    padding: 12px 15px;
    border: none;
    border-right: 1px solid var(--border-color);
    background-color: var(--white);
    color: var(--text-dark);
    cursor: pointer;
    min-width: 140px;
    font-size: 14px;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-btn {
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--text-dark);
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.search-btn:hover {
    background-color: var(--primary-dark);
}

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

.cart-icon,
.account-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    position: relative;
}

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

.cart-badge {
    position: absolute;
    top: -8px;
    right: 50px;
    background-color: var(--primary-color);
    color: var(--text-dark);
    border-radius: 12px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    font-size: 24px;
    color: var(--text-dark);
}

/* ====================================
   Navigation
   ==================================== */
.main-nav {
    background-color: var(--dark-bg);
    padding: 0;
}

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

.category-dropdown {
    position: relative;
}

.category-btn {
    background-color: var(--darker-bg);
    color: var(--white);
    padding: 15px 25px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}

.category-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.category-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 250px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.category-dropdown:hover .category-menu {
    display: block;
}

.category-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.category-menu a:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    gap: 30px;
    flex: 1;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    padding: 15px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-phone {
    color: var(--white);
    font-size: 14px;
}

.nav-phone i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* ====================================
   Hero Section
   ==================================== */
.hero-section {
    padding: 30px 0;
    background-color: var(--bg-light);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

.hero-slider {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    border-radius: 8px;
    padding: 40px;
    position: relative;
    border: 1px solid #FFC107;
}

.hero-slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px;
}

.hero-text {
    padding-right: 20px;
}

.hero-subtitle {
    color: #cccccc;
    font-size: 14px;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 32px;
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.3;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 40px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
}

.dot.active {
    background-color: var(--primary-color);
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.promo-card {
    padding: 25px;
    border-radius: 8px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.promo-card.blue {
    background: linear-gradient(135deg, #4a4a4a 0%, #3a3a3a 100%);
    border: 1px solid #FFC107;
}

.promo-card.light-blue {
    background: linear-gradient(135deg, #5a5a5a 0%, #4a4a4a 100%);
    border: 1px solid #FFA000;
}

.promo-card h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--white);
}

.promo-card .discount {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.promo-card img {
    width: 100%;
    margin-top: 10px;
}

/* ====================================
   Buttons
   ==================================== */
.btn {
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #6e6e6e 0%, #4a4a4a 100%);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a5a5a 0%, #3a3a3a 100%);
}

.btn-cart {
    background: linear-gradient(135deg, #6e6e6e 0%, #4a4a4a 100%);
    color: var(--white);
    width: 100%;
    padding: 10px;
}

.btn-cart:hover {
    background: linear-gradient(135deg, #5a5a5a 0%, #3a3a3a 100%);
}

/* ====================================
   Features Section
   ==================================== */
.features-section {
    padding: 40px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--white);
}

.feature-icon {
    font-size: 40px;
    color: var(--primary-color);
}

.feature-text h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.feature-text p {
    font-size: 13px;
    color: var(--text-gray);
}

/* ====================================
   Products Section
   ==================================== */
.products-section {
    padding: 40px 0;
}

.products-carousel {
    position: relative;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.product-card__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card__link:hover {
    text-decoration: none;
}

.product-card__form {
    padding: 0 20px 20px 20px;
    margin: 0;
}

.product-card__form .btn-cart {
    width: 100%;
}

.product-image {
    padding: 20px;
    background-color: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    min-height: 40px;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 8px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
    color: var(--star-color);
    font-size: 14px;
}

.product-rating span {
    color: var(--text-gray);
    font-size: 13px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--white);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

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

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

/* ====================================
   Categories Section
   ==================================== */
.categories-section {
    padding: 40px 0;
    background-color: var(--bg-light);
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-item {
    background-color: var(--white);
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-icon {
    margin-bottom: 15px;
}

.category-icon img {
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.category-item h4 {
    font-size: 14px;
    color: var(--text-dark);
}

/* ====================================
   Promotional Banner
   ==================================== */
.promo-banner {
    padding: 40px 0;
    background-color: var(--white);
}

.promo-banner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #2a2a2a 100%);
    padding: 50px;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
}

.promo-text {
    padding: 20px;
}

.promo-label {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.promo-title {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.promo-title span {
    color: var(--white);
}

.promo-subtitle {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 25px;
    font-weight: 600;
}

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

/* ====================================
   Recommended Section
   ==================================== */
.recommended-section {
    padding: 40px 0;
    background-color: var(--bg-light);
}

.section-header {
    margin-bottom: 30px;
}

/* ====================================
   Product Tabs Section
   ==================================== */
.product-tabs-section {
    padding: 40px 0;
    background-color: var(--white);
}

.tabs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tab-column {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.tab-header h3 {
    font-size: 18px;
    color: var(--text-dark);
}

.see-more {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
}

.see-more:hover {
    color: var(--primary-dark);
}

.tab-products {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mini-product {
    display: flex;
    gap: 15px;
    background-color: var(--white);
    padding: 15px;
    border-radius: 8px;
}

.mini-product img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.mini-product-info h4 {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

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

.current-price {
    font-size: 16px;
    font-weight: bold;
    color: #000000;
}

.old-price {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
}

.mini-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--star-color);
    font-size: 12px;
}

.mini-rating span {
    color: var(--text-gray);
    font-size: 12px;
}

/* ====================================
   Footer
   ==================================== */
.main-footer {
    background-color: var(--dark-bg);
    color: var(--white);
}

.footer-top {
    padding: 50px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 600;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #cccccc;
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-column p {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.8;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: #cccccc;
    font-size: 14px;
}

.contact-info li i {
    color: var(--primary-color);
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 16px;
}

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

.footer-bottom {
    background-color: var(--darker-bg);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: #cccccc;
    font-size: 14px;
}

/* ====================================
   Responsive Design
   ==================================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-sidebar {
        flex-direction: row;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .tabs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-banner-content {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .top-bar-content {
        font-size: 12px;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .logo {
        order: 1;
    }

    .mobile-menu-toggle {
        display: block;
        order: 3;
    }

    .search-bar {
        order: 4;
        width: 100%;
        max-width: 100%;
    }

    .header-actions {
        order: 2;
    }

    .category-select {
        min-width: 100px;
        font-size: 12px;
    }

    .search-btn {
        padding: 12px 20px;
    }

    .cart-text,
    .account-text {
        display: none;
    }

    .nav-content {
        flex-direction: column;
        align-items: stretch;
    }

    .category-btn {
        width: 100%;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

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

    .nav-links a {
        padding: 12px 15px;
    }

    .nav-phone {
        display: none;
    }

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

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

    .hero-sidebar {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }


    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .promo-banner-content {
        padding: 30px 20px;
    }

    .promo-title {
        font-size: 36px;
    }

    .tabs-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 20px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-title {
        font-size: 28px;
    }

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

/* ====================================
   Utility Classes
   ==================================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.pt-20 {
    padding-top: 20px;
}

.pb-20 {
    padding-bottom: 20px;
}
/* ====================================
   Cart Tooltip
   ==================================== */
.cart-icon {
    position: relative;
}

.cart-tooltip {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    padding: 12px;
    display: none;
    z-index: 2000;
}

.cart-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 18px;
    width: 16px;
    height: 16px;
    background: var(--white);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    transform: rotate(45deg);
}

.cart-tooltip.show {
    display: block;
}

.cart-tooltip .items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 240px;
    overflow-y: auto;
}

.cart-tooltip .item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.cart-tooltip .thumb {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    background: #fafafa;
}

.cart-tooltip .thumb img { width: 100%; height: 100%; object-fit: cover; }

.cart-tooltip .meta { flex: 1; min-width: 0; }
.cart-tooltip .name { font-size: 13px; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-tooltip .price { font-size: 13px; color: var(--text-gray); margin-top: 2px; }

/* Extra info about remaining products */
.cart-tooltip .more-info {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-light);
}

.cart-tooltip .cta {
    margin-top: 12px;
}

.cart-tooltip .cta .btn-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 480px) {
    .cart-tooltip { right: -40px; width: 90vw; }
}

/* ====================================
   Carousel: hide scrollbar helper
   ==================================== */
.products-carousel .products-grid.no-scrollbar {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none;    /* Firefox */
}
.products-carousel .products-grid.no-scrollbar::-webkit-scrollbar {
    display: none;            /* Chrome, Safari, Opera */
}
