/*
Theme Name: WeDev365
Description: A modern e-commerce theme for WordPress with WooCommerce integration
Version: 1.0.0
Author: WeDev365
Text Domain: wedev365
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1f2937;
    line-height: 1.6;
}

/* Custom Color Variables */
:root {
    --primary-color: #2c2c2c;
    --primary-hover: #2c2c2c;
    --dark-bg: #1a1a1a;
    --gray-bg: #f3f4f6;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* Utility Classes */
.bg-black-dark { background-color: var(--dark-bg); }
.text-primary { color: var(--primary-color); }
.bg-primary { background-color: var(--primary-color); }
.hover\:text-primary:hover { color: var(--primary-color); }

/* Custom Delivery Badge */
.bg-delivery-badge { background-color: #2c2c2c; }
.border-primary { border-color: var(--primary-color); }

/* Skeleton Animation */
.skeleton-animation {
    background-color: var(--gray-200);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    50% { opacity: .5; }
}

/* Swiper Styles */
.swiper-button-next, .swiper-button-prev {
    color: white;
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: background-color 0.2s;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: rgba(0,0,0,0.5);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    margin: auto;
    background-color: currentColor;
    mask: url("data:image/svg+xml,%3Csvg width='10' height='16' viewBox='0 0 10 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l7 7-7 7' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg width='10' height='16' viewBox='0 0 10 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l7 7-7 7' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.swiper-button-prev:after {
    transform: rotate(180deg);
}


.main-slider-thumbs .swiper-slide {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.main-slider-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
}

/* Line Clamp Utilities */
.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Container System */
.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 16px;
}

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

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

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

/* Header Styles */
.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-header {
    background: var(--gray-700);
    color: white;
    font-size: 12px;
    padding: 4px 0;
}

.main-header {
    background: var(--dark-bg);
    color: white;
    padding: 16px 0;
}

.main-nav {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 8px 0;
}

/* Navigation Styles */
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

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

/* Categories Dropdown */
.categories-dropdown {
    position: relative;
}

.categories-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.categories-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.categories-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.categories-content {
    padding: 16px;
}

.categories-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--gray-800);
}

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

.categories-list li {
    margin-bottom: 8px;
}

.categories-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.3s;
}

.categories-list a:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.category-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.nav-category-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-right: 6px;
    vertical-align: middle;
}

/* Chat Button */
.chat-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.chat-btn:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-banner {
    position: relative;
    margin-bottom: 32px;
}

.hero-image-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider {
    margin-top: 8px;
}

.hero-slider-images {
    display: flex;
    gap: 8px;
}

.hero-slider-item {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.hero-slider-item.active {
    opacity: 1;
    border: 2px solid var(--primary-color);
}

.hero-slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Categories Sidebar */
.categories-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.category-wrapper {
    margin-bottom: 4px;
}

.main-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.main-cat:hover {
    color: var(--primary-color);
    background: var(--gray-100);
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

/* Category Images - Square 1:1 ratio */
.category-image {
    width: 128px;
    height: 128px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

/* Single Product Page Styles */
.swiper-button-next, .swiper-button-prev { 
    color: #333; 
}

.thumb-slider .swiper-button-next, .thumb-slider .swiper-button-prev {
    color: #333;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
    width: 24px;
}

.thumb-slider .swiper-button-next:after, .thumb-slider .swiper-button-prev:after { 
    font-size: 14px; 
}

.thumb-slider .swiper-slide {
    opacity: 0.6;
    border: 2px solid transparent;
    border-radius: 0.375rem;
    cursor: pointer;
}

.thumb-slider .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #2c2c2c;
}

.product-picture-slider .product-gallery-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background-color: rgba(0, 0, 0, 0.35);
    color: #fff;
    transition: background-color 0.2s ease;
}

.product-picture-slider .product-gallery-button:hover {
    background-color: rgba(0, 0, 0, 0.55);
}

.product-picture-slider .product-gallery-button::after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background-color: currentColor;
    mask: url("data:image/svg+xml,%3Csvg width='10' height='16' viewBox='0 0 10 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l7 7-7 7' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg width='10' height='16' viewBox='0 0 10 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l7 7-7 7' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.product-picture-slider .product-gallery-button-prev::after {
    transform: rotate(180deg);
}

.product-picture-slider .product-gallery-button-prev {
    left: 12px;
}

.product-picture-slider .product-gallery-button-next {
    right: 12px;
}

/* Pure CSS Tabs */
.pc-tab > input,
.pc-tab section > div {
    display: none;
}

#tab1:checked ~ section .tab1,
#tab2:checked ~ section .tab2,
#tab3:checked ~ section .tab3 {
    display: block;
}

