/*
Theme Name: Minee
Description: Custom styles for the ecommerce store theme.
Version: 1.0.0
Author: Jimmy Espérance
Author URI: https://ervox.store
Text Domain: ervox-store
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* 
 * Note: Some linter warnings are expected and can be safely ignored:
 * - @page rules are valid CSS for print styling
 * - Escaped selectors are necessary for the layout
 * - Nested media queries are working as intended
 */

/* Base Styles */
:root {
    --primary-color: #0f172a;
    --secondary-color: #64748b;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --border-color: #e5e7eb;
    --background-light: #f9fafb;
    --background-dark: #1f2937;
    --success-color: #059669;
    --warning-color: #d97706;
    --error-color: #dc2626;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    padding: 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
}

h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Table of Contents */
#toc {
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

#toc h2 {
    margin-top: 0;
    font-size: 1.25rem;
    color: var(--text-color);
}

#toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#toc li {
    margin: 0.5rem 0;
}

#toc a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

#toc a:hover {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

/* Sections */
section {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
}

section h2 {
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Lists */
ul, ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--background-dark);
    color: #fff;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: #fff;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    section {
        padding: 1rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.4;
    }

    header, 
    footer, 
    .back-to-top,
    nav,
    .no-print {
        display: none !important;
    }

    main {
        margin: 0;
        padding: 0;
    }

    .md\:w-1\/4 {
        width: 25% !important;
    }

    .md\:w-3\/4 {
        width: 75% !important;
        page-break-after: avoid;
    }

    h2 { 
        font-size: 16pt !important;
        page-break-after: avoid;
    }

    h3 { 
        font-size: 14pt !important;
        page-break-after: avoid;
    }

    a {
        color: black !important;
        text-decoration: underline !important;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }

    ul {
        list-style: disc;
    }

    li {
        margin-bottom: 0.25rem;
    }

    section {
        page-break-inside: avoid;
        border: none;
        margin-bottom: 1rem;
    }

    .print-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 10pt;
        color: #666;
        border-top: 1px solid #ccc;
        padding-top: 0.5rem;
    }
}

