/*
Theme Name: Salwa Decor - مؤسسة سلوى للديكور
Theme URI: https://salwadecor.com
Author: Salwa Decor Team
Author URI: https://salwadecor.com
Description: Premium WooCommerce theme for مؤسسة سلوي عبدالله علي بالواس للديكور - Mobile-first Arabic RTL theme with custom QR payment
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: salwa-decor
Domain Path: /languages
Requires at least: 5.8
Requires PHP: 7.4
WC requires at least: 6.0
WC tested up to: 8.0
*/

/* ================================
   CSS VARIABLES
================================ */
:root {
    --primary-gold: #C8A96A;
    --primary-gold-dark: #B8985A;
    --primary-gold-light: #D4BC8A;
    --secondary-dark: #1A1A1A;
    --secondary-gray: #2D2D2D;
    --background-white: #FFFFFF;
    --background-cream: #FAF8F5;
    --background-light: #F5F5F5;
    --text-dark: #1A1A1A;
    --text-gray: #666666;
    --text-light: #999999;
    --border-color: #E5E5E5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-3d: 0 10px 40px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ================================
   RESET & BASE
================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-cream);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    padding-bottom: 80px;
}

body.rtl {
    direction: rtl;
    text-align: right;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-gold-dark);
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

ul, ol {
    list-style: none;
}

/* ================================
   UTILITY CLASSES
================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.container-fluid {
    width: 100%;
    padding: 0 16px;
}

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

.flex-column { flex-direction: column !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }

.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.5rem !important; }
.p-2 { padding: 1rem !important; }
.p-3 { padding: 1.5rem !important; }

/* ================================
   LOADING & NOTIFICATIONS
================================ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.notification-container {
    position: fixed;
    top: 80px;
    left: 16px;
    right: 16px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 500;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification.success {
    background: #22c55e;
}

.notification.error {
    background: #ef4444;
}

.notification.info {
    background: var(--primary-gold);
}

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

/* ================================
   HEADER STYLES
================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--background-white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal);
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    height: 60px;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-center {
    flex: 1;
    text-align: center;
    padding: 0 16px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.site-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin: 0;
}

.header-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    color: var(--text-dark);
    font-size: 1.25rem;
    transition: all var(--transition-fast);
    position: relative;
}

.header-icon:hover {
    background: var(--background-light);
    color: var(--primary-gold);
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: var(--primary-gold);
    color: var(--background-white);
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Menu Toggle */
.menu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ================================
   MOBILE MENU
================================ */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--background-white);
    z-index: 1002;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 1.125rem;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    border-radius: 50%;
    color: var(--text-dark);
    transition: all var(--transition-fast);
}

.mobile-menu-close:hover {
    background: #FEF2F2;
    color: #E74C3C;
}

.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

.mobile-nav-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.mobile-nav-list li a:hover {
    background: var(--background-light);
    color: var(--primary-gold);
}

.mobile-nav-list li a i {
    width: 24px;
    text-align: center;
    color: var(--primary-gold);
}

.mobile-menu-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--background-light);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-weight: 500;
}

.menu-contact-item i {
    color: var(--primary-gold);
}

/* ================================
   MOBILE NAVIGATION (BOTTOM)
================================ */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--background-white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--border-color);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    padding: 8px 0;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    color: var(--text-gray);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
    padding: 4px;
}

.mobile-nav-item i {
    font-size: 1.25rem;
    transition: all var(--transition-fast);
}

.mobile-nav-item span {
    font-size: 0.625rem;
    font-weight: 500;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--primary-gold);
}

.mobile-nav-item.active i {
    transform: translateY(-2px);
}

.mobile-nav-item .cart-badge {
    position: absolute;
    top: 0;
    right: 25%;
    width: 18px;
    height: 18px;
    background: var(--primary-gold);
    color: var(--background-white);
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================================
   HERO SECTION
================================ */
.hero-section {
    position: relative;
    margin-top: 60px;
    padding: 16px;
}

.hero-slider {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero-slide {
    position: relative;
    height: 280px;
    background-size: cover;
    background-position: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.6), transparent);
}

.hero-content {
    position: absolute;
    bottom: 24px;
    right: 24px;
    left: 24px;
    text-align: right;
}

.hero-title {
    color: var(--background-white);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-gold);
    color: var(--background-white);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.hero-btn:hover {
    background: var(--primary-gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.hero-dot.active {
    background: var(--primary-gold);
    width: 24px;
    border-radius: 5px;
}

/* ================================
   SECTION STYLES
================================ */
.section {
    padding: 24px 16px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    padding-right: 12px;
}

.section-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--primary-gold);
    border-radius: 2px;
}

