/*
Theme Name: Serpelo Pro
Theme URI: https://serpelo.com
Author: Serpelo
Author URI: https://serpelo.com
Description: Professional WordPress theme for Serpelo marketplace
Version: 1.0.9
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: serpelo-pro
Tags: ecommerce, woocommerce, responsive, modern
*/

/* ==========================================================================
   CSS Variables - Design System
   ========================================================================== */

:root {
    /* Primary Colors */
    --color-primary: #2563eb;
    --color-primary-dark: #1e40af;
    --color-primary-light: #3b82f6;

    /* Secondary Colors */
    --color-secondary: #10b981;
    --color-secondary-dark: #059669;
    --color-secondary-light: #34d399;

    /* Accent Colors */
    --color-accent: #f59e0b;
    --color-accent-dark: #d97706;
    --color-accent-light: #fbbf24;

    /* Neutral Colors */
    --color-dark: #1f2937;
    --color-gray: #6b7280;
    --color-light-gray: #e5e7eb;
    --color-white: #ffffff;
    --color-black: #000000;

    /* Background Colors */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f9fafb;
    --color-bg-dark: #111827;

    /* Text Colors */
    --color-text-primary: #1f2937;
    --color-text-secondary: #6b7280;
    --color-text-light: #9ca3af;

    /* Border */
    --color-border: #e5e7eb;

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Font Sizes */
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 1.875rem;    /* 30px */
    --font-size-4xl: 2.25rem;     /* 36px */
    --font-size-5xl: 3rem;        /* 48px */

    /* Spacing */
    --spacing-xs: 0.25rem;   /* 4px */
    --spacing-sm: 0.5rem;    /* 8px */
    --spacing-md: 1rem;      /* 16px */
    --spacing-lg: 1.5rem;    /* 24px */
    --spacing-xl: 2rem;      /* 32px */
    --spacing-2xl: 3rem;     /* 48px */
    --spacing-3xl: 4rem;     /* 64px */

    /* Border Radius */
    --radius-sm: 0.25rem;    /* 4px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */

    /* 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);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;

    /* Container */
    --container-max-width: 1200px;
    --container-padding: 1rem;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    background-attachment: fixed;
    background-size: cover;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--color-dark);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

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

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

/* ==========================================================================
   Logo Styles - Responsive
   ========================================================================== */

.site-logo img,
.custom-logo {
    max-height: 80px;
    width: auto;
    height: auto;
    display: block;
    transition: max-height var(--transition-base);
}

/* Header Logo */
.site-header .site-logo img,
.site-header .custom-logo {
    max-height: 80px;
}

/* Footer Logo */
.site-footer .site-logo img,
.site-footer .custom-logo {
    max-height: 60px;
}

/* Mobile Logo - Responsive */
@media (max-width: 768px) {
    .site-logo img,
    .custom-logo {
        max-height: 55px;
    }

    .site-header .site-logo img,
    .site-header .custom-logo {
        max-height: 55px;
    }

    .site-footer .site-logo img,
    .site-footer .custom-logo {
        max-height: 45px;
    }
}

@media (max-width: 480px) {
    .site-logo img,
    .custom-logo {
        max-height: 40px;
    }

    .site-header .site-logo img,
    .site-header .custom-logo {
        max-height: 40px;
    }

    .site-footer .site-logo img,
    .site-footer .custom-logo {
        max-height: 35px;
    }
}

/* Logo Link */
.custom-logo-link {
    display: inline-block;
    line-height: 0;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
    padding: var(--spacing-2xl) 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
}

.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: auto;
}

.site-title {
    margin: 0;
    font-size: var(--font-size-2xl);
    font-weight: 700;
}

.site-title a {
    color: var(--color-dark);
}

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

/* ==========================================================================
   Navigation
   ========================================================================== */

.main-navigation {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: var(--spacing-lg);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--color-dark);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    display: block;
    transition: color var(--transition-fast);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--color-primary);
}

/* Dropdown Menu */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    min-width: 200px;
    display: none;
    flex-direction: column;
    padding: var(--spacing-sm);
    gap: 0;
}

.main-navigation li:hover > ul {
    display: flex;
}

.main-navigation ul ul a {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
}

.main-navigation ul ul a:hover {
    background-color: var(--color-bg-secondary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: var(--font-size-2xl);
    cursor: pointer;
    padding: var(--spacing-sm);
    color: var(--color-dark);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        border-top: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
        display: none;
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: var(--spacing-md);
    }

    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: var(--spacing-md);
    }

    .main-navigation li:hover > ul {
        display: flex;
    }
}

