/*
Theme Name: TableCrushers
Theme URI: https://tabletcrushers.com.au
Description: Premium tablet crushing solutions - WooCommerce theme
Version: 1.0.0
Author: Development Team
Author URI: https://evomed.com.au
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tablet-crushers
Domain Path: /languages
*/

/* Tablet Crushers - Main Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}

/* Headings use DIN Next Light */
h1, h2, h3, h4, h5, h6,
.logo,
.product-title,
.hero h1 {
    font-family: 'din-next-w01-light', 'DIN Next W01 Light', 'Open Sans', sans-serif;
    font-weight: 300;
}

/* Header */
header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: #00a3e0;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.logo span {
    color: #5c6670;
}

.logo .domain {
    color: #5c6670;
    font-weight: 400;
    font-size: 0.9em;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #2563eb;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: #1a1a1a;
}

.cart-icon svg {
    width: 24px;
    height: 24px;
    color: #1a1a1a;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #2563eb;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Products Section */
.products-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* Device Products - Larger */
.devices-grid,
.accessories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.product-card.device .product-image {
    height: 280px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.product-card.device .product-image img,
.product-card.device .product-image .wp-post-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.product-type {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

/* Accessory Products - Smaller */
.product-card.accessory .product-image {
    height: 160px;
    background: linear-gradient(135deg, #fefefe 0%, #f8f8f8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.product-card.accessory .product-image img,
.product-card.accessory .product-image .wp-post-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-card.accessory .product-info {
    padding: 1.25rem;
}

.product-card.accessory .product-name {
    font-size: 1rem;
}

/* Gloup Section */
.gloup-section {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.gloup-card {
    background: linear-gradient(135deg, #e6f7f1 0%, #b3e8d6 100%);
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 300px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #80d9bb;
}

.gloup-card:hover {
    box-shadow: 0 12px 24px rgba(0, 171, 108, 0.2);
}

.gloup-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gloup-badge {
    display: inline-block;
    background: #00ab6c;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    width: fit-content;
}

.gloup-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.gloup-content p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.gloup-links {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.gloup-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #008755;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
}

.gloup-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.gloup-link:hover svg {
    transform: translateX(4px);
}

.gloup-image-container {
    perspective: 1000px;
    padding: 2rem;
}

.gloup-flip-card {
    position: relative;
    width: 100%;
    height: 260px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.gloup-card:hover .gloup-flip-card {
    transform: rotateY(180deg);
}

.gloup-flip-front,
.gloup-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gloup-flip-front img {
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: 12px;
}

.gloup-flip-back {
    background: linear-gradient(135deg, #00ab6c 0%, #008755 100%);
    transform: rotateY(180deg);
    padding: 1rem 1.25rem;
    overflow: hidden;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.gloup-flip-back h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.gloup-flip-back ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 1rem;
}

.gloup-flip-back ul li {
    font-size: 0.7rem;
    color: white;
    padding-left: 1rem;
    position: relative;
    line-height: 1.4;
}

.gloup-flip-back ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #b3e8d6;
    font-weight: bold;
    font-size: 0.9rem;
}

.gloup-flip-back .gloup-note {
    font-size: 0.65rem;
    color: #e6f7f1;
    margin-top: 0.5rem;
    font-style: italic;
    line-height: 1.3;
}

/* Clinical Information Section */
.clinical-section {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.clinical-content {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    border: 1px solid #bfdbfe;
}

.clinical-icon {
    width: 60px;
    height: 60px;
    background: #2563eb;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.clinical-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.clinical-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 1.5rem;
}

.clinical-content p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 1rem;
}

.clinical-content p.highlight {
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #2563eb;
    text-align: left;
    font-weight: 500;
    color: #1e40af;
    margin-top: 1.5rem;
}

/* Contact Section */
.contact-section {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid #e5e7eb;
}

.contact-info h2,
.contact-details h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.contact-details {
    padding-left: 2rem;
    border-left: 1px solid #e5e7eb;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: #2563eb;
    flex-shrink: 0;
}

.contact-item a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #2563eb;
}

/* Footer */
footer {
    background: #f8fafc;
    padding: 3rem 2rem;
    border-top: 1px solid #e5e7eb;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #2563eb;
}

.footer-copy {
    color: #999;
    font-size: 0.85rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #f1f5f9;
    color: #1a1a1a;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
    .devices-grid,
    .accessories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gloup-card {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-details {
        padding-left: 0;
        border-left: none;
        padding-top: 2rem;
        border-top: 1px solid #e5e7eb;
    }
}

@media (max-width: 600px) {
    .devices-grid,
    .accessories-grid {
        grid-template-columns: 1fr;
    }
    
    header {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .cart-table thead {
        display: none;
    }
    
    .cart-table tr {
        display: flex;
        flex-wrap: wrap;
        padding: 1rem 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .cart-table td {
        padding: 0.5rem;
        border: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .cart-actions .btn {
        width: 100%;
    }
}

/* =====================================================
   WOOCOMMERCE MESSAGES
   ===================================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.woocommerce-message {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

.woocommerce-info {
    background: #dbeafe;
    border: 1px solid #3b82f6;
    color: #1e40af;
}

.woocommerce-error {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
    list-style: none;
    padding-left: 1.5rem;
}

.woocommerce-message::before,
.woocommerce-info::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: bold;
    flex-shrink: 0;
}

.woocommerce-info::before {
    content: "i";
    background: #3b82f6;
}

.woocommerce-message a,
.woocommerce-info a {
    margin-left: auto;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    color: inherit;
    border: 1px solid currentColor;
    transition: all 0.2s ease;
}

.woocommerce-message a:hover,
.woocommerce-info a:hover {
    opacity: 0.8;
}

/* Payment box (gateway fields) */
.payment_box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 0.5rem 0 1rem 2rem;
}

.payment_box p {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #666;
}

.payment_box p:last-child {
    margin-bottom: 0;
}

.payment_box .form-row {
    margin-bottom: 1rem;
}

.payment_box label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.payment_box input,
.payment_box select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.payment_box input:focus,
.payment_box select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* =====================================================
   PAGE TITLE (for inner pages)
   ===================================================== */

.page-title {
    text-align: center;
    padding: 3rem 2rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.page-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

/* =====================================================
   BREADCRUMB
   ===================================================== */

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem 0;
}

.breadcrumb a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
}

.breadcrumb a:hover {
    color: #2563eb;
}

.breadcrumb span {
    color: #ccc;
    margin: 0 0.5rem;
}

.breadcrumb .current {
    color: #1a1a1a;
    font-weight: 500;
}

/* =====================================================
   PRODUCT PAGE STYLES
   ===================================================== */

/* Product Section */
.product-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.main-image {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.main-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.thumbnail-grid {
    display: flex;
    gap: 0.75rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #2563eb;
}

.thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Product Info (on product page) */
.product-page-info {
    padding-top: 1rem;
}

.product-badge {
    display: inline-block;
    background: #dbeafe;
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.product-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.product-page-info .product-price,
.product-section .product-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.product-page-info .product-price .tax-note,
.product-section .product-price .tax-note {
    font-size: 0.85rem;
    color: #888;
    font-weight: 400;
    margin-left: 0.5rem;
}

/* Add to Cart */
.add-to-cart-section {
    margin-bottom: 2rem;
}

.add-to-cart-section form.cart {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.quantity-btn {
    width: 48px;
    height: 48px;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: #666;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #e5e7eb;
    color: #1a1a1a;
}

.quantity-input {
    width: 60px;
    height: 48px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
}

.add-to-cart-btn,
.single_add_to_cart_button {
    flex: 1;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
}

.add-to-cart-btn:hover,
.single_add_to_cart_button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.add-to-cart-btn svg {
    width: 20px;
    height: 20px;
}

/* WooCommerce quantity input */
.quantity {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.quantity .qty {
    width: 60px;
    height: 48px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
}

/* Product Description */
.product-description {
    border-top: 1px solid #f0f0f0;
    padding-top: 2rem;
    margin-bottom: 2rem;
}

.product-description h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.product-description .tagline {
    font-size: 1.1rem;
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.features-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #444;
    font-size: 0.95rem;
}

.features-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

.product-note {
    background: #fef3c7;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: #92400e;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.product-note svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.included-text {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* Related Products */
.related-products {
    border-top: 1px solid #f0f0f0;
    padding-top: 2rem;
}

.related-products h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.related-grid {
    display: flex;
    gap: 1rem;
}

.related-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    border: 1px solid transparent;
}

.related-item:hover {
    background: #f1f5f9;
    border-color: #e5e7eb;
}

.related-item-image {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.related-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.related-item-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.related-item-info p {
    font-size: 0.8rem;
    color: #888;
}

/* =====================================================
   CART PAGE STYLES
   ===================================================== */

.cart-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.cart-empty svg {
    width: 80px;
    height: 80px;
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.cart-empty h2 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.cart-empty p {
    color: #666;
    margin-bottom: 1.5rem;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.cart-table th {
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-details h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.cart-item-details p {
    font-size: 0.85rem;
    color: #888;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-quantity button,
.cart-quantity .quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cart-quantity button:hover,
.cart-quantity .quantity-btn:hover {
    background: #f1f5f9;
    border-color: #2563eb;
    color: #2563eb;
}

.cart-quantity input,
.cart-quantity .quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.cart-price {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* WooCommerce Cart Table Prices */
.woocommerce-cart-form .product-price,
.woocommerce-cart-form .product-subtotal,
.cart-section .product-price,
.cart-table .product-price,
.shop_table .product-price,
.shop_table .product-subtotal {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.woocommerce-cart-form .woocommerce-Price-amount,
.cart-section .woocommerce-Price-amount,
.shop_table .woocommerce-Price-amount {
    font-size: 1rem;
}

.cart-remove {
    color: #ef4444;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.cart-remove:hover {
    background: #fef2f2;
}

.cart-remove svg {
    width: 20px;
    height: 20px;
}

.cart-summary {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.cart-summary-row:last-child {
    border-bottom: none;
}

.cart-summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid #e5e7eb;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

/* =====================================================
   CHECKOUT PAGE STYLES
   ===================================================== */

.checkout-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.checkout-form h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.checkout-order-summary {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.checkout-order-summary h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.checkout-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.checkout-item:last-of-type {
    border-bottom: none;
}

.checkout-item-image {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.checkout-item-details {
    flex: 1;
}

.checkout-item-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.checkout-item-details p {
    font-size: 0.85rem;
    color: #666;
}

.checkout-item-price {
    font-weight: 600;
    color: #1a1a1a;
}

.checkout-totals {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
}

.checkout-totals .cart-summary-row {
    border-bottom: none;
    padding: 0.5rem 0;
}

.payment-methods {
    margin-top: 1rem;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-method:hover {
    border-color: #2563eb;
}

.payment-method.selected {
    border-color: #2563eb;
    background: #eff6ff;
}

.payment-method input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
}

.payment-method-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
}

.payment-method-info p {
    font-size: 0.85rem;
    color: #666;
}

/* =====================================================
   WOOCOMMERCE DEFAULT ELEMENTS STYLING
   ===================================================== */

/* WooCommerce Quantity Input */
.quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.quantity .qty {
    width: 60px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    -moz-appearance: textfield;
    appearance: textfield;
}

.quantity .qty::-webkit-outer-spin-button,
.quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* WooCommerce Form Fields */
.woocommerce form .form-row {
    padding: 0;
    margin: 0 0 1rem;
}

.woocommerce form .form-row label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.woocommerce form .form-row label .required {
    color: #ef4444;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-input-wrapper input,
.woocommerce-input-wrapper select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select {
    border-color: #ef4444;
}

/* Checkout Billing/Shipping Headers */
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

/* WooCommerce Payment Methods */
.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wc_payment_methods .wc_payment_method {
    margin-bottom: 0.75rem;
}

.wc_payment_methods .wc_payment_method label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wc_payment_methods .wc_payment_method label:hover {
    border-color: #2563eb;
}

.wc_payment_methods .wc_payment_method input[type="radio"] {
    display: none;
}

.wc_payment_methods .wc_payment_method input[type="radio"]:checked + label,
.wc_payment_methods .wc_payment_method.payment_method_selected label {
    border-color: #2563eb;
    background: #eff6ff;
}

.wc_payment_methods .payment_box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 0.5rem 0 0 0;
}

.wc_payment_methods .payment_box p {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #666;
}

.wc_payment_methods .payment_box p:last-child {
    margin-bottom: 0;
}

/* Place Order Button */
.woocommerce #place_order,
.woocommerce .place-order button {
    width: 100%;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.woocommerce #place_order:hover {
    background: #1d4ed8;
}

/* Cart Totals */
.cart_totals {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
}

.cart_totals h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.cart_totals table {
    width: 100%;
    border-collapse: collapse;
}

.cart_totals table th,
.cart_totals table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.cart_totals table th {
    font-weight: 500;
    color: #666;
}

.cart_totals table td {
    text-align: right;
    font-weight: 500;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    border-top: 2px solid #e5e7eb;
    padding-top: 1rem;
}

/* Update Cart Button */
.update-cart-btn,
button[name="update_cart"] {
    background: #f1f5f9;
    color: #1a1a1a;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.update-cart-btn:hover,
button[name="update_cart"]:hover {
    background: #e2e8f0;
}

button[name="update_cart"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Coupon Input */
.coupon {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.coupon input.input-text,
#coupon_code {
    width: 180px;
    padding: 0.65rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
}

.coupon button {
    padding: 0.65rem 1rem;
}

/* Actions Row */
.cart-table .actions,
.shop_table .actions {
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.cart-table .actions td,
.shop_table .actions td {
    padding: 0;
    border: none;
}

/* Cross-sells Section */
.cross-sells {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
}

.cross-sells > h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.cross-sells ul.products,
.cross-sells .products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cross-sells .product,
.cross-sells li.product {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.cross-sells .product:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.cross-sells .product img,
.cross-sells .woocommerce-loop-product__link img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.cross-sells .product .woocommerce-loop-product__title,
.cross-sells .product h2 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.cross-sells .product .price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.cross-sells .product .button,
.cross-sells .product .add_to_cart_button {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.cross-sells .product .button:hover {
    background: #1d4ed8;
}

/* WooCommerce Product Images - Prevent Cropping */
.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img,
.woocommerce .products .product img,
.woocommerce .attachment-woocommerce_thumbnail,
.woocommerce img.wp-post-image,
ul.products li.product img {
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
}

/* Cart Collaterals Layout */
.cart-collaterals {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin-top: 2rem;
    align-items: start;
}

.cart-collaterals .cross-sells {
    margin-top: 0;
}

@media (max-width: 900px) {
    .cart-collaterals {
        grid-template-columns: 1fr;
    }
}

/* Return to Cart Link */
.return-to-cart-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}

.return-to-cart-link:hover {
    text-decoration: underline;
}

/* Checkout Section Title */
.checkout-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 2rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

/* =====================================================
   WOOCOMMERCE CHECKOUT REVIEW ORDER
   ===================================================== */

.woocommerce-checkout-review-order {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.woocommerce-checkout-review-order-table thead th {
    text-align: left;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.woocommerce-checkout-review-order-table thead th.product-total {
    text-align: right;
}

.woocommerce-checkout-review-order-table tbody td.product-name {
    color: #1a1a1a;
}

.woocommerce-checkout-review-order-table tbody td.product-total {
    text-align: right;
    font-weight: 500;
}

.woocommerce-checkout-review-order-table tfoot th {
    text-align: left;
    font-weight: 500;
    color: #666;
}

.woocommerce-checkout-review-order-table tfoot td {
    text-align: right;
    font-weight: 500;
}

.woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout-review-order-table tfoot .order-total td {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    border-top: 2px solid #e5e7eb;
    padding-top: 1rem;
}

/* Checkout Form Fields - Smaller */
.checkout-form .woocommerce form .form-row input.input-text,
.checkout-form .woocommerce form .form-row textarea,
.checkout-form .woocommerce form .form-row select,
.checkout-form .woocommerce-input-wrapper input,
.checkout-form .woocommerce-input-wrapper select,
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
    padding: 0.65rem 0.875rem;
    font-size: 0.9rem;
}

.checkout-form .woocommerce form .form-row label,
.woocommerce-checkout .form-row label {
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.checkout-form .woocommerce form .form-row,
.woocommerce-checkout .form-row {
    margin-bottom: 0.75rem;
}

/* Checkout Order Summary - Full width adjustments */
.checkout-order-summary {
    position: static;
    margin-top: 2rem;
}

/* Two column layout for billing fields on larger screens */
@media (min-width: 768px) {
    .woocommerce-billing-fields__field-wrapper,
    .woocommerce-shipping-fields__field-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem 1rem;
    }
    
    .woocommerce-billing-fields__field-wrapper .form-row-wide,
    .woocommerce-shipping-fields__field-wrapper .form-row-wide {
        grid-column: 1 / -1;
    }
    
    .woocommerce-billing-fields__field-wrapper .form-row-first,
    .woocommerce-shipping-fields__field-wrapper .form-row-first {
        grid-column: 1;
    }
    
    .woocommerce-billing-fields__field-wrapper .form-row-last,
    .woocommerce-shipping-fields__field-wrapper .form-row-last {
        grid-column: 2;
    }
}

/* =====================================================
   CHECKOUT - SHIPPING ADDRESS TOGGLE
   ===================================================== */

#ship-to-different-address {
    margin: 1.5rem 0 1rem;
    font-size: 1rem;
    font-weight: 500;
}

#ship-to-different-address label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

#ship-to-different-address input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
}

.shipping_address {
    margin-top: 1rem;
}

/* =====================================================
   CHECKOUT - ADDITIONAL FIELDS (ORDER NOTES)
   ===================================================== */

.woocommerce-additional-fields {
    margin-top: 2rem;
}

.woocommerce-additional-fields h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.woocommerce-additional-fields textarea {
    min-height: 80px;
    resize: vertical;
}

/* =====================================================
   CHECKOUT - SELECT2 DROPDOWN STYLING
   ===================================================== */

.select2-container--default .select2-selection--single {
    height: auto;
    padding: 0.65rem 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1a1a1a;
    line-height: 1.5;
    padding: 0;
    font-size: 0.9rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 10px;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.select2-dropdown {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: #2563eb;
}

.select2-container--default .select2-results__option--selected {
    background: #f1f5f9;
}

/* =====================================================
   CHECKOUT - SHIPPING METHODS IN REVIEW ORDER
   ===================================================== */

.woocommerce-shipping-totals td {
    padding: 1rem 0 !important;
}

#shipping_method {
    list-style: none;
    padding: 0;
    margin: 0;
}

#shipping_method li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

#shipping_method li:first-child {
    padding-top: 0;
}

#shipping_method input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    cursor: pointer;
}

#shipping_method label {
    cursor: pointer;
    flex: 1;
    font-weight: 400;
    color: #444;
}

#shipping_method .woocommerce-Price-amount {
    font-weight: 600;
    color: #1a1a1a;
}

/* =====================================================
   CHECKOUT - PAYMENT METHODS STYLING
   ===================================================== */

#payment {
    margin-top: 1.5rem;
}

#payment .payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    overflow: hidden;
}

#payment .wc_payment_method {
    border-bottom: 1px solid #e5e7eb;
}

#payment .wc_payment_method:last-child {
    border-bottom: none;
}

#payment .wc_payment_method > label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 500;
    color: #1a1a1a;
    background: white;
    transition: background 0.2s ease;
    margin: 0;
    font-size: 0.95rem;
}

#payment .wc_payment_method > label:hover {
    background: #f8fafc;
}

#payment .wc_payment_method > input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    margin: 0 0.5rem 0 0;
}

#payment .wc_payment_method > input[type="radio"]:checked + label {
    background: #eff6ff;
}

#payment .wc_payment_method > label img {
    height: 24px;
    width: auto;
    margin-left: auto;
}

#payment .payment_box {
    padding: 1.25rem;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    margin: 0;
}

#payment .payment_box fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

/* PayPal Card Fields Iframe Styling */
#payment .payment_box .form-row {
    margin-bottom: 1rem;
}

#payment .payment_box .form-row:last-child {
    margin-bottom: 0;
}

#payment .payment_box .form-row-first,
#payment .payment_box .form-row-last {
    display: inline-block;
    width: calc(50% - 0.5rem);
}

#payment .payment_box .form-row-first {
    margin-right: 0.5rem;
}

#payment .payment_box .form-row-last {
    margin-left: 0.5rem;
}

/* Style the hosted field containers */
#payment .payment_box [id^="zoid-paypal-card"] {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    overflow: hidden;
}

/* =====================================================
   CHECKOUT - TERMS AND CONDITIONS
   ===================================================== */

.woocommerce-terms-and-conditions-wrapper {
    margin: 1.5rem 0;
}

.woocommerce-privacy-policy-text {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.woocommerce-privacy-policy-text p {
    margin: 0;
}

.woocommerce-privacy-policy-text a {
    color: #2563eb;
    text-decoration: none;
}

.woocommerce-privacy-policy-text a:hover {
    text-decoration: underline;
}

.woocommerce-terms-and-conditions-checkbox-text {
    font-size: 0.9rem;
    color: #444;
}

.woocommerce-terms-and-conditions-checkbox-text a {
    color: #2563eb;
    text-decoration: none;
}

.woocommerce-terms-and-conditions-checkbox-text a:hover {
    text-decoration: underline;
}

.woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.woocommerce-form__label-for-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    margin-top: 2px;
    flex-shrink: 0;
}

/* =====================================================
   CHECKOUT - PLACE ORDER SECTION
   ===================================================== */

.form-row.place-order {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* PayPal Buttons Container */
.ppc-button-wrapper {
    margin-top: 1rem;
}

#ppcp-hosted-fields {
    margin-top: 1rem;
}

/* Hide unnecessary PayPal elements */
.ppcp-hidden {
    display: none !important;
}

/* =====================================================
   CHECKOUT - ORDER REVIEW TABLE IMPROVEMENTS
   ===================================================== */

.woocommerce-checkout-review-order-table {
    font-size: 0.9rem;
}

.woocommerce-checkout-review-order-table .product-name {
    font-weight: 500;
}

.woocommerce-checkout-review-order-table .product-quantity {
    color: #666;
    font-weight: 400;
}


.woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout-review-order-table tfoot .order-total td {
    padding: 1rem 0;
}

.woocommerce-checkout-review-order-table .includes_tax {
    font-size: 0.8rem;
    color: #666;
    display: block;
    margin-top: 0.25rem;
}

/* =====================================================
   CHECKOUT - ORDER SUMMARY SIDEBAR STYLING
   ===================================================== */

.checkout-order-summary .checkout-item-image img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 6px;
}

/* Responsive adjustments for checkout */
@media (max-width: 600px) {
    #payment .payment_box .form-row-first,
    #payment .payment_box .form-row-last {
        display: block;
        width: 100%;
        margin: 0 0 1rem;
    }
    
    .woocommerce-billing-fields__field-wrapper,
    .woocommerce-shipping-fields__field-wrapper {
        display: block;
    }
}

/* Screen Reader Text - Only hide when truly intended for screen readers */
.screen-reader-text:not(label) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* WooCommerce form labels with screen-reader-text - display normally but smaller */
.woocommerce .form-row label.screen-reader-text,
.woocommerce-billing-fields label.screen-reader-text,
.woocommerce-shipping-fields label.screen-reader-text,
.woocommerce-checkout label.screen-reader-text {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 0 0.35rem !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    display: block !important;
    border: 0 !important;
}

/* Cart Page Wrapper */
.cart-page-wrapper,
.checkout-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =====================================================
   WORDPRESS PAGE CONTENT STYLES
   ===================================================== */

/* Page content wrapper */
.page-content,
.entry-content,
.post-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Headings in content */
.page-content h1,
.entry-content h1,
.post-content h1 {
    font-size: 2.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.page-content h2,
.entry-content h2,
.post-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.page-content h3,
.entry-content h3,
.post-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.page-content h4,
.entry-content h4,
.post-content h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.page-content h5,
.entry-content h5,
.post-content h5,
.page-content h6,
.entry-content h6,
.post-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Paragraphs */
.page-content p,
.entry-content p,
.post-content p {
    font-size: 1rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

/* Links in content */
.page-content a,
.entry-content a,
.post-content a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-content a:hover,
.entry-content a:hover,
.post-content a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Lists */
.page-content ul,
.entry-content ul,
.post-content ul,
.page-content ol,
.entry-content ol,
.post-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    color: #444;
}

.page-content li,
.entry-content li,
.post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.page-content ul li,
.entry-content ul li,
.post-content ul li {
    list-style-type: disc;
}

.page-content ol li,
.entry-content ol li,
.post-content ol li {
    list-style-type: decimal;
}

/* Nested lists */
.page-content ul ul,
.entry-content ul ul,
.post-content ul ul,
.page-content ol ol,
.entry-content ol ol,
.post-content ol ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Blockquotes */
.page-content blockquote,
.entry-content blockquote,
.post-content blockquote {
    border-left: 4px solid #2563eb;
    background: #f8fafc;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #475569;
    border-radius: 0 8px 8px 0;
}

.page-content blockquote p:last-child,
.entry-content blockquote p:last-child,
.post-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Images in content */
.page-content img,
.entry-content img,
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.page-content figure,
.entry-content figure,
.post-content figure {
    margin: 1.5rem 0;
}

.page-content figcaption,
.entry-content figcaption,
.post-content figcaption {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}

/* Tables */
.page-content table,
.entry-content table,
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.page-content th,
.entry-content th,
.post-content th {
    background: #f8fafc;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
}

.page-content td,
.entry-content td,
.post-content td {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
}

.page-content tr:nth-child(even),
.entry-content tr:nth-child(even),
.post-content tr:nth-child(even) {
    background: #f8fafc;
}

/* Code */
.page-content code,
.entry-content code,
.post-content code {
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    color: #1e40af;
}

.page-content pre,
.entry-content pre,
.post-content pre {
    background: #1a1a1a;
    color: #f1f5f9;
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.page-content pre code,
.entry-content pre code,
.post-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* Horizontal rule */
.page-content hr,
.entry-content hr,
.post-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2rem 0;
}

/* WordPress alignment classes */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignwide {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* WordPress caption */
.wp-caption {
    max-width: 100%;
    margin: 1.5rem 0;
}

.wp-caption img {
    margin-bottom: 0.5rem;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
}

/* Clear floats */
.page-content::after,
.entry-content::after,
.post-content::after {
    content: '';
    display: table;
    clear: both;
}

/* =====================================================
   PRODUCT PAGE RESPONSIVE
   ===================================================== */

@media (max-width: 900px) {
    .product-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-gallery {
        position: static;
    }
    
    .product-title {
        font-size: 1.75rem;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-order-summary {
        position: static;
    }
}

@media (max-width: 600px) {
    .add-to-cart-section {
        flex-direction: column;
    }
    
    .quantity-selector {
        justify-content: center;
    }
    
    .related-grid {
        flex-direction: column;
    }
}
