@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Special+Gothic:wght@400..700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0046be;
    --primary-dark: #003d99;
    --primary-light: #1e5bc6;
    --secondary-color: #0066cc;
    --accent-color: #ffdb00;
    --success-color: #10b981;
    --danger-color: #e31837;
    --warning-color: #ff6600;
    --dark-color: #1a1a1a;
    --light-color: #f5f6fa;
    --white: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #585858;
    --text-light: #8e8e8e;
    --border-color: #d6d6d6;
    --border-light: #e8e8e8;
    --gradient-accent: linear-gradient(135deg, #ffdb00 0%, #ff6600 100%);
    --gradient-hero: linear-gradient(135deg, #0046be 0%, #1e5bc6 50%, #0066cc 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-blue: 0 10px 25px -5px rgb(0 70 190 / 0.25);
}

body {
    font-family: "Special Gothic", sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--light-color);
    overflow-x: hidden;
}

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

/* =========================
   New Two-Row Site Header
   ========================= */
.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.header-center {
    display: flex;
    justify-content: center;
}

.header-center .header-search {
    display: flex;
    background: var(--light-color);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    overflow: hidden;
    max-width: 520px;
    width: 100%;
}

.header-search input[type="text"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.7rem 1rem;
    outline: none;
}

.header-search button {
    border: none;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

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


.header-actions .link {
    text-decoration: none;
}

.auth-links .link {
    text-decoration: none;
    font-weight: 500;
    color: var(--text-primary);
}

.cart-link {
    text-decoration: none;
    font-weight: 500;
    color: var(--text-primary);
}

.auth-links .sep {
    color: var(--text-light);
    margin: 0 2px;
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
}

.cart-link .cart-badge {
    position: absolute;
    top: -16px;
    left: 5px;
}

.user-menu {
    position: relative;
}

.user-toggle {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    overflow: hidden;
    display: none;
    min-width: 180px;
}

.user-dropdown.open {
    display: block;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.9rem;
    color: var(--text-primary);
    text-decoration: none;
}

.user-dropdown a:hover {
    background: var(--light-color);
}

.header-divider {
    height: 1px;
    background: var(--border-light);
}

.header-bottom {
    padding: 8px 50px;
    background-color: var(--brand-primary);
}

.header-bottom .header-quote {
    font-weight: 500;
    color: var(--ink);
}
.header-quote a{
    text-decoration: none;
    color: #000;
}
.header-quote a:hover {
    text-decoration: none;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

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

    .header-right {
        justify-content: space-between;
    }

    .header-top {
        gap: 0.8rem;
    }

    .header-bottom {
        padding: 8px 15px;
    }

    .cart-link .cart-badge {
        top: -14px;
    }
}

/* Header Styles */
.header {
    background: var(--brand-primary);
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 70, 190, 0.15);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    width: auto;
    height: 3rem;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.nav-menu li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 0.2rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: var(--brand-primary);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.cart-badge {
    background: var(--accent-color);
    color: var(--text-primary);
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    margin-left: 0.25rem;
    font-weight: 700;
    line-height: normal;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--light-color);
    cursor: pointer;
}

/* Hero Section with Carousel */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

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

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

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

.hero-slide:nth-child(1) {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)),
        url('../images/printer-banner-3.webp') center/cover no-repeat;
}

.hero-slide:nth-child(2) {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)),
        url('../images/printer-banner-2.webp') center/cover no-repeat;
}

.hero-slide:nth-child(3) {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)),
        url('../images/printer-banner-1.webp') center/cover no-repeat;
}

.hero-content {
    max-width: 935px;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 600;
    max-width: 800px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--brand-primary);
    color: var(--light-color);
    padding: 0.4rem 2rem;
    border: none;
    border-radius: 0.3rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    justify-content: center;
}

.btn-primary:hover {
    background: #007d88;
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background-color: #000;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

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

.btn-update {
    background-color: #3498db;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 12px 12px;
}

.btn-remove {
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 10px 12px;
}

.hero-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.hero-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-nav-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 2.5rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 600;
    background-clip: text;
}

/* .section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--brand-primary);
    margin: -0.2rem 0 1rem;
    border-radius: 2px;
} */

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    /* margin-top: 3rem; */
}

.feature-card {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--brand-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    padding: 15px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    /* text-align: justify; */
}

