/* =================== CSS VARIABLES =================== */
:root {
    --primary-color: #0ea5e9;
    --primary-hover: #0284c7;
    --secondary-color: #1f2937;
    --light-bg: #f9fafb;
    --white: #ffffff;
    --text-color: #111827;
    --gray-light: #d1d5db;
    --gray: #6b7280;
    --border-color: #e5e7eb;
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --footer-bg: #1f2937;
    --footer-dark: #111827;
}

/* ============== GLOBAL RESETS ============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
    padding: 0;
}

/* ============== HEADER ============== */
.header.shop {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    z-index: 1000;
    position: relative;
}
.header .logo img {
    width: 120px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.header .logo img:hover {
    transform: scale(1.05);
}
.search-bar {
    display: flex;
    background-color: #f1f5f9;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}
.search-bar input[type="search"] {
    flex: 1;
    padding: 10px 15px;
    border: none;
    font-size: 15px;
    background-color: transparent;
    outline: none;
}
.search-bar .btnn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 18px;
    border: none;
}
.search-bar .btnn:hover {
    background-color: var(--primary-hover);
}
.right-bar {
    display: flex;
    align-items: center;
    justify-content: end;
}
.single-icon {
    font-size: 20px;
    color: var(--secondary-color);
    position: relative;
}
.total-count {
    position: absolute;
    top: -5px;
    right: -12px;
    background-color: var(--danger-color);
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
}
.header-inner {
    background-color: var(--secondary-color);
}
.nav.main-menu > li {
    margin: 0 15px;
}
.nav.main-menu > li > a {
    color: var(--gray-light);
    font-weight: 500;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
}
.nav.main-menu > li.active > a,
.nav.main-menu > li > a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ============== PRODUCT AREA ============== */
.section-title h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 6px;
}
.single-product {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.single-product:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}
.product-img {
    position: relative;
    overflow: hidden;
}
.product-img img {
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}
.product-img .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}
.single-product:hover .hover-img {
    opacity: 1;
}
.product-img .new {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--success-color);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}
.button-head {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    text-align: center;
    transition: bottom 0.3s ease;
    padding: 8px 0;
}
.single-product:hover .button-head {
    bottom: 0;
}
.product-action-2 a {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 16px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
}
.product-content {
    padding: 12px 15px;
    text-align: center;
}
.product-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0 5px;
}
.product-content h3 a:hover {
    color: var(--primary-color);
}
.product-price span {
    font-size: 18px;
    font-weight: 700;
    color: var(--danger-color);
}

/* ============== SHOP SERVICES ============== */
.shop-services.section.home {
    background-color: var(--light-bg);
    padding: 40px 0;
}
.single-service {
    text-align: center;
    background-color: var(--white);
    padding: 30px 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.single-service i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.single-service h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}
.single-service p {
    font-size: 14px;
    color: var(--gray);
}

/* ============== NEWSLETTER ============== */
.shop-newsletter.section {
    background: linear-gradient(to right, var(--primary-color), var(--primary-hover));
    padding: 50px 0;
    color: var(--white);
}
.shop-newsletter .inner {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
}
.shop-newsletter h4 {
    font-size: 28px;
    font-weight: 700;
}
.shop-newsletter p {
    font-size: 15px;
    color: #f1f5f9;
}
.newsletter-inner {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.newsletter-inner input[type="email"] {
    padding: 12px 18px;
    border-radius: 6px;
    border: none;
    min-width: 280px;
    font-size: 14px;
}
.newsletter-inner .btn {
    background-color: var(--white);
    color: var(--primary-hover);
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 6px;
}

/* ============== FOOTER ============== */
.footer {
    background-color: var(--footer-bg);
    color: var(--gray-light);
}
.footer-top.section {
    padding: 60px 0 30px;
    border-bottom: 1px solid #374151;
}
.footer .single-footer h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}
.footer .single-footer ul li {
    margin-bottom: 10px;
}
.footer .single-footer ul li a {
    color: var(--gray-light);
    font-size: 14px;
}
.footer .contact ul li {
    font-size: 14px;
    margin-bottom: 8px;
}
.footer .copyright {
    padding: 20px 0;
    background-color: var(--footer-dark);
}
.footer .copyright .left p {
    font-size: 14px;
    color: #9ca3af;
}
.footer .copyright .right img {
    max-height: 30px;
    float: right;
}

/* ============== RESPONSIVE DESIGN ============== */
@media screen and (max-width: 992px) {
    .nav.main-menu {
        flex-direction: column;
    }
    .right-bar {
        justify-content: center;
        margin-top: 10px;
    }
    .newsletter-inner {
        flex-direction: column;
    }
    .newsletter-inner input,
    .newsletter-inner .btn {
        width: 100%;
    }
}
@media screen and (max-width: 576px) {
    .footer .copyright .right {
        text-align: center;
        margin-top: 10px;
        float: none;
    }
}
/* Category Widget Container */
.single-widget.category {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}

/* Title */
.single-widget.category .title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 6px;
    border-bottom: 2px solid #0ea5e9;
}

/* Category List */
.categor-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.categor-list li {
    margin-bottom: 10px;
}
.categor-list li a {
    display: block;
    font-size: 15px;
    color: #374151;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    background-color: transparent;
}
.categor-list li a:hover {
    background-color: #e0f2fe;
    color: #0ea5e9;
}
.categor-list li.active a {
    background-color: #0ea5e9;
    color: #ffffff;
    font-weight: 600;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .single-widget.category {
        padding: 15px;
    }
    .single-widget.category .title {
        font-size: 18px;
    }
    .categor-list li a {
        font-size: 14px;
    }
}