/* ==========================================================================
   User Account Dropdown
   ========================================================================== */

.user-account-dropdown {
    position: relative;
    flex-shrink: 0;
    margin-left: var(--spacing-md);
}

.account-toggle {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: all 0.3s;
}

.account-toggle:hover {
    background: #f9fafb;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.user-icon {
    color: #1e3a8a;
    transition: color 0.3s;
    width: 20px;
    height: 20px;
}

.account-toggle:hover .user-icon {
    color: #2563eb;
}

.login-link {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: all 0.3s;
    text-decoration: none;
}

.login-link:hover {
    background: #f9fafb;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.login-link .user-icon {
    color: #1e3a8a;
    transition: color 0.3s;
    width: 20px;
    height: 20px;
}

.login-link:hover .user-icon {
    color: #2563eb;
}

.account-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    min-width: 200px;
    padding: 8px 0;
    display: none;
    z-index: 1000;
    margin-top: 8px;
}

.account-dropdown-menu.active {
    display: block !important;
}

.header-username {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    align-self: center;
    margin-left: 16px;
}

.account-dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #374151;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.95rem;
}

.account-dropdown-menu a:hover {
    background: #f3f4f6;
    color: #2563eb;
}

@media (max-width: 768px) {
    .user-account-dropdown {
        order: -1;
        margin-right: auto;
        margin-left: 0;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: var(--color-bg-dark);
    color: var(--color-light-gray);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-widget h3 {
    color: var(--color-white);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

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

.footer-widget a {
    color: var(--color-light-gray);
}

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

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

.footer-bottom p {
    margin: 0;
    font-size: var(--font-size-sm);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn,
button,
input[type="submit"],
input[type="button"],
.button {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    line-height: 1.5;
}

.btn-primary,
input[type="submit"] {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover,
input[type="submit"]:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

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

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

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-xl);
    transition: all var(--transition-base);
}

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

.card-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
}

.card-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Grid System
   ========================================================================== */

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

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

@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

.section {
    padding: var(--spacing-3xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title h2 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-md);
}

.section-title p {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

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

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

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

/* ==========================================================================
   Responsive Typography
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --font-size-5xl: 2.25rem;  /* 36px */
        --font-size-4xl: 1.875rem; /* 30px */
        --font-size-3xl: 1.5rem;   /* 24px */
    }

    h1 { font-size: var(--font-size-4xl); }
    h2 { font-size: var(--font-size-3xl); }
    h3 { font-size: var(--font-size-2xl); }
}

/* ==========================================================================
   WooCommerce Compatibility
   ========================================================================== */

.woocommerce-page .content-area {
    width: 100%;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.woocommerce ul.products li.product {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.woocommerce ul.products li.product:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.woocommerce ul.products li.product img {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ==========================================================================
   WooCommerce Order Received / Thank You Page
   ========================================================================== */

.woocommerce-order-received .woocommerce {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Thank You Message */
.woocommerce-order-received .woocommerce-notice--success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-left: 4px solid #10b981;
    padding: 24px 28px;
    border-radius: 12px;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.1);
    text-align: center;
}

.woocommerce-order-received .woocommerce-notice--success::before {
    content: '✓';
    display: inline-block;
    width: 32px;
    height: 32px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: bold;
    font-size: 20px;
    margin-right: 16px;
    vertical-align: middle;
}

.woocommerce-thankyou-order-received {
    font-size: 1.125rem;
    font-weight: 600;
    color: #065f46;
    margin: 0;
    display: inline;
}

/* Order Overview Section */
.woocommerce-order-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    padding: 28px;
    border-radius: 12px;
    margin-bottom: 32px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    list-style: none;
}

.woocommerce-order-overview__order,
.woocommerce-order-overview__date,
.woocommerce-order-overview__email,
.woocommerce-order-overview__total,
.woocommerce-order-overview__payment-method {
    margin: 0;
    padding: 0;
}

.woocommerce-order-overview li strong {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.woocommerce-order-overview li strong::after {
    content: ':';
}

.woocommerce-order-overview__order .woocommerce-order-overview__order,
.woocommerce-order-overview__date .woocommerce-order-overview__date,
.woocommerce-order-overview__email .woocommerce-order-overview__email,
.woocommerce-order-overview__total .woocommerce-order-overview__total,
.woocommerce-order-overview__payment-method .woocommerce-order-overview__payment-method {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.woocommerce-order-overview__total .woocommerce-Price-amount {
    color: #2563eb;
    font-size: 1.25rem;
}

/* Order Details Section */
.woocommerce-order-details {
    margin-bottom: 32px;
}

.woocommerce-order-details__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

/* Order Table */
.woocommerce-table--order-details {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.woocommerce-table--order-details thead {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.woocommerce-table--order-details thead th {
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 16px 20px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.woocommerce-table--order-details tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
}

.woocommerce-table--order-details tbody tr:hover {
    background: #f9fafb;
}

.woocommerce-table--order-details tbody tr:last-child {
    border-bottom: none;
}

.woocommerce-table--order-details tbody td {
    padding: 16px 20px;
    color: #374151;
}

.woocommerce-table--order-details .woocommerce-table__product-name {
    font-weight: 600;
    color: #1f2937;
}

.woocommerce-table--order-details .woocommerce-table__product-total {
    font-weight: 600;
    color: #2563eb;
    text-align: right;
}

.woocommerce-table--order-details tfoot th {
    padding: 12px 20px;
    text-align: left;
    font-weight: 500;
    color: #6b7280;
    background: #f9fafb;
}

.woocommerce-table--order-details tfoot td {
    padding: 12px 20px;
    text-align: right;
    font-weight: 600;
    color: #1f2937;
}

.woocommerce-table--order-details tfoot tr.order-total th {
    font-size: 1.125rem;
    color: #1f2937;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.woocommerce-table--order-details tfoot tr.order-total td {
    font-size: 1.25rem;
    color: #2563eb;
}

/* Customer Details */
.woocommerce-customer-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.woocommerce-column__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2563eb;
}

.woocommerce-column--billing-address,
.woocommerce-column--shipping-address {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.woocommerce-customer-details address {
    font-style: normal;
    line-height: 1.8;
    color: #4b5563;
}

.woocommerce-customer-details address p {
    margin: 0;
}

/* Order Actions */
.woocommerce-order-downloads,
.woocommerce-order-details__actions {
    margin-top: 20px;
}

.woocommerce-order-details__actions .button {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.woocommerce-order-details__actions .button:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Order Notes */
.woocommerce-customer-details--note {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left: 4px solid #f59e0b;
    padding: 20px 24px;
    border-radius: 8px;
    margin-top: 24px;
}

.woocommerce-customer-details--note strong {
    color: #92400e;
    font-weight: 600;
}

/* Address Edit Links */
.woocommerce-customer-details address .edit {
    display: inline-block;
    margin-top: 12px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.woocommerce-customer-details address .edit:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* License Key Info Box */
.serpelo-license-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #2563eb;
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
}

.serpelo-license-info h3 {
    margin: 0 0 16px 0;
    color: #1e40af;
    font-size: 1.25rem;
    font-weight: 700;
}

.serpelo-license-info .license-key-box {
    background: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #bfdbfe;
}

.serpelo-license-info .license-key {
    font-family: 'Courier New', monospace;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e40af;
    letter-spacing: 0.05em;
    word-break: break-all;
}

/* Success Icon in Notice */
.woocommerce-notice--success {
    position: relative;
    padding-left: 60px;
}

.woocommerce-notice--success::before {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .woocommerce-order-received .woocommerce {
        padding: 24px 16px;
    }

    .woocommerce-order-overview {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }

    .woocommerce-table--order-details thead {
        display: none;
    }

    .woocommerce-table--order-details tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        overflow: hidden;
    }

    .woocommerce-table--order-details tbody td {
        display: block;
        text-align: left;
        padding: 12px 16px;
        border-bottom: 1px solid #f3f4f6;
    }

    .woocommerce-table--order-details tbody td:last-child {
        border-bottom: none;
    }

    .woocommerce-table--order-details tbody td::before {
        content: attr(data-title);
        font-weight: 600;
        color: #6b7280;
        display: block;
        margin-bottom: 4px;
        font-size: 0.875rem;
        text-transform: uppercase;
    }

    .woocommerce-table--order-details .woocommerce-table__product-total {
        text-align: left;
    }

    .woocommerce-customer-details {
        grid-template-columns: 1fr;
    }
}

/* Print Optimization */
@media print {
    .woocommerce-order-details__actions,
    .site-header,
    .site-footer {
        display: none;
    }

    .woocommerce-order-received .woocommerce {
        padding: 0;
    }
}

/* ==========================================================================
   WooCommerce Order Pay Page
   ========================================================================== */

.serpelo-order-pay {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.serpelo-order-pay .order-pay-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.serpelo-order-pay .order-review-table {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.serpelo-order-pay .shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

.serpelo-order-pay .shop_table thead th {
    background: #1e40af;
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.serpelo-order-pay .shop_table thead th:first-child {
    border-radius: 8px 0 0 0;
}

.serpelo-order-pay .shop_table thead th:last-child {
    border-radius: 0 8px 0 0;
    text-align: right;
}

.serpelo-order-pay .shop_table tbody td {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.serpelo-order-pay .shop_table tbody tr:last-child td {
    border-bottom: none;
}

.serpelo-order-pay .shop_table tbody .product-quantity,
.serpelo-order-pay .shop_table tbody .product-subtotal {
    text-align: right;
}

.serpelo-order-pay .shop_table tfoot th,
.serpelo-order-pay .shop_table tfoot td {
    padding: 12px 16px;
    border-top: 2px solid #e5e7eb;
}

.serpelo-order-pay .shop_table tfoot .product-total {
    text-align: right;
    font-weight: 600;
}

.serpelo-order-pay .shop_table tfoot tr:last-child th,
.serpelo-order-pay .shop_table tfoot tr:last-child td {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e40af;
    padding: 16px;
}

.serpelo-order-pay #payment {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    padding: 30px;
    border: 2px solid #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.serpelo-order-pay #payment h3 {
    color: #1e40af;
    font-weight: 600;
}

.serpelo-order-pay .wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.serpelo-order-pay .wc_payment_methods li {
    background: white;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s;
}

.serpelo-order-pay .wc_payment_methods li:hover {
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.serpelo-order-pay .place-order {
    margin-top: 20px;
}

.serpelo-order-pay #place_order {
    width: 100%;
    padding: 16px 32px;
    font-size: 1.125rem;
    font-weight: 600;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.serpelo-order-pay #place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

@media (max-width: 768px) {
    .serpelo-order-pay {
        padding: 20px 15px;
    }

    .serpelo-order-pay .order-pay-header h2 {
        font-size: 1.5rem;
    }

    .serpelo-order-pay .order-review-table {
        padding: 16px;
    }

    .serpelo-order-pay .shop_table thead th,
    .serpelo-order-pay .shop_table tbody td,
    .serpelo-order-pay .shop_table tfoot th,
    .serpelo-order-pay .shop_table tfoot td {
        padding: 12px 8px;
        font-size: 0.875rem;
    }

    .serpelo-order-pay #payment {
        padding: 20px;
    }
}

/* ==========================================================================
   WooCommerce My Account Page
   ========================================================================== */

/* Make My Account Buttons Smaller */
.woocommerce-MyAccount-content .woocommerce-button,
.woocommerce-MyAccount-content .button,
.woocommerce-orders-table__cell-order-actions .button,
.woocommerce-orders-table .woocommerce-button {
    padding: 8px 16px !important;
    font-size: 0.875rem !important;
    min-width: auto !important;
    margin: 2px !important;
}

.woocommerce-orders-table td {
    padding: 10px;
}

.woocommerce-orders-table__cell-order-actions {
    text-align: right;
}

.woocommerce-orders-table__cell-order-actions .button {
    display: inline-block;
    margin-left: 4px;
}

/* My Account Navigation */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: 8px;
}

.woocommerce-MyAccount-navigation a {
    display: block;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
}

.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation li.is-active a {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
}

/* ==========================================================================
   Logout Confirmation Modal
   ========================================================================== */

.serpelo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.serpelo-modal {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s ease;
}

.serpelo-modal-overlay.active .serpelo-modal {
    transform: scale(1) translateY(0);
}

.serpelo-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.serpelo-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px 0;
    text-align: center;
}

.serpelo-modal-message {
    font-size: 1rem;
    color: #6b7280;
    margin: 0 0 28px 0;
    text-align: center;
    line-height: 1.6;
}

.serpelo-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.serpelo-modal-button {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.serpelo-modal-button-primary {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.serpelo-modal-button-primary:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.serpelo-modal-button-secondary {
    background: #f3f4f6;
    color: #374151;
}

.serpelo-modal-button-secondary:hover {
    background: #e5e7eb;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .main-navigation,
    .menu-toggle {
        display: none;
    }
}