/* Categories Section */
.categories {
    padding: 2rem 0;
    background: var(--light-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.category-card {
    background: white;
    border-radius: 0.5rem;
    padding: 0.8rem;
    text-align: center;
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--brand-primary);
    border-radius: 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
}

.category-icon img {
    width: 100%;
    height: 100%;
    padding: 10px;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.category-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 15px;
}

.btn-category {
    background: var(--brand-primary);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-category:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Products Section */
.featured-products {
    padding: 2rem 0;
    /* background: white; */
}

.product-carousel {
    position: relative;
    /* margin-top: 3rem; */
    overflow: hidden;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.products-grid .btn-primary {
    padding: 0.7rem;
    line-height: normal;
}

/* .products-grid .product-card {
    max-width: 300px;
} */

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.page-link {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--white);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.page-link:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.page-link.active {
    background: var(--brand-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-blue);
}

.page-link.disabled {
    pointer-events: none;
    opacity: 0.5;
}

@media (max-width: 480px) {
    .page-link {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

.product-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 1rem;
    padding: 10px 0;
}

.product-card {
    min-width: 240px;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
    padding: 10px;
    padding-bottom: 0;
}

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

.product-info {
    padding: 1rem;
    padding-top: 0;
}

.product-info h3 a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1rem;
}

.product-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.product-brand {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.2rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: normal;
    height: 50px;
}

.product-name a {
    color: var(--text-primary);
    text-decoration: none;
}

.product-name a:hover {
    color: var(--brand-primary);
    text-decoration: underline;
    line-height: normal;
}

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

.add-to-cart-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.quantity-input {
    width: 60px;
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    text-align: center;
}

.add-to-cart-btn {
    flex: 1;
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    box-shadow: 0 0 1px 5px rgb(0 0 0 / 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

@media (max-width: 480px) {
    .product-track {
        display: flex;
        flex-direction: column;
    }

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

/* FAQ Section */
.faq {
    padding: 2rem 0;
    background: var(--light-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 5px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border: 4px solid transparent;
    transition: all 0.3s ease;
}

.faq-item:hover,
.faq-item.active {
    border-color: #1e88e5e6;
}

.faq-item.active .faq-icon,
.faq-item:hover .faq-icon {
    color: #1e88e5;
}

.faq-question {
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-question:hover,
.faq-item.active .faq-question {
    color: #1e88e5;
}


.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    display: none;
    line-height: 1.6;
}

.faq-answer.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 0rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.2rem;
    font-size: 1.25rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 2;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 1rem 1rem;
    }

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

    .hero-content h1 {
        font-size: 2.5rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .product-card {
        min-width: 280px;
    }

    .carousel-nav {
        display: none;
    }

    .container {
        padding: 0 0.5rem;
    }

    .add-to-cart-form {
        flex-direction: column;
    }

    .quantity-input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 500px;
    }

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

    .product-card {
        min-width: 250px;
    }

    .categories,
    .featured-products,
    .why-choose-us,
    .faq {
        padding: 3rem 0;
    }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.preloader.hide {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--brand-primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Fixed Appointment Button */
.fixed-appointment-btn {
    position: fixed;
    bottom: 20px;
    left: 30px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 8px 25px rgba(238, 90, 36, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.fixed-appointment-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(238, 90, 36, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(238, 90, 36, 0.4);
    }

    50% {
        box-shadow: 0 8px 25px rgba(238, 90, 36, 0.6), 0 0 0 10px rgba(238, 90, 36, 0.1);
    }

    100% {
        box-shadow: 0 8px 25px rgba(238, 90, 36, 0.4);
    }
}

/* Appointment Page */
.appointment-page {
    /* margin-top: 90px; */
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem 0;
}

.appointment-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    color: var(--brand-primary);
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: var(--brand-secondary);
}

.appointment-form h2 {
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    background: var(--brand-primary);
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .fixed-appointment-btn {
        bottom: 30px;
        left: 15px;
        padding: 12px 20px;
        font-size: 0.9rem;
        width: fit-content;
    }

    .appointment-form-container {
        margin: 0 1rem;
        padding: 2rem;
    }
}

.add-to-cart-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.add-to-cart-form input[type="number"] {
    width: 50px;
    padding: 10px 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.quantity-controls input {
    width: 70px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Main Content */
.main-content {
    min-height: 60vh;
    padding: 2rem 0;
    /* margin-top: 80px; */
}

.page-title {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

/* Filters Section */
.filters-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-box {
    margin-bottom: 1rem;
}

.search-box form {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.search-box button {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.category-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-filters a {
    padding: 2px 16px;
    background: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

.category-filters a:hover,
.category-filters a.active {
    background: var(--brand-primary);
    color: white;
}

/* Cart Styles */
.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.cart-items {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    align-items: center;
}

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

.item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.item-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.item-price,
.item-stock {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    margin: 0;
}

.quantity-form {
    display: flex;
    align-items: center;
    gap: 20px;
}

.quantity-form input {
    width: 50px;
    padding: 10px 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.item-subtotal p {
    font-weight: bold;
    color: #e74c3c;
    font-size: 1.1rem;
}

.cart-summary {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.summary-box h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-line.total {
    padding-top: 1rem;
    border-top: 2px solid #e9ecef;
    font-size: 1.2rem;
}

.cart-actions {
    margin-top: 1.5rem;
}

.cart-actions .btn-primary {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

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

.empty-cart {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.empty-cart h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.empty-cart p {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Auth Forms */
.auth-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 1rem;
    border-radius: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.form-group textarea {
    resize: vertical;
    height: 100px;
}

.form-actions {
    margin-top: 1.5rem;
}

.form-actions button {
    width: 100%;
    margin-bottom: 1rem;
    padding: 12px;
}

/* No products message */
.no-products {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu ul {
        justify-content: flex-start;
        flex-direction: column;
        gap: 1rem;
        align-items: start;
    }

    .nav-menu ul li a {
        color: #000;
    }

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

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

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

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

    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.5rem;
    }

    .item-image {
        justify-self: center;
    }

    .filters-section {
        text-align: center;
    }

    .category-filters {
        justify-content: center;
    }
}

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

    .hero {
        padding: 0;
    }

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

    .categories,
    .featured-products {
        padding: 2rem 0;
    }
}

/* Contact Section Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 40px auto;
    max-width: 1000px;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-form-card h3,
.contact-info-card h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: #333;
    border-left: 4px solid #007BFF;
    padding-left: 10px;
}

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

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 0.95rem;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.contact-info-list li {
    margin-bottom: 12px;
    font-size: 1rem;
    color: #444;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-list li a{
    color: #444;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-list i {
    color: var(--brand-primary);
    font-size: 1.2rem;
}

.contact-grid .btn-primary {
    padding: 0.8rem 2rem;
}

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

/* Product Details Page */
.breadcrumb {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

.breadcrumb a {
    color: var(--brand-primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-details {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
    gap: 2rem;
}

.product-details-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.product-details-info .product-title {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.product-details-info .product-brand,
.product-details-info .product-category {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.product-details-info .product-price {
    font-size: 2rem;
    color: var(--brand-primary);
    font-weight: 800;
    margin: 0.75rem 0 0.5rem;
}

.product-details-info .product-stock {
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-details-info .product-stock.in-stock {
    color: var(--success-color);
}

.product-details-info .product-stock.out-of-stock {
    color: var(--danger-color);
}

.product-description,
.product-specs {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.product-description h3,
.product-specs h3 {
    margin-bottom: 0.5rem;
}

.product-details-info .btn-primary {
    padding: 0.8rem 2rem;
}

.related-products {
    margin-top: 3rem;
}

.related-products .products-grid {
    margin-top: 1.5rem;
}

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

    .product-details-image img {
        height: 320px;
    }
}

@media (max-width: 480px) {
    .product-details {
        padding: 1rem;
    }

    .product-details-info .product-title {
        font-size: 1.5rem;
    }

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

#policies {
    background: white;
}

#policies h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

#policies ul {
    margin-top: 1rem;
}

#policies li {
    list-style: none;
    margin-bottom: 0.5rem;
}

/* =========================
    Profile Page Enhancements
    ========================= */
.profile-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.profile-header-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    border: 1px solid var(--border-light);
    padding: 1.25rem;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
}

.profile-header-card .avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.125rem;
    box-shadow: var(--shadow-blue);
}

.profile-header-card .meta {
    display: flex;
    flex-direction: column;
}

.profile-header-card .meta .name {
    font-weight: 700;
    font-size: 1.05rem;
}

.profile-header-card .meta .email {
    color: var(--text-secondary);
    font-size: .92rem;
}

.profile-form-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.profile-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .profile-grid-2 {
        grid-template-columns: 1fr;
    }
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(50%);
    color: var(--text-light);
    pointer-events: none;
}

.input-with-icon.address i {
    top: 27%;
}

.input-with-icon input,
.input-with-icon textarea {
    padding-left: 38px;
}

.profile-actions {
    display: flex;
    gap: .75rem;
}

.profile-actions .btn-primary {
    min-width: 160px;
}