/* Shop Page Specific Styles */
.announcement-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.quick-view {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .quick-view {
    opacity: 1;
}

.category-item {
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: scale(1.05);
}

.category-overlay {
    transition: all 0.3s ease;
}

.category-item:hover .category-overlay {
    background-color: rgba(0, 0, 0, 0.7);
}

.feature-item {
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.brand-logo {
    transition: all 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.newsletter-input {
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    transform: scale(1.02);
}

.product-image-zoom:hover img {
    transform: scale(1.1);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.promo-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.review-progress-bar {
    background-color: #e5e7eb;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.review-progress-bar-fill {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    appearance: none;
    -moz-appearance: textfield;
}

.price-range-slider {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    outline: none;
    border-radius: 4px;
}

.price-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #0f172a;
    border-radius: 50%;
    cursor: pointer;
}

.price-range-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #0f172a;
    border-radius: 50%;
    cursor: pointer;
}

.filter-checkbox {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    background: white;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-checkbox.checked {
    background: #0f172a;
    border-color: #0f172a;
}

.filter-checkbox.checked::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 7px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.color-swatch.selected {
    box-shadow: 0 0 0 2px white, 0 0 0 3px #0f172a;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    color: #d1d5db;
    transition: color 0.2s ease;
}

.star-rating input:checked ~ label {
    color: #fbbf24;
}

.mobile-filter-drawer {
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-filter-drawer.open {
    transform: translateY(0);
}

.custom-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: .4s;
    border-radius: 24px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .switch-slider {
    background-color: #0f172a;
}

input:checked + .switch-slider:before {
    transform: translateX(20px);
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.mission-bg {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Responsive adjustments for shop page */
@media (max-width: 640px) {
    .announcement-bar {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
}

/* Promo Widget Styles */
#promo-widget {
    z-index: 9999;
}

#promo-widget .animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

/* Mobile responsive adjustments for promo widget */
@media (max-width: 768px) {
    #promo-widget {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
    
    #promo-widget .bg-gradient-to-r {
        padding: 0.75rem;
    }
    
    #promo-widget .text-2xl {
        font-size: 1.25rem;
    }
}

/* Promotion badge styles */
.product-card .bg-gradient-to-r.from-purple-500.to-pink-500 {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

.product-card .animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Product Page Specific Styles */
.product-image-zoom:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.promo-banner {
    background-image: linear-gradient(to right, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
}

.review-progress-bar {
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.review-progress-bar-fill {
    height: 100%;
    background-color: #3b82f6;
}

/* Product Gallery Styles */
.product-gallery-main {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.product-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.product-gallery-thumbnail {
    cursor: pointer;
    border-radius: 8px;
    padding: 8px;
    background: #f9fafb;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-gallery-thumbnail.active {
    border-color: #3b82f6;
}

.product-gallery-thumbnail:hover {
    transform: scale(1.05);
}

/* Product Options Styles */
.product-option-group {
    margin-bottom: 24px;
}

.product-option-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #374151;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-option.selected {
    box-shadow: 0 0 0 2px white, 0 0 0 4px #3b82f6;
}

.model-option {
    padding: 8px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.model-option.selected {
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Quantity Control Styles */
.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    width: 128px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 8px;
}

.quantity-btn:hover {
    background-color: #f3f4f6;
}

.quantity-input {
    width: 48px;
    height: 40px;
    text-align: center;
    border: none;
    outline: none;
    font-weight: 500;
}

/* Product Tabs Styles */
.product-tabs {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 32px;
}

.product-tab {
    padding-bottom: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
}

.product-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.product-tab:hover {
    color: #3b82f6;
}

/* Trust Badges Styles */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    border-top: 1px solid #e5e7eb;
    padding-top: 24px;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.trust-badge-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    margin-bottom: 8px;
}

.trust-badge-text {
    font-size: 12px;
    color: #6b7280;
}

/* Review Styles */
.review-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.review-avatar-text {
    font-weight: 500;
    color: #3b82f6;
}

/* Related Products Styles */
.related-product {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.related-product:hover {
    transform: translateY(-4px);
}

.related-product-image {
    position: relative;
    height: 192px;
    overflow: hidden;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.related-product-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-product:hover .related-product-wishlist {
    opacity: 1;
}

/* Promotional Banner Animation */
@keyframes carousel {
    0%, 33.33% {
        transform: translateX(0);
    }
    33.34%, 66.66% {
        transform: translateX(-100%);
    }
    66.67%, 100% {
        transform: translateX(-200%);
    }
}

.animate-carousel {
    animation: carousel 12s infinite;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .product-gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .trust-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .product-tab {
        white-space: nowrap;
        padding-right: 16px;
    }
    
    .related-product-image {
        height: 160px;
    }
}

@media (max-width: 640px) {
    .product-gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .trust-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .quantity-control {
        width: 120px;
    }
    
    .quantity-btn {
        width: 36px;
        height: 36px;
    }
    
    .quantity-input {
        width: 48px;
        height: 36px;
    }
}

/* Checkout Page Styles */
.checkout-page {
    background-color: #f9fafb;
    min-height: 100vh;
}

.checkout-form {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.checkout-form h2 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 1.5rem;
}

.checkout-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.checkout-form input,
.checkout-form select {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #111827;
    transition: all 0.2s ease;
}

.checkout-form input:focus,
.checkout-form select:focus {
    outline: none;
    border-color: #1e293b;
    box-shadow: 0 0 0 1px #1e293b;
}

.checkout-form input.border-red-500 {
    border-color: #dc2626;
}

.checkout-form .relative {
    position: relative;
}

.checkout-form .pointer-events-none {
    pointer-events: none;
}

.checkout-form .absolute {
    position: absolute;
}

.checkout-form .inset-y-0 {
    top: 0;
    bottom: 0;
}

.checkout-form .right-0 {
    right: 0;
}

.checkout-form .flex {
    display: flex;
}

.checkout-form .items-center {
    align-items: center;
}

.checkout-form .px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.checkout-form .text-gray-700 {
    color: #374151;
}

/* Payment Method Styles */
.payment-method {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.payment-method:hover {
    border-color: #1e293b;
}

.payment-method input[type="radio"] {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    margin-right: 0.75rem;
}

.payment-method input[type="radio"]:checked {
    border-color: #1e293b;
    background-color: #fff;
    box-shadow: inset 0 0 0 4px #1e293b;
}

.payment-method input[type="checkbox"] {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    margin-right: 0.5rem;
}

.payment-method input[type="checkbox"]:checked {
    border-color: #1e293b;
    background-color: #1e293b;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24 stroke-width='3' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4.5 12.75l6 6 9-13.5' /%3E%3C/svg%3E");
    background-size: 80%;
    background-position: center;
    background-repeat: no-repeat;
}

.payment-section {
    display: none;
}

.payment-section.active {
    display: block;
}

.payment-section .border {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 0.75rem;
}

/* Order Summary Styles */
.order-summary {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    position: sticky;
    top: 6rem;
}

.order-summary h2 {
    font-size: 1.125rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 1.5rem;
}

.order-item {
    display: flex;
    align-items: flex-start;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 1rem;
}

.order-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.order-item-image {
    width: 4rem;
    height: 4rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.order-item-content {
    margin-left: 1rem;
    flex: 1;
}

.order-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.25rem;
}

.order-item-description {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

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

.order-item-price {
    font-size: 0.875rem;
    color: #111827;
    font-weight: 500;
}

.order-item-quantity {
    font-size: 0.875rem;
    color: #6b7280;
}

.order-summary-totals {
    border-top: 1px solid #f3f4f6;
    padding-top: 1rem;
    margin-top: 1rem;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.order-summary-row:last-child {
    margin-bottom: 0;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    font-weight: 500;
}

.order-summary-total {
    font-size: 1.25rem;
    color: #1e293b;
    font-weight: 600;
}

/* Place Order Button */
.place-order-btn {
    width: 100%;
    background-color: #1e293b;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1.5rem;
}

.place-order-btn:hover {
    background-color: rgba(30, 41, 59, 0.9);
    transform: translateY(-1px);
}

.place-order-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Payment Icons */
.payment-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
}

.payment-icon {
    width: 2.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .order-summary {
        position: static;
        margin-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .checkout-form {
        padding: 1rem;
    }
    
    .order-summary {
        padding: 1rem;
    }
    
    .payment-method {
        padding: 0.75rem;
    }
    
    .order-item {
        flex-direction: column;
    }
    
    .order-item-image {
        margin-bottom: 0.5rem;
    }
    
    .order-item-content {
        margin-left: 0;
    }
}

/* Loading States */
.loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.loading .animate-spin {
    animation: spin 1s linear infinite;
}

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

/* Form Validation Styles */
.form-error {
    color: #dc2626;
}

.form-error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.form-error-message.hidden {
    display: none;
}

.form-error-message.success {
    color: #059669;
}

/* Success/Error Messages */
.message {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.message.success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #059669;
}

.message.error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

/* Checkout Form Styles */
/* Account creation fields */
#account_fields {
    transition: all 0.3s ease;
}

#account_fields.hidden {
    display: none;
}

/* Coupon code styles */
#coupon_message {
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

#coupon_message.success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #059669;
}

#coupon_message.error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

/* Order notes textarea */
#order_notes {
    resize: vertical;
    min-height: 80px;
}

/* Terms and conditions styling */
#terms_conditions_error {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

/* Enhanced form validation */
input.border-red-500,
textarea.border-red-500,
select.border-red-500 {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 1px #dc2626;
}

input.border-red-500:focus,
textarea.border-red-500:focus,
select.border-red-500:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 1px #dc2626;
}

/* Loading states */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Discount row in order summary */
#discount-row {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

#discount-row.hidden {
    display: none;
}

/* Newsletter signup styling */
#newsletter_signup:checked + label {
    color: #1f2937;
}

/* Payment method sections */
.payment-section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.payment-section.active {
    display: block;
}

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

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .bg-white.rounded-lg.shadow-sm.p-6.mb-6 {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    #account_fields {
        padding-left: 1rem;
    }
    
    .flex.space-x-4 {
        flex-direction: column;
        gap: 1rem;
    }
    
    .flex.space-x-4 > div:last-child {
        align-self: flex-start;
    }
}

/* Cart Page Styles */
.cart-item {
    transition: all 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-2px);
}

.btn-hover {
    transition: all 0.2s ease;
}

.btn-hover:hover {
    transform: translateY(-1px);
}

.quantity-input::-webkit-inner-spin-button, 
.quantity-input::-webkit-outer-spin-button {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input {
    appearance: none;
    -moz-appearance: textfield;
}

/* Cart quantity controls */
.cart-quantity-btn {
    transition: all 0.2s ease;
}

.cart-quantity-btn:hover {
    background-color: #f1f5f9;
}

.cart-quantity-btn:active {
    transform: scale(0.95);
}

/* Cart remove button */
.cart-remove-btn {
    transition: all 0.2s ease;
}

.cart-remove-btn:hover {
    background-color: #fef2f2;
    border-radius: 0.375rem;
}

/* Shipping dropdown */
#shipping-dropdown {
    max-height: 200px;
    overflow-y: auto;
}

.shipping-option {
    transition: background-color 0.2s ease;
}

.shipping-option:hover {
    background-color: #f8fafc;
}

.shipping-option.selected {
    background-color: #e2e8f0;
    color: #1e293b;
}

/* Add to cart button in recommendations */
.add-to-cart-btn {
    transition: all 0.2s ease;
}

.add-to-cart-btn:hover {
    background-color: #e2e8f0;
    transform: translateY(-1px);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* Cart item animations */
.cart-item {
    animation: fadeInUp 0.3s ease-out;
}

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

/* Empty cart state */
.empty-cart-icon {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Cart summary sticky positioning */
@media (min-width: 1024px) {
    .sticky.top-24 {
        position: sticky;
        top: 6rem;
    }
}

/* Responsive cart layout */
@media (max-width: 1023px) {
    .lg\:grid {
        display: block;
    }
    
    .lg\:col-span-8,
    .lg\:col-span-4 {
        width: 100%;
    }
    
    .lg\:mt-0 {
        margin-top: 2rem;
    }
}

@media (max-width: 640px) {
    .cart-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .cart-item > div:last-child {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .quantity-input {
        width: 3rem;
    }
}

/* Cart loading states */
.cart-loading {
    opacity: 0.6;
    pointer-events: none;
}

.cart-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #1e293b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Cart message styles */
.cart-message {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    max-width: 20rem;
    animation: slideInRight 0.3s ease-out;
}

.cart-message.success {
    background-color: #10b981;
    color: white;
}

.cart-message.error {
    background-color: #ef4444;
    color: white;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Cart item removal animation */
.cart-item.removing {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Thank You Page Custom Styles */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    appearance: none;
    -moz-appearance: textfield;
}

:where([class^="ri-"])::before {
    content: "\f3c2";
}
/* Add any other unique styles from Thank You.html here if needed */

/* User Account Dashboard Styles */
.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.custom-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

/* Blog Layout Styles */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.post-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.post-thumbnail {
    position: relative;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.entry-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: var(--text-color);
    text-decoration: none;
}

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

.entry-meta {
    font-size: 0.875rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.entry-meta span {
    margin-right: 1rem;
}

.entry-summary {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.read-more:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.page-title {
    color: var(--text-color);
    margin: 0;
}

.no-posts {
    text-align: center;
    padding: 3rem 1rem;
}

.no-posts h1 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.no-posts p {
    color: var(--light-text);
    margin-bottom: 2rem;
}

/* Pagination */
.wp-pagenavi {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.wp-pagenavi a,
.wp-pagenavi span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.wp-pagenavi a:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.wp-pagenavi .current {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Responsive Blog Layout */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-content {
        padding: 1rem;
    }
    
    .entry-title {
        font-size: 1.125rem;
    }
}
