/**
 * Ladies Corner Premium - Custom CSS
 * Additional styles and animations
 * 
 * @package Ladies_Corner
 */

/* ============================================
   ENHANCED ANIMATIONS
   ============================================ */

/* Loading Animation */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Notification System */
.notification {
    position: fixed;
    top: 100px;
    right: -400px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-tooltip);
    transition: right var(--transition-base);
    min-width: 300px;
    max-width: 400px;
}

.notification.show {
    right: 20px;
}

.notification-success {
    border-left: 4px solid #10b981;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-info {
    border-left: 4px solid #3b82f6;
}

.notification {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
}

.notification-success .notification-icon {
    background: #10b981;
}

.notification-error .notification-icon {
    background: #ef4444;
}

.notification-info .notification-icon {
    background: #3b82f6;
}

.notification-message {
    flex: 1;
    font-size: var(--text-sm);
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.notification-close:hover {
    color: var(--text-primary);
}

/* Quick View Modal */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    transition: all var(--transition-base);
    pointer-events: none;
}

.quick-view-modal.active {
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
    pointer-events: all;
}

.quick-view-content {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-base);
    position: relative;
}

.quick-view-modal.active .quick-view-content {
    transform: scale(1) translateY(0);
}

.quick-view-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    border: none;
    font-size: var(--text-2xl);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.quick-view-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.quick-view-loader {
    text-align: center;
    padding: var(--space-12);
    color: var(--text-secondary);
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
}

.search-modal-content {
    width: 100%;
    max-width: 600px;
    position: relative;
}

.search-modal input[type="search"] {
    width: 100%;
    padding: var(--space-5) var(--space-6);
    font-size: var(--text-2xl);
    border: none;
    border-radius: var(--radius-xl);
    background: white;
    box-shadow: var(--shadow-xl);
}

.search-modal input[type="search"]:focus {
    outline: 3px solid var(--primary-color);
}

.search-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: var(--text-4xl);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base);
}

.search-close:hover {
    transform: rotate(90deg);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* Social Icons */
.social-links {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all var(--transition-base);
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* ============================================
   ENHANCED PRODUCT CARDS
   ============================================ */

.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-shimmer);
    transition: left 0.5s;
    pointer-events: none;
    z-index: 1;
}

.product-card:hover::before {
    left: 100%;
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: var(--secondary-color);
    font-size: var(--text-sm);
}

.star.empty {
    color: var(--border-color);
}

.rating-count {
    font-size: var(--text-sm);
    color: var(--text-light);
}

/* Product Wishlist */
.wishlist-btn {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.wishlist-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.wishlist-btn.active {
    background: var(--primary-color);
    color: white;
}

/* ============================================
   CART PAGE ENHANCEMENTS
   ============================================ */

.cart-table {
    width: 100%;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.cart-table th {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: var(--space-4);
    text-align: left;
    font-weight: 600;
}

.cart-table td {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-light);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    background: var(--background-main);
    border: none;
    cursor: pointer;
    font-size: var(--text-lg);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: none;
    font-weight: 600;
}

/* Cart Summary */
.cart-summary {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-6);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-light);
}

.summary-row.total {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--secondary-color);
    border-bottom: none;
    margin-top: var(--space-4);
}

.checkout-btn {
    width: 100%;
    padding: var(--space-4);
    background: var(--gradient-secondary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-top: var(--space-6);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-8);
    padding: var(--space-12) 0;
}

.checkout-form {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.form-section {
    margin-bottom: var(--space-8);
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--primary-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group input.error {
    border-color: #ef4444;
}

.form-group .error-message {
    color: #ef4444;
    font-size: var(--text-sm);
    margin-top: var(--space-2);
}

/* Payment Methods */
.payment-methods {
    display: grid;
    gap: var(--space-3);
}

.payment-method {
    display: flex;
    align-items: center;
    padding: var(--space-4);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
}

.payment-method:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.payment-method input[type="radio"] {
    margin-right: var(--space-3);
}

.payment-method.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.payment-icon {
    width: 40px;
    height: 40px;
    margin-right: var(--space-3);
}

/* Order Summary */
.order-summary {
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.order-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-light);
}

.order-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.order-item-details {
    flex: 1;
}

.order-item-name {
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.order-item-meta {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE ENHANCEMENTS
   ============================================ */

@media (max-width: 1024px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .notification {
        right: -100%;
        left: auto;
        width: calc(100% - 40px);
        max-width: none;
    }

    .notification.show {
        right: 20px;
        left: 20px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {

    .site-header,
    .site-footer,
    .back-to-top,
    .cart-icon,
    .mobile-menu-toggle,
    .search-toggle {
        display: none !important;
    }

    body {
        background: white;
    }

    .product-card {
        break-inside: avoid;
    }
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumbs {
    background: var(--background-card);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: var(--text-sm);
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    color: var(--text-light);
    font-size: var(--text-lg);
}

.breadcrumb-list li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-list li a:hover {
    color: var(--primary-color);
}

.breadcrumb-list li.current {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination .page-numbers,
.woocommerce-pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
}

.pagination .page-numbers li,
.woocommerce-pagination .page-numbers li {
    display: inline-block;
}

.pagination .page-numbers a,
.pagination .page-numbers span,
.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all 0.3s;
    text-decoration: none;
}

.pagination .page-numbers a,
.woocommerce-pagination .page-numbers a {
    background: var(--background-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.pagination .page-numbers a:hover,
.woocommerce-pagination .page-numbers a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination .page-numbers .current,
.woocommerce-pagination .page-numbers .current {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.pagination .page-numbers .dots {
    background: none;
    border: none;
    color: var(--text-light);
}

/* ============================================
   BLOG / ARCHIVE STYLES
   ============================================ */

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.post-card:hover .product-image,
.post-card:hover img {
    transform: scale(1.05);
}

.post-card a:hover h2 {
    color: var(--primary-color) !important;
}

.post-navigation a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md) !important;
}

.post-tags a:hover {
    background: var(--primary-light) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* ============================================
   WOOCOMMERCE SHOP ENHANCEMENTS
   ============================================ */

.shop-sidebar a:hover {
    color: var(--primary-color) !important;
}

.woocommerce-ordering select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--text-primary);
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.woocommerce-ordering select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Out of Stock Badge */
.product-card .out-of-stock-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-sm);
    z-index: 2;
}

/* ============================================
   ENTRY CONTENT TYPOGRAPHY
   ============================================ */

.entry-content h2 {
    margin-top: 2rem;
    color: var(--primary-color);
}

.entry-content h3 {
    margin-top: 1.5rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary-color);
    background: var(--primary-light);
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.entry-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.entry-content a:hover {
    color: var(--primary-dark);
}

.entry-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    font-size: var(--text-sm);
    line-height: 1.6;
    margin: 1.5rem 0;
}

.entry-content code {
    background: var(--primary-light);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    color: var(--primary-dark);
}

.entry-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.entry-content th,
.entry-content td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
}



/* ============================================
   LOADING STATES
   ============================================ */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-main);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================
   SELECTION STYLES
   ============================================ */

::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}