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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #ecf0f1;
    --white: #ffffff;
    --border-color: #dfe6e9;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

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

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

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

/* ===== Header ===== */
#header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.header-search {
    flex: 1;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.header-search-input {
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    transition: var(--transition);
}

.header-search-input::placeholder {
    color: var(--text-light);
}

.header-search-input:focus {
    border-color: var(--border-color);
    box-shadow: none;
}

.header-search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    z-index: 1001;
    max-height: 320px;
    overflow-y: auto;
}

.header-search-dropdown.is-open {
    display: block;
}

.header-search-empty {
    padding: 14px 12px;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

.header-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header-search-item:last-child {
    border-bottom: none;
}

.header-search-item:hover {
    background: var(--bg-light);
}

.header-search-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.header-search-item-info {
    flex: 1;
    min-width: 0;
}

.header-search-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-search-item-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-img {
    display: block;
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo a {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

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

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

.cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.cart-link:hover {
    color: var(--secondary-color);
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.cart-text {
    font-weight: 500;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Mobile slide-in menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    pointer-events: none;
}

.mobile-menu.is-open {
    pointer-events: auto;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu.is-open .mobile-menu-overlay {
    opacity: 1;
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    background: var(--white);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
}

.mobile-menu.is-open .mobile-menu-panel {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.mobile-menu-close:hover {
    color: var(--secondary-color);
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    padding: 60px 24px 24px;
    gap: 4px;
}

.mobile-menu-nav a {
    padding: 14px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    transition: color 0.2s, background 0.2s;
}

.mobile-menu-nav a:hover {
    color: var(--accent-color);
}

.mobile-menu-nav a:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-menu.is-open {
        display: none;
    }
}

.mobile-menu-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.mobile-menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

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

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

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #2980b9;
}

/* ===== Hero Section ===== */
#hero-section {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-carousel-wrap {
    position: relative;
    width: 100%;
    min-height: 420px;
    height: 55vh;
    max-height: 560px;
}

.hero-carousel-wrap .hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-carousel-wrap .hero-slide {
    background-size: cover;
    background-position: center;
}

.hero-static {
    display: flex;
    justify-content: center;
}

.hero-static-image-wrap {
    position: relative;
    width: 100%;
    max-width: 1200px;
}

.hero-static-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-caption {
    position: absolute;
    bottom: 20%;
    right: 20%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 14px;
    max-width: 490px;
}

.hero-caption-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.25;
    letter-spacing: 0.3px;
}

.hero-caption-desc {
    margin: 0 0 1.25rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-dark);
    opacity: 0.95;
}

.hero-caption-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-caption-buttons .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    cursor: pointer;
}

.btn-hero-contact {
    background-color: #e74c3c;
    color: white;
    border: 2px solid #e74c3c;
    cursor: pointer;
}

.btn-hero-contact:hover {
    background-color: #d6685c;
    color: white;
    border-color: #d6685c;
}

.hero-carousel {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide:not(.active) {
    pointer-events: none;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

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

.hero-content {
    color: var(--white);
    max-width: 600px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.hero-indicators .indicator.active {
    background-color: var(--white);
    width: 30px;
    border-radius: 6px;
}

/* ===== Section Titles ===== */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ===== Sections ===== */
section {
    padding: 40px 0;
}

#catalog-section {
    background-color: var(--bg-light);
}

#deals-section {
    background-color: var(--white);
}

#about-section {
    background-color: var(--bg-light);
}

#reviews-section {
    background-color: var(--white);
}

#contact-section {
    background-color: var(--bg-light);
}

#blog-section {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.blog-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.blog-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e74c3c;
    margin-bottom: 20px;
    line-height: 1.4;
}

.blog-content {
    color: var(--text-dark);
}

.blog-content p {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 1rem;
}

.blog-content p:last-child {
    margin-bottom: 0;
}

.blog-content ul {
    margin: 0 0 15px 0;
    padding-left: 1.25rem;
}

.blog-content li {
    margin-bottom: 0.35rem;
    line-height: 1.6;
}

