/*
Theme Name: ShopPro – Modern WooCommerce Theme
Theme URI: https://devxzone.com/shoppro-ecommerce
Author: Dev Xpert Zone
Author URI: https://devxzone.com
Description: ShopPro is a professional WooCommerce theme built with custom PHP, AJAX, and modern responsive design. It includes shop, product, cart, checkout, dashboard, and complete e-commerce user flow.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shoppro
Tags: e-commerce, woocommerce, shop, modern, responsive, ajax
*/

/*===============================================
  CSS VARIABLES - Modern Design System
===============================================*/
:root {
    --primary: #183361;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #f59e0b;
    --accent: #0d244c;
    --danger: #ef4444;
    
    /* Neutrals */
    --text-primary: #183361;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    
    /* Typography */
    --font-primary: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-secondary: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    overflow-x: hidden;
}

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

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

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

input, textarea, select {
    font-family: inherit;
    outline: none;
}

/*===============================================
  UTILITY CLASSES
===============================================*/
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-lg);
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.grid {
    display: grid;
}

.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn var(--transition-base) ease-in;
}

.slide-up {
    animation: slideUp var(--transition-base) ease-out;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

/*===============================================
  ANIMATIONS
===============================================*/
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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

/*===============================================
  HEADER STYLES
===============================================*/
.site-header {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

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

.top-bar {
    background: var(--bg-secondary);
    padding: var(--spacing-xs) 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.main-header {
    padding: var(--spacing-md) 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
}

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

.site-logo img {
    max-height: 48px;
    width: auto;
    display: block;
}

.site-logo a {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-bar {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-form {
    display: flex;
    position: relative;
}

.search-input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    padding-right: 3rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 0.938rem;
    transition: all var(--transition-fast);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-btn {
    position: absolute;
    right: var(--spacing-xs);
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.header-action-btn {
    background: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.813rem;
    transition: color var(--transition-fast);
    position: relative;
}

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

.action-icon {
    font-size: 1.5rem;
}

.badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background: var(--danger);
    color: white;
    font-size: 0.688rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
}

/*===============================================
  NAVIGATION STYLES
===============================================*/
.main-navigation {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    list-style: none;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: var(--spacing-md) 0;
    font-weight: 500;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

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

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-primary);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    min-width: 800px;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 999;
}

.nav-item:hover .mega-menu {
    display: grid;
    opacity: 1;
    transform: translateY(0);
}

/*===============================================
  BUTTON STYLES
===============================================*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.938rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    text-align: center;
}

.add-to-cart-btn {
    width: 100%;
}

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

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

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.875rem;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.063rem;
}

/*===============================================
  CARD STYLES
===============================================*/
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-base);
}

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

.card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.card-body {
    padding: var(--spacing-md);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.card-text {
    font-size: 0.938rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

/*===============================================
  RESPONSIVE DESIGN
===============================================*/
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .mega-menu {
        min-width: 600px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .header-actions {
        gap: var(--spacing-md);
    }
    
    .mega-menu {
        min-width: auto;
        width: 100vw;
        left: 0;
    }

    .site-logo img {
        max-height: 30px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        font-size: 0.75rem;
    }
    
    .header-action-btn {
        font-size: 0.75rem;
    }
    
    .action-icon {
        font-size: 1.25rem;
    }
}

/*===============================================
  FOOTER STYLES - Complete Design
===============================================*/

.site-footer {
    background: var(--accent);
    color: #d1d5db;
    margin-top: auto;
}

/*===============================================
  FOOTER WIDGETS SECTION
===============================================*/
.footer-widgets {
    padding: var(--spacing-3xl) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--spacing-3xl);
}

/*===============================================
  FOOTER WIDGET COLUMN
===============================================*/
.footer-widget-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-lg);
}

.footer-logo i {
    color: var(--primary);
}

.footer-description {
    font-size: 0.938rem;
    line-height: 1.8;
    color: #9ca3af;
    margin-bottom: var(--spacing-xl);
}

/*===============================================
  FOOTER SOCIAL LINKS
===============================================*/
.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

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

.social-link:hover {
    background: var(--primary);
    transform: translateY(-4px);
}

/*===============================================
  FOOTER WIDGET TITLE
===============================================*/
.footer-widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/*===============================================
  FOOTER MENU
===============================================*/
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: var(--spacing-sm);
}

.footer-menu a {
    display: inline-flex;
    align-items: center;
    color: #9ca3af;
    font-size: 0.938rem;
    transition: all var(--transition-fast);
    position: relative;
    padding-left: var(--spacing-md);
}

.footer-menu a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all var(--transition-fast);
}

.footer-menu a:hover {
    color: white;
    padding-left: var(--spacing-lg);
}