#tab1:checked ~ .border-b h2:first-child {
    border-radius: 0.75rem 0.75rem 0 0;
    margin: 0.5rem 0.5rem 0 0.5rem;
    padding: 0;
}

#tab1:checked ~ .border-b h2:first-child label {
    background-color: transparent !important;
    border-bottom: 1px solid #2c2c2c;
    font-weight: 600;
    padding: 5px;
    display: block;
    width: 100%;
    text-align: center;
}

#tab2:checked ~ .border-b h2:nth-child(2) {
    border-radius: 0.75rem 0.75rem 0 0;
    margin: 0.5rem 0.5rem 0 0.5rem;
    padding: 0;
}

#tab2:checked ~ .border-b h2:nth-child(2) label {
    background-color: transparent !important;
    border-bottom: 1px solid #2c2c2c;
    font-weight: 600;
    padding: 5px;
    display: block;
    width: 100%;
}

#tab3:checked ~ .border-b h2:nth-child(3) {
    background-color: #2c2c2c !important;
    border-radius: 0.75rem 0.75rem 0 0;
    margin: 0.5rem 0.5rem 0 0.5rem;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#tab3:checked ~ .border-b h2:nth-child(3) label {
    background-color: transparent !important;
    color: white !important;
    border-bottom-color: transparent;
    font-weight: 600;
    padding: 1.25rem 2rem;
    display: block;
    width: 100%;
    text-align: center;
}

.pc-tab .border-b h2 {
    transition: all 0.3s ease;
    border-radius: 0.5rem 0.5rem 0 0;
    margin: 0.25rem 0.25rem 0 0.25rem;
}

.pc-tab > h2 > label {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.375rem 0.375rem 0 0;
}


.product-info {
    padding: 12px;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--gray-800);
}

.product-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
}

/* Sale Badge - Removed */

/* Grid Layouts */
.grid {
    display: grid;
    gap: 16px;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-5 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-5 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-6 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(1, 1fr); }
}

/* Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* Spacing */
.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.px-1 { padding-left: 4px; padding-right: 4px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-8 { padding-left: 32px; padding-right: 32px; }

.m-1 { margin: 4px; }
.m-2 { margin: 8px; }
.m-3 { margin: 12px; }
.m-4 { margin: 16px; }
.m-6 { margin: 24px; }
.m-8 { margin: 32px; }
.my-3 { margin-top: 12px; margin-bottom: 12px; }
.my-4 { margin-top: 16px; margin-bottom: 16px; }
.my-6 { margin-top: 24px; margin-bottom: 24px; }
.my-8 { margin-top: 32px; margin-bottom: 32px; }
.my-10 { margin-top: 40px; margin-bottom: 40px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mr-2 { margin-right: 8px; }
.mr-4 { margin-right: 16px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-8 { margin-top: 32px; }

/* Text Styles */
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 36px; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }
.text-white { color: white; }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }

/* Background Colors */
.bg-white { background-color: white; }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-gray-200 { background-color: var(--gray-200); }
.bg-gray-700 { background-color: var(--gray-700); }
.bg-red-500 { background-color: #ef4444; }

/* Border Styles */
.border { border: 1px solid var(--gray-200); }
.border-b { border-bottom: 1px solid var(--gray-200); }
.border-b-2 { border-bottom: 2px solid var(--gray-200); }
.border-transparent { border-color: transparent; }
.border-primary { border-color: var(--primary-color); }
.rounded { border-radius: 4px; }
.rounded-md { border-radius: 6px; }
.rounded-lg { border-radius: 8px; }
.rounded-full { border-radius: 9999px; }

/* Shadow Styles - Removed for clean design */

/* Transitions */
.transition { transition: all 0.3s ease; }
.transition-colors { transition: color 0.3s ease, background-color 0.3s ease; }

/* Hover Effects */
.hover\:bg-gray-100:hover { background-color: var(--gray-100); }
.hover\:bg-gray-300:hover { background-color: var(--gray-300); }
.hover\:bg-gray-700:hover { background-color: var(--gray-700); }
.hover\:text-gray-700:hover { color: var(--gray-700); }
.hover\:border-gray-300:hover { border-color: var(--gray-300); }
/* Hover shadow removed for clean design */

/* Responsive Utilities */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

@media (min-width: 640px) {
    .sm\:block { display: block; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .md\:block { display: block; }
    .md\:flex-row { flex-direction: row; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .md\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
    .md\:grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
    .md\:pt-3 { padding-top: 12px; }
    .md\:pb-6 { padding-bottom: 24px; }
}

@media (min-width: 1024px) {
    .lg\:block { display: block; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
}

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* Whitespace */
.whitespace-nowrap { white-space: nowrap; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }

/* Z-index */
.z-10 { z-index: 10; }
.z-30 { z-index: 30; }
.z-1000 { z-index: 1000; }

/* Width and Height */
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-8 { height: 32px; }
.h-20 { height: 80px; }
.h-32 { height: 128px; }
.h-40 { height: 160px; }
.h-48 { height: 192px; }
.max-h-10 { max-height: 40px; }
.max-w-xl { max-width: 576px; }
.max-w-2xl { max-width: 672px; }

/* Object Fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Flex Shrink */
.flex-shrink-0 { flex-shrink: 0; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Animation */
.animate-spin {
    animation: spin 1s linear infinite;
}

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

/* Cart Quantity Badge */
.cart-qty {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.footer h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer ul {
    list-style: none;
}

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

.footer a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

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

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    color: white;
    font-size: 24px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* Brand Logos */
.brand-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px 48px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 16px;
    }
    
    .hero-image-container {
        height: 250px;
    }
    
    .categories-sidebar {
        display: none;
    }
    
    .grid-cols-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-image-container {
        height: 200px;
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Cart Popup Styles */
#cart-popup {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#cart-popup-content {
    animation: cartPopupSlideIn 0.3s ease-out forwards;
}

#cart-popup-content.scale-95 {
    animation: cartPopupSlideOut 0.3s ease-in forwards;
}

@keyframes cartPopupSlideIn {
    from {
        transform: scale(0.95) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes cartPopupSlideOut {
    from {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    to {
        transform: scale(0.95) translateY(-20px);
        opacity: 0;
    }
}

/* Cart popup button hover effects */
#cart-popup button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 44, 44, 0.15);
}

#cart-popup a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 44, 44, 0.15);
}

/* Cart popup custom colors */
#cart-popup .border-b {
    border-color: #2c2c2c !important;
}

#cart-popup h3,
#cart-popup h4,
#cart-popup .font-semibold {
    color: #1a1a1a !important;
}

#cart-popup .text-sm:not(.font-semibold) {
    color: #2c2c2c !important;
}

/* Variable Product Styles */
.variation-attribute select {
    transition: all 0.3s ease;
}

.variation-attribute select:focus {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.single_add_to_cart_button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.single_add_to_cart_button:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.15);
}

/* Gallery thumbnails */
.gallery-thumb {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-thumb:hover {
    border-color: #1a1a1a;
    transform: scale(1.05);
}

/* Quantity buttons */
.quantity-btn {
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background-color: #2c2c2c;
    color: white;
}

/* Loading spinner for add to cart button */
.fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Mobile responsive adjustments for cart popup */
@media (max-width: 640px) {
    #cart-popup {
        padding: 16px;
    }
    
    #cart-popup-content {
        max-width: 100%;
        margin: 0;
    }
    
    #cart-popup .flex.space-x-3 {
        flex-direction: column;
        gap: 12px;
    }
    
    #cart-popup .flex.space-x-3 button,
    #cart-popup .flex.space-x-3 a {
        width: 100%;
    }
}