.view-all {
    font-size: 0.875rem;
    color: var(--primary-gold);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-all:hover {
    color: var(--primary-gold-dark);
}

/* ================================
   PRODUCT CARDS (3D STYLE)
================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.product-card {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-3d);
}

.product-image-wrapper {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: var(--background-light);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.product-wishlist {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 32px;
    height: 32px;
    background: var(--background-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    z-index: 2;
}

.product-wishlist:hover,
.product-wishlist.active {
    color: #E74C3C;
    background: #FEF2F2;
}

.product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    background: var(--primary-gold);
    color: var(--background-white);
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}

.product-name a {
    color: inherit;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.price-current {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.price-original {
    font-size: 0.75rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.btn-buy-now,
.btn-add-cart {
    flex: 1;
    padding: 10px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all var(--transition-fast);
}

.btn-buy-now {
    background: var(--primary-gold);
    color: var(--background-white);
}

.btn-buy-now:hover {
    background: var(--primary-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 169, 106, 0.4);
}

.btn-add-cart {
    background: var(--secondary-dark);
    color: var(--background-white);
}

.btn-add-cart:hover {
    background: var(--secondary-gray);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ================================
   CATEGORIES SECTION
================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.category-card {
    background: var(--background-white);
    border-radius: var(--radius-md);
    padding: 16px 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--primary-gold-light), var(--primary-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--background-white);
    overflow: hidden;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* ================================
   PROMO BANNERS
================================ */
.promo-banners {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.promo-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.promo-banner img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.promo-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    text-align: right;
}

.promo-title {
    color: var(--background-white);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.promo-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.promo-btn {
    display: inline-flex;
    align-self: flex-start;
    padding: 10px 20px;
    background: var(--primary-gold);
    color: var(--background-white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.promo-btn:hover {
    background: var(--primary-gold-dark);
}

/* ================================
   FOOTER
================================ */
.site-footer {
    background: var(--secondary-dark);
    color: var(--background-white);
    padding: 40px 16px 100px;
    margin-top: 40px;
}

.footer-logo {
    text-align: center;
    margin-bottom: 24px;
}

.footer-logo img {
    height: 60px;
    margin: 0 auto 12px;
}

.footer-logo h3 {
    color: var(--background-white);
    font-size: 1rem;
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.footer-column h4 {
    color: var(--primary-gold);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--primary-gold);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--background-white);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-gold);
    transform: translateY(-3px);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    margin: 0;
}

/* ================================
   POPUPS & MODALS
================================ */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-popup,
.cart-popup {
    position: fixed;
    inset: 0;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.search-popup.active,
.cart-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--background-white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    z-index: 2001;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
    max-height: 85vh;
    overflow-y: auto;
}

.search-popup.active .popup-content,
.cart-popup.active .popup-content {
    transform: translateY(0);
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--background-white);
    z-index: 10;
}

.popup-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.popup-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    border-radius: 50%;
    color: var(--text-dark);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.popup-close:hover {
    background: #FEF2F2;
    color: #E74C3C;
}

.popup-body {
    padding: 16px;
}

/* Search Popup */
.search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.search-btn {
    padding: 14px 24px;
    background: var(--primary-gold);
    color: var(--background-white);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.search-btn:hover {
    background: var(--primary-gold-dark);
}

/* Cart Popup */
.cart-empty {
    text-align: center;
    padding: 40px 20px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--background-light);
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.875rem;
    color: var(--primary-gold);
    font-weight: 700;
    margin-bottom: 8px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    background: var(--background-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-weight: 600;
    transition: all var(--transition-fast);
}

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

.qty-input {
    width: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 4px;
    font-size: 0.875rem;
}

.cart-item-remove {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FEF2F2;
    border-radius: 50%;
    color: #E74C3C;
    transition: all var(--transition-fast);
}

.cart-item-remove:hover {
    background: #E74C3C;
    color: white;
}

.cart-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    background: var(--background-white);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--background-light);
    border-radius: var(--radius-md);
}

.cart-total-label {
    font-weight: 600;
}

.cart-total-amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.cart-actions {
    display: flex;
    gap: 12px;
}

.cart-actions .btn {
    flex: 1;
    padding: 14px;
    text-align: center;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-fast);
}

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

.btn-primary:hover {
    background: var(--primary-gold-dark);
}

.btn-secondary {
    background: var(--background-light);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--border-color);
}

/* ================================
   QUICK VIEW MODAL
================================ */
.quick-view-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.quick-view-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--background-white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transition: transform var(--transition-normal);
}

.quick-view-modal.active .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    border-radius: 50%;
    color: var(--text-dark);
    z-index: 10;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: #FEF2F2;
    color: #E74C3C;
}