.footer-menu a:hover::before {
    opacity: 1;
}

/*===============================================
  FOOTER CONTACT INFO
===============================================*/
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    color: #9ca3af;
    font-size: 0.938rem;
    line-height: 1.6;
}

.contact-item i {
    color: var(--bg-secondary);
    font-size: 1.125rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-item span {
    flex: 1;
}

.contact-item a {
    color: #9ca3af;
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: white;
}

/*===============================================
  FOOTER BOTTOM
===============================================*/
.footer-bottom {
    padding: var(--spacing-xl) 0;
    background: rgba(0, 0, 0, 0.3);
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
}

.copyright {
    font-size: 0.875rem;
    color: #9ca3af;
}

.copyright p {
    margin: 0;
}

/*===============================================
  FOOTER PAYMENT METHODS
===============================================*/
.footer-payment {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 0.875rem;
    color: #9ca3af;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.payment-methods i {
    font-size: 2rem;
    color: #d1d5db;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.payment-methods i:hover {
    opacity: 1;
}

/*===============================================
  FOOTER LINKS
===============================================*/
.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-links a {
    font-size: 0.875rem;
    color: #9ca3af;
    transition: color var(--transition-fast);
}

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

/*===============================================
  RESPONSIVE FOOTER STYLES
===============================================*/

/* Tablet - 1024px */
@media (max-width: 1024px) {
    .footer-widgets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-2xl);
    }
}

/* Tablet - 768px */
@media (max-width: 768px) {
    .footer-widgets {
        padding: var(--spacing-2xl) 0;
    }

    .footer-widgets-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .footer-widget-col {
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-widget-title {
        text-align: center;
    }

    .footer-widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-menu {
        text-align: center;
    }

    .footer-menu a {
        padding-left: 0;
        justify-content: center;
    }

    .footer-menu a::before {
        display: none;
    }

    .footer-contact {
        align-items: center;
    }

    .contact-item {
        justify-content: center;
        text-align: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }

    .footer-payment {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* Mobile - 480px */
@media (max-width: 480px) {
    .footer-widgets {
        padding: var(--spacing-xl) 0;
    }

    .footer-widgets-grid {
        gap: var(--spacing-xl);
    }

    .footer-logo {
        font-size: 1.5rem;
    }

    .footer-description {
        font-size: 0.875rem;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .footer-widget-title {
        font-size: 1rem;
    }

    .footer-menu a,
    .contact-item {
        font-size: 0.875rem;
    }

    .payment-methods i {
        font-size: 1.5rem;
    }
}

/* ==================================================
   WOOCOMMERCE MY ACCOUNT – LOGIN PAGE
   Clean, Centered, Theme Controlled
================================================== */

/* Page wrapper */
.woocommerce-account .page-content,
.woocommerce-account #content,
.woocommerce-account .woocommerce {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 16px;
}

/* Remove sidebar if theme adds one */
.woocommerce-account aside,
.woocommerce-account .sidebar {
    display: none !important;
}

/* Login container */
.woocommerce-account .woocommerce-notices-wrapper + .woocommerce,
.woocommerce-account .u-columns {
    display: flex;
    justify-content: center;
}

/* Login box */
.woocommerce-account .woocommerce-form-login {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    padding: 32px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* Title */
.woocommerce-account h2 {
    font-size: 1.6rem;
    margin-bottom: 24px;
    text-align: center;
}

/* Labels */
.woocommerce-account label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

/* Inputs */
.woocommerce-account input[type="text"],
.woocommerce-account input[type="email"],
.woocommerce-account input[type="password"] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    transition: border .2s ease, box-shadow .2s ease;
}

.woocommerce-account input:focus {
    border-color: var(--primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
    outline: none;
}

/* Remember me */
.woocommerce-account .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}

/* Login button */
.woocommerce-account button[name="login"] {
    width: 100%;
    height: 50px;
    background: var(--primary, #2563eb);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
}

.woocommerce-account button[name="login"]:hover {
    background: var(--primary-dark, #1e40af);
}

/* Lost password */
.woocommerce-account .lost_password {
    margin-top: 16px;
    text-align: center;
}

.woocommerce-account .lost_password a {
    color: var(--primary, #2563eb);
    font-weight: 500;
    text-decoration: none;
}

.woocommerce-account .lost_password a:hover {
    text-decoration: underline;
}

/* Hide register column if not used */
.woocommerce-account .u-column2 {
    display: none;
}

.footer-logo img {
    max-height: 42px;
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 600px) {

    .woocommerce-account .woocommerce-form-login {
        padding: 24px 16px;
        border-radius: 12px;
    }

    .woocommerce-account h2 {
        font-size: 1.4rem;
    }
}