/*
Theme Name: SimpleShop
Theme URI: https://example.com/simpleshop
Author: Developer
Author URI: https://example.com
Description: A clean and modern WooCommerce theme with SEO optimization, responsive design, and customizable product display
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simpleshop
Tags: e-commerce, woocommerce, custom-logo, custom-menu, featured-images, theme-options

SimpleShop - Clean eCommerce Theme
*/

/* ===== CSS Variables ===== */
:root {
    --primary-color: #2d5a27;
    --primary-hover: #1e3d1a;
    --secondary-color: #d4a574;
    --accent-color: #8b4513;
    --text-color: #2c2c2c;
    --text-light: #666666;
    --bg-color: #faf9f7;
    --bg-alt: #f5f3ef;
    --white: #ffffff;
    --border-color: #e8e4de;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-color);
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ===== Header ===== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.875rem;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo img,
.site-logo .logo-image {
    max-height: 50px;
    width: auto;
    display: block;
}

.site-logo .site-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    transition: color 0.3s ease;
}

.site-logo .logo-link:hover .site-title {
    color: var(--primary-hover);
}

/* Navigation */
.main-navigation {
    flex: 1;
}

.main-navigation ul {
    display: flex;
    justify-content: center;
    gap: 35px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 0;
    display: block;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

/* Dropdown */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    flex-direction: column;
    gap: 0;
}

.main-navigation li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
}

.main-navigation .sub-menu a {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.main-navigation .sub-menu a::after {
    display: none;
}

.main-navigation .sub-menu a:hover {
    background: var(--bg-alt);
    color: var(--primary-color);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-search {
    position: relative;
}

.header-search input {
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 10px 40px 10px 18px;
    width: 200px;
    transition: var(--transition);
    background: var(--bg-alt);
}

.header-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    width: 250px;
    background: var(--white);
}

.header-search button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
}

.cart-icon {
    position: relative;
    color: var(--text-color);
    font-size: 1.5rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* ===== Hero Slider ===== */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
}

.slider-container {
    position: relative;
}

.slide {
    display: none;
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
}

.slide.active {
    display: block;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.85) 0%, rgba(45, 90, 39, 0.4) 100%);
    display: flex;
    align-items: center;
}

.slide-content {
    max-width: 600px;
    padding: 40px;
    color: var(--white);
}

.slide-content h2 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.slider-prev { left: 30px; }
.slider-next { right: 30px; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--bg-alt);
    border-color: var(--bg-alt);
}