/* ===== Product Grid ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 3rem;
}

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.product-header {
    display: flex;
    flex-direction: column;
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    padding: 10px;
    background-color: var(--white);
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0;
    padding: 0 20px 10px 20px;
    color: var(--primary-color);
    min-height: 3.6rem;
}

.product-footer {
    padding: 0 20px 20px 20px;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-info {
    padding: 20px;
    background-color: var(--white);
}

.product-type {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* ===== Product Rating ===== */
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.8rem;
}

.product-rating .star {
    font-size: 1.2rem;
    line-height: 1;
}

.product-rating .star.full {
    color: #ffc107;
}

.product-rating .star.half {
    background: linear-gradient(90deg, #ffc107 50%, #e0e0e0 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-rating .star.empty {
    color: #e0e0e0;
}

.product-rating .rating-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-left: 4px;
}

/* ===== Deal Prices ===== */
.deal-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.deal-price .old-price {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: line-through;
}

.deal-price .new-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e74c3c;
}

.no-deals-message {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    padding: 3rem 0;
}

.product-card .btn {
    width: 100%;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    color: var(--text-dark);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.pagination button:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.pagination button.active {
    background-color: #2c3e50;
    color: var(--white);
    border-color: #2c3e50;
}

/* ===== Catalog Page ===== */
.catalog-page {
    padding: 2rem 0 4rem;
    min-height: 60vh;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.catalog-sidebar {
    position: sticky;
    top: 100px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 1.25rem;
}

.catalog-sidebar-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.catalog-categories {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.catalog-category-link {
    display: block;
    padding: 0.6rem 0.75rem;
    color: var(--text-dark);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.catalog-category-link:hover {
    background: var(--bg-light);
    color: #000;
}

.catalog-category-link.active {
    background: #2c3e50;
    color: var(--white);
    font-weight: 600;
    border: 2px solid #2c3e50;
}

.catalog-category-link.active:hover {
    color: var(--white);
    opacity: 0.95;
    border-color: #2c3e50;
}

.catalog-main {
    min-width: 0;
    padding: 0 0 20px;
}

.catalog-page-title {
    margin-bottom: 1.5rem;
}

.catalog-empty-message {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    padding: 3rem 0;
}

@media (max-width: 968px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        position: static;
    }

    .catalog-categories {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .catalog-category-link {
        flex: 0 0 auto;
    }
}

@media (min-width: 969px) and (max-width: 1199px) {
    .catalog-main .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 500px) {
    .catalog-main .product-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Countdown Timer ===== */
.countdown-timer {
    text-align: center;
    margin-bottom: 3rem;
}

.timer-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.timer-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.time-unit {
    background-color: var(--white);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    min-width: 100px;
}

.time-unit span:first-child {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.time-unit .label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

.time-separator {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    align-self: center;
}

/* ===== Accordion ===== */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background-color: var(--white);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.accordion-header h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--secondary-color);
    transition: var(--transition);
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    display: none;
    padding: 0 25px 20px 25px;
    color: var(--text-light);
    line-height: 1.8;
}

.accordion-item.active .accordion-content {
    display: block;
}

/* ===== Reviews Section ===== */
.reviews-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    min-height: 300px;
}

.review-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.review-slide.active {
    opacity: 1;
    position: relative;
}

.review-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stars {
    font-size: 1.5rem;
    color: #f39c12;
    margin-bottom: 1rem;
}

.review-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.reviewer-name {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.review-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.review-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.review-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.review-indicators .indicator.active {
    background-color: var(--secondary-color);
    width: 25px;
    border-radius: 5px;
}

/* ===== Contact Form ===== */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.contact-form button {
    width: 100%;
}

/* ===== Footer ===== */
#footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px 0;
}

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

.footer-content .footer-column:nth-child(5) {
    grid-column: 1 / -1;
}

.footer-column h3,
.footer-column h4 {
    margin-bottom: 1rem;
}

.footer-logo {
    display: block;
    height: 44px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a:hover {
    color: var(--secondary-color);
}

.footer-column p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* ===== Product Detail Page ===== */
#product-detail-section {
    min-height: 400px;
    padding: 40px 0;
}

#product-detail-section img {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
}

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

.product-detail-image {
    width: 100%;
    max-width: 600px;
    max-height: 600px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: block;
    margin: 0 auto;
}

.product-detail-info h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-price-section {
    margin-bottom: 0.8rem;
}

.product-detail-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.8rem;
}

.product-rating .stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.product-rating .star {
    font-size: 1.2rem;
    color: #ddd;
    line-height: 1;
}

.product-rating .star.filled {
    color: #f39c12;
}

.product-rating .rating-count {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.2;
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.2rem;
}

.stock-icon {
    flex-shrink: 0;
}

.stock-text {
    font-size: 1rem;
    font-weight: 600;
    color: #27ae60;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1rem;
    width: fit-content;
}

.quantity-btn {
    width: 40px;
    height: 45px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-btn:hover {
    background-color: var(--bg-light);
}

.quantity-btn:active {
    background-color: var(--border-color);
}

.quantity-input {
    width: 60px;
    height: 45px;
    border: 1px solid var(--border-color);
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn-add-to-basket {
    width: 100%;
    max-width: 100%;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-add-to-basket:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.delivery-info {
    background-color: var(--bg-light);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.delivery-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.delivery-item:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.delivery-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.delivery-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.delivery-content strong {
    font-size: 1rem;
    color: var(--primary-color);
}

.delivery-content span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.delivery-link {
    font-size: 0.9rem;
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.delivery-link:hover {
    text-decoration: underline;
    color: #2980b9;
}

.delivery-methods {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.delivery-methods li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.delivery-methods li strong {
    color: var(--primary-color);
}

.product-description {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.product-description p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.product-tabs {
    margin-top: 3rem;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-button {
    padding: 15px 30px;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
}

.tab-button.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-content {
    display: none;
}

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

.tab-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.tab-content h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
}

.tab-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.tab-content ul {
    list-style: none;
    padding-left: 0;
}

.tab-content ul li {
    padding: 10px 0;
    color: var(--text-light);
    line-height: 1.8;
    position: relative;
    padding-left: 25px;
}

.tab-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

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

.info-list li {
    display: grid;
    grid-template-columns: 200px 1fr;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-list li::before {
    display: none;
}

.info-label {
    font-weight: 600;
    color: var(--primary-color);
}

.info-value {
    color: var(--text-light);
}

.loading-message {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2rem;
    color: var(--text-light);
}

.error-message {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

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

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 2001;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background-color: var(--bg-light);
    color: var(--secondary-color);
}

.modal-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Added to cart popup */
.modal-added-to-cart {
    text-align: center;
}

.modal-added-to-cart .added-to-cart-message {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.modal-added-to-cart .btn-view-cart {
    display: inline-block;
    text-decoration: none;
}

.order-form {
    width: 100%;
}

.order-form .form-group {
    margin-bottom: 1.5rem;
}

.order-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.order-form input,
.order-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.order-form input:focus,
.order-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.order-form button {
    width: 100%;
}

.order-form .form-group.has-error input,
.order-form .form-group.has-error textarea {
    border-color: #c0392b;
}

.order-form .error-text {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.875rem;
    color: #c0392b;
}

/* ===== Related Products Section ===== */
#related-products-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.related-products-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.related-products-wrapper {
    overflow: hidden;
    width: 100%;
}

.related-products-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.related-product-card {
    flex: 0 0 calc(25% - 22.5px);
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.related-product-card .product-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    padding: 10px;
    background-color: #fafafa;
}

.related-product-card .product-header {
    display: flex;
    flex-direction: column;
}

.related-product-card .product-name {
    min-height: auto;
}

.related-product-card .product-footer {
    padding: 0 20px 20px 20px;
}

.related-product-card .product-info {
    padding: 20px;
}

.slider-arrow {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--border-color);
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background-color: var(--bg-light);
}

.slider-arrow:disabled:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    border-color: var(--border-color);
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

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

    .hero-carousel-wrap {
        min-height: 320px;
        height: 45vh;
        max-height: 440px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .blog-grid {
        gap: 25px;
    }

    .related-product-card {
        flex: 0 0 calc(50% - 15px);
    }

    .product-detail-info h1 {
        font-size: 1.8rem;
    }

    .delivery-info {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .header-search {
        max-width: 160px;
    }

    .nav-menu {
        display: none;
    }

    .cart-link {
        margin-left: auto;
        margin-right: 15px;
    }

    .cart-text {
        display: none;
    }

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

    .section-title {
        font-size: 2rem;
    }

    #hero-section .hero-caption-title {
        font-size: 1.5rem;
    }
    #hero-section .hero-caption-desc {
        font-size: 0.9rem;
    }

    .timer-display {
        gap: 10px;
    }

    .time-unit {
        padding: 15px 20px;
        min-width: 80px;
    }

    .time-unit span:first-child {
        font-size: 2rem;
    }

    .tab-buttons {
        gap: 5px;
    }

    .tab-button {
        padding: 10px 15px;
        font-size: 0.95rem;
    }

    .info-list li {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card {
        padding: 25px;
    }

    .blog-title {
        font-size: 1.3rem;
    }

    .product-detail-info h1 {
        font-size: 1.6rem;
    }

    .product-detail-price {
        font-size: 1.5rem;
    }

    .delivery-content strong {
        font-size: 0.95rem;
    }

    .delivery-content span {
        font-size: 0.85rem;
    }

    .delivery-methods li {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 20px;
    }

    .review-card {
        padding: 20px;
    }

    .blog-card {
        padding: 20px;
    }

    .blog-title {
        font-size: 1.2rem;
    }

    .blog-content p {
        font-size: 0.95rem;
    }

    .related-product-card {
        flex: 0 0 100%;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .product-detail-info h1 {
        font-size: 1.4rem;
    }

    .product-detail-price {
        font-size: 1.3rem;
    }

    .delivery-info {
        padding: 12px;
    }

    .delivery-item {
        padding: 10px 0;
    }

    .quantity-btn {
        width: 35px;
        height: 40px;
        font-size: 1.3rem;
    }

    .quantity-input {
        width: 50px;
        height: 40px;
        font-size: 1rem;
    }

    .btn-add-to-basket {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* ===== Info Pages (Delivery Options, FAQs) ===== */
.info-content {
    max-width: 900px;
    margin: 0 auto;
}

.info-block {
    background-color: var(--white);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.info-block h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.info-block p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.info-block ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.info-block ul li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.info-block strong {
    color: var(--primary-color);
}

/* ===== Cart Page Styles ===== */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: #95a5a6;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cart-badge.has-items {
    background-color: #e74c3c;
}

#cart-section {
    padding: 60px 0 80px;
    min-height: 60vh;
}

.page-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

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

.empty-cart p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.cart-items-section {
    background: var(--white);
}

.cart-items-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.cart-items-list::-webkit-scrollbar {
    width: 8px;
}

.cart-items-list::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.cart-items-list::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 4px;
}

.cart-items-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    background: var(--white);
    transition: var(--transition);
}

.cart-item:hover {
    box-shadow: var(--shadow);
}

.cart-item-image-link {
    display: block;
    line-height: 0;
    cursor: pointer;
}

.cart-item-image-link .cart-item-image,
.cart-item-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.cart-item-name-link {
    color: inherit;
    text-decoration: none;
}

.cart-item-name-link:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

.cart-item-details .product-rating {
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--secondary-color);
    margin: 10px 0;
}

.cart-item-stock {
    color: #27ae60;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-item-stock::before {
    content: '✓';
    font-weight: bold;
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.cart-item-total {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--primary-color);
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

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

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.remove-item-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    margin-top: 10px;
}

.remove-item-btn:hover {
    color: #c0392b;
}

.order-summary {
    position: sticky;
    top: 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.order-summary h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.summary-item {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 16px;
}

.delivery-info {
    color: var(--text-light);
    font-size: 14px;
}

.delivery-threshold {
    font-size: 13px;
    color: var(--text-light);
    margin: 15px 0;
    padding: 10px;
    background: var(--bg-light);
    border-radius: 4px;
}

.grand-total {
    border-top: 2px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
    font-weight: bold;
    font-size: 20px;
}

.grand-total span:last-child {
    color: var(--secondary-color);
}

.btn-order {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
}

.modal-success {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #27ae60;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 20px;
}

.modal-confirm {
    text-align: center;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.modal-actions .btn {
    min-width: 120px;
}

.btn-secondary {
    background: #95a5a6;
    color: var(--white);
}

.btn-secondary:hover {
    background: #7f8c8d;
}

@media (max-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-controls {
        grid-column: 2;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .quantity-controls {
        margin-top: 0;
    }

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