.modal-body {
    padding: 0;
}

/* ================================
   WISHLIST POPUP
================================ */
.wishlist-popup {
    position: fixed;
    inset: 0;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.wishlist-popup.active {
    opacity: 1;
    visibility: visible;
}

.wishlist-popup .popup-content {
    transform: translateY(100%);
}

.wishlist-popup.active .popup-content {
    transform: translateY(0);
}

.wishlist-empty {
    text-align: center;
    padding: 40px 20px;
}

/* ================================
   WOOCOMMERCE PAGES
================================ */
.woocommerce-page .site-main {
    margin-top: 60px;
    padding: 24px 16px;
}

.woocommerce-breadcrumb {
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.woocommerce-breadcrumb a {
    color: var(--primary-gold);
}

/* Shop Page */
.woocommerce-products-header {
    margin-bottom: 24px;
}

.woocommerce-products-header__title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.woocommerce-result-count {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.woocommerce-ordering select {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.875rem;
    background: var(--background-white);
}

/* Single Product */
.single-product .product {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.product-gallery {
    margin-bottom: 24px;
}

.product-gallery img {
    border-radius: var(--radius-md);
    width: 100%;
}

.product-summary .product-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.product-summary .price {
    font-size: 1.5rem;
    color: var(--primary-gold);
    font-weight: 700;
    margin-bottom: 16px;
}

.product-summary .price del {
    color: var(--text-light);
    font-size: 1rem;
    margin-left: 8px;
}

.product-summary .woocommerce-product-details__short-description {
    margin-bottom: 20px;
    color: var(--text-gray);
}

.quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.quantity label {
    font-weight: 600;
}

.quantity input {
    width: 60px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
}

.single_add_to_cart_button {
    width: 100%;
    padding: 14px;
    background: var(--primary-gold);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.single_add_to_cart_button:hover {
    background: var(--primary-gold-dark);
}

/* Cart Page */
.woocommerce-cart-form {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}

.shop_table {
    width: 100%;
}

.shop_table th {
    text-align: right;
    padding: 12px;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
}

.shop_table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.product-thumbnail img {
    width: 80px;
    border-radius: var(--radius-sm);
}

.product-name a {
    color: var(--text-dark);
    font-weight: 600;
}

.product-price,
.product-subtotal {
    color: var(--primary-gold);
    font-weight: 600;
}

.cart_totals {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.cart_totals h2 {
    font-size: 1.125rem;
    margin-bottom: 16px;
}

/* Checkout Page */
.checkout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.woocommerce-checkout-review-order {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.woocommerce-billing-fields,
.woocommerce-shipping-fields {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3 {
    font-size: 1.125rem;
    margin-bottom: 16px;
}

.form-row {
    margin-bottom: 16px;
}

.form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
}

/* QR Payment */
.qr-payment-info {
    background: var(--background-light);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 16px 0;
}

.qr-payment-info img {
    max-width: 200px;
    margin: 0 auto 16px;
    display: block;
    border-radius: var(--radius-sm);
}

.qr-payment-details {
    background: var(--background-white);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.qr-payment-details p {
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.qr-payment-details strong {
    color: var(--text-dark);
}

.qr-upload-section {
    margin-top: 16px;
}

.qr-upload-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.qr-upload-section input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
}

/* My Account */
.woocommerce-account .woocommerce {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.woocommerce-MyAccount-navigation {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 10px 16px;
    background: var(--background-light);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.woocommerce-MyAccount-navigation li a:hover,
.woocommerce-MyAccount-navigation li.is-active a {
    background: var(--primary-gold);
    color: white;
}

.woocommerce-MyAccount-content {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    padding: 20px;
}

/* Order Tracking */
.woocommerce-order-received .woocommerce-order {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.woocommerce-order-details {
    margin-top: 24px;
}

.woocommerce-order-details h2 {
    font-size: 1.125rem;
    margin-bottom: 16px;
}

.woocommerce-table--order-details {
    width: 100%;
    margin-bottom: 20px;
}

.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    text-align: right;
}

/* ================================
   ANIMATIONS
================================ */
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   RESPONSIVE
================================ */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-links {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero-slide {
        height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .checkout {
        flex-direction: row;
    }
    
    .checkout .col2-set {
        flex: 1;
    }
    
    .checkout .woocommerce-checkout-review-order {
        width: 350px;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .container {
        padding: 0 24px;
    }
}

/* ================================
   PRINT STYLES
================================ */
@media print {
    .site-header,
    .mobile-nav,
    .site-footer,
    .popup-overlay,
    .popup-content {
        display: none !important;
    }
    
    body {
        padding-bottom: 0;
    }
}