/* ===== Sections ===== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 15px auto 0;
}

/* ===== Categories Grid ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-alt);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    color: var(--white);
}

.category-overlay h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.category-overlay span {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* ===== Products Grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.products-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.products-grid.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-alt);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-badge.sale {
    background: #e74c3c;
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    color: var(--text-color);
}

.product-action-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.product-action-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.product-action-btn.added {
    background: var(--success-color, #28a745);
    color: var(--white);
}

/* Toast Notifications */
.simpleshop-toast {
    position: fixed;
    top: 100px;
    right: 20px;
    min-width: 300px;
    max-width: 450px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 99999;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.simpleshop-toast.show {
    transform: translateX(0);
}

.simpleshop-toast.success {
    border-left: 4px solid var(--success-color, #28a745);
}

.simpleshop-toast.error {
    border-left: 4px solid var(--error-color, #dc3545);
}

.simpleshop-toast.info {
    border-left: 4px solid var(--primary-color);
}

.simpleshop-toast .toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.simpleshop-toast.success .toast-icon {
    color: var(--success-color, #28a745);
}

.simpleshop-toast.error .toast-icon {
    color: var(--error-color, #dc3545);
}

.simpleshop-toast.info .toast-icon {
    color: var(--primary-color);
}

.simpleshop-toast .toast-message {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.4;
}

.simpleshop-toast .toast-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
    flex-shrink: 0;
}

.simpleshop-toast .toast-close:hover {
    color: var(--text-color);
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    /* Limit to 4 lines */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.4em * 4);
}

.product-title a {
    color: var(--text-color);
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.product-price .current-price {
    font-weight: 700;
    color: var(--primary-color);
}

.product-price .original-price {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.product-rating .stars {
    color: #f5a623;
    font-size: 0.9rem;
}

.product-rating .count {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ===== Single Product ===== */
.single-product-section {
    padding: 60px 0;
}

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 15px;
    background: var(--bg-alt);
    aspect-ratio: 1;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    padding-top: 20px;
}

.product-details .product-category {
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.product-details .product-title {
    font-size: 2rem;
    font-family: var(--font-heading);
    margin-bottom: 15px;
}

.product-details .product-price {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.product-short-desc {
    color: var(--text-light);
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.product-meta {
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    margin-bottom: 10px;
}

.meta-item label {
    width: 80px;
    font-weight: 600;
    color: var(--text-light);
}

.product-quantity {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.quantity-selector button {
    width: 45px;
    height: 45px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: var(--transition);
}

.quantity-selector button:hover {
    background: var(--bg-alt);
}

.quantity-selector input {
    width: 60px;
    height: 45px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-weight: 600;
}

.quantity-selector input:focus {
    outline: none;
}

.product-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.product-buttons .btn {
    flex: 1;
    padding: 16px 30px;
}

.product-features {
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    padding: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item i {
    font-size: 1.3rem;
    color: var(--primary-color);
    width: 30px;
}

/* ===== Product Tabs ===== */
.product-tabs {
    margin-top: 80px;
}

.tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    gap: 5px;
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    position: relative;
    transition: var(--transition);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
    padding: 40px 0;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.tab-content h3 {
    margin-bottom: 20px;
}

.tab-content ul {
    list-style: disc;
    padding-left: 20px;
}

.tab-content li {
    margin-bottom: 10px;
    color: var(--text-light);
}

/* Reviews */
.reviews-list {
    margin-top: 30px;
}

.review-item {
    display: flex;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-content h4 {
    margin-bottom: 5px;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.review-meta .stars {
    color: #f5a623;
}

/* ===== Related Products ===== */
.related-products {
    padding: 80px 0;
    background: var(--bg-alt);
}

.products-carousel {
    position: relative;
}

.carousel-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 25px;
    transition: transform 0.5s ease;
}

.carousel-track .product-card {
    flex: 0 0 calc(25% - 18.75px);
    min-width: calc(25% - 18.75px);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 10;
    transition: var(--transition);
}

.carousel-arrow:hover {
    background: var(--primary-color);
    color: var(--white);
}

.carousel-prev { left: -22px; }
.carousel-next { right: -22px; }

/* ===== Footer ===== */
.site-footer {
    background: #1a1a1a;
    color: #b0b0b0;
}

.footer-main {
    padding: 70px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-height: 45px;
}

.footer-logo .site-title {
    color: var(--white);
    font-size: 1.5rem;
}

.footer-about p {
    margin-bottom: 25px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
}

.footer-title {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-family: var(--font-main);
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0b0b0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 3px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.newsletter-form input::placeholder {
    color: #888;
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-hover);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

.payment-icons {
    display: flex;
    gap: 15px;
}

.payment-icons img {
    height: 30px;
    opacity: 0.7;
    transition: var(--transition);
}

.payment-icons img:hover {
    opacity: 1;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    background: var(--bg-alt);
    padding: 20px 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breadcrumb-list a {
    color: var(--text-light);
}

.breadcrumb-list a:hover {
    color: var(--primary-color);
}

.breadcrumb-list .separator {
    color: var(--text-light);
}

.breadcrumb-list .current {
    color: var(--text-color);
}

/* ===== Shop Page ===== */
.shop-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    padding: 60px 0;
    color: var(--white);
    text-align: center;
}

.shop-header h1 {
    color: var(--white);
    margin-bottom: 10px;
}

.shop-header p {
    opacity: 0.9;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.result-count {
    color: var(--text-light);
}

.shop-filters {
    display: flex;
    gap: 15px;
}

.shop-filters select {
    padding: 10px 35px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* ===== Cart ===== */
.cart-page {
    padding: 60px 0;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart-table th {
    background: var(--bg-alt);
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.cart-table td {
    padding: 20px 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cart-totals {
    max-width: 400px;
    margin-left: auto;
    background: var(--bg-alt);
    padding: 30px;
    border-radius: var(--radius-md);
}

.cart-totals h3 {
    margin-bottom: 20px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-total-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: none;
}

/* ===== Responsive ===== */
/* ===== Shop Page Sidebar & Filters ===== */
.shop-page-wrapper {
    display: flex;
    gap: 40px;
    padding: 40px 0;
}

.shop-sidebar {
    width: 280px;
    min-width: 280px;
    flex-shrink: 0;
}

.shop-content {
    flex: 1;
    min-width: 0;
}

/* Filter Widget */
.filter-widget {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.filter-header:hover {
    background: var(--border-color);
}

.filter-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
}

.filter-toggle {
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.filter-header.collapsed .filter-toggle {
    transform: rotate(-90deg);
}

.filter-content {
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.filter-content.collapsed {
    display: none;
}

/* Filter List */
.filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.filter-item {
    margin-bottom: 8px;
}

.filter-item.hidden-item {
    display: none;
}

.filter-item.show-all {
    display: block;
}

.filter-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    overflow: hidden;
}

.filter-link:hover {
    color: var(--primary-color);
}

.filter-link.active {
    color: var(--primary-color);
    font-weight: 500;
}

/* Filter Checkbox */
.filter-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.filter-checkbox.active,
.filter-link.active .filter-checkbox {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-checkbox.active::after,
.filter-link.active .filter-checkbox::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 10px;
}

/* Filter Name - Single line with ellipsis */
.filter-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
}

.filter-count {
    color: var(--text-light);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.show-more-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
}

.show-more-link:hover {
    text-decoration: underline;
}

/* Price Filter */
.price-filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-input-group {
    flex: 1;
}

.price-input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.price-input-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
}

.price-filter-btn {
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.price-filter-btn:hover {
    background: var(--primary-dark);
}

/* Featured Products Widget */
.featured-product-widget {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.featured-product-widget:last-child {
    border-bottom: none;
}

.featured-product-image {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.featured-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-product-info {
    flex: 1;
    min-width: 0;
}

.featured-product-title {
    font-size: 0.9rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-product-title a {
    color: var(--heading-color);
    text-decoration: none;
}

.featured-product-title a:hover {
    color: var(--primary-color);
}

.featured-product-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Shop Page Header */
.shop-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.woocommerce-result-count {
    color: var(--text-light);
    font-size: 0.95rem;
}

.woocommerce-ordering select {
    padding: 10px 35px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--white);
    cursor: pointer;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .shop-sidebar {
        width: 250px;
        min-width: 250px;
    }
}

@media (max-width: 992px) {
    .shop-page-wrapper {
        flex-direction: column;
    }
    
    .shop-sidebar {
        width: 100%;
        min-width: 100%;
        order: 2;
    }
    
    .shop-content {
        order: 1;
    }
    .product-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .carousel-track .product-card {
        flex: 0 0 calc(33.333% - 16.67px);
        min-width: calc(33.333% - 16.67px);
    }
}

@media (max-width: 768px) {
    .header-main .container {
        flex-wrap: wrap;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-md);
        padding: 20px;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation a {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-navigation .sub-menu {
        position: static;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .main-navigation li.menu-item-has-children.open > .sub-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
    }
    
    .main-navigation .menu-item-has-children > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .main-navigation .menu-item-has-children > a::after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        transition: transform 0.3s ease;
    }
    
    .main-navigation .menu-item-has-children.open > a::after {
        transform: rotate(180deg);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    .header-search input {
        width: 150px;
    }
    
    .slide {
        min-height: 400px;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slider-arrow {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .carousel-track .product-card {
        flex: 0 0 calc(50% - 7.5px);
        min-width: calc(50% - 7.5px);
    }
    
    .product-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    
    .product-details .product-title {
        font-size: 1.5rem;
    }
    
    .tabs-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .carousel-track .product-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

