/*
Theme Name: Anti Woopti
Theme URI: https://example.com/anti-woopti
Author: Antigravity
Author URI: https://example.com
Description: A minimal WooCommerce Block Theme for Full Site Editing.
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: anti-woopti
*/

/* Reset & Base */
body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    background-color: #F9F8F4;
    color: #111;
}

/* Force layout height */
html,
body {
    height: 100%;
}

/* Main Layout Fixes */
.wp-site-blocks {
    background-color: #F9F8F4;
}

/* Layout - Split Screen 
   Use more specific selector to override block styles */
.wp-block-columns.is-split-layout {
    gap: 0 !important;
    align-items: stretch !important;
    margin-bottom: 0 !important;
    min-height: 100vh;
}

.wp-block-columns.is-split-layout>.wp-block-column {
    padding: 4rem;
}

/* Image Column - Ensure full height/width */
.wp-block-columns.is-split-layout>.wp-block-column:first-child {
    padding: 0;
    background-color: #F9F8F4;
    display: flex;
    flex-direction: column;
}

.product-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Make every 3rd image full width if you want variation, 
   but user asked for 2 per row consistently */


/* Right Column Sticky Content */
.product-info-sticky {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    /* Constrain width for readability */
    margin: 0 auto;
    /* Center in column */
}

/* Product Title */
.product-title {
    font-size: 3.5rem !important;
    /* Force size */
    font-weight: 400 !important;
    letter-spacing: -0.03em !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.1 !important;
    font-family: 'Inter', sans-serif !important;
}

.product-sku {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 1rem;
    border-bottom: 1px solid #000;
    margin-bottom: 1.5rem;
    display: block;
}

/* Specs Grid (Frame, Seat height, etc) */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1rem;
    margin: 2rem 0;
    font-size: 0.9rem;
}

.spec-item h4 {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.25rem;
    font-weight: 400;
    text-transform: uppercase;
    /* Match design */
    letter-spacing: 0.05em;
    font-family: 'Inter', sans-serif;
}

.spec-item p {
    margin: 0;
    color: #111;
    font-family: 'Inter', sans-serif;
}

/* Add to Cart Area */
.actions-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    border-top: 1px solid #ccc;
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.btn-primary {
    background: #111;
    color: #fff;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    flex: 1;
    /* Grow */
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.btn-secondary {
    background: transparent;
    color: #111;
    padding: 12px 24px;
    border-radius: 4px;
    border: 1px solid #ddd;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
}

/* Accordions (Details) */
.details-accordion {
    border-top: 1px solid #ddd;
    margin-top: 2rem;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Side Cart Drawer Styles - VIBRANT REDESIGN */
.side-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(2px);
}

.side-cart-drawer {
    position: fixed;
    top: 0;
    right: -480px;
    width: 480px;
    max-width: 95vw;
    height: 100%;
    background: #F5EBE4;
    /* Soft warm background from reference */
    z-index: 9999;
    transition: right 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.side-cart-drawer.open {
    right: 0;
}

.side-cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.side-cart-header {
    padding: 2.5rem 2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.side-cart-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.header-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: #333;
    transition: transform 0.2s ease;
}

.header-icon-btn:hover {
    transform: scale(1.05);
}

.side-cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 2rem;
}

/* Mini Cart Overrides - Card Aesthetic */
.widget_shopping_cart_content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.widget_shopping_cart_content .cart_list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.widget_shopping_cart_content .cart_list li {
    background: #FFFFFF;
    border-radius: 24px;
    /* Large rounded corners */
    padding: 1.5rem !important;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
    display: grid !important;
    grid-template-columns: 100px 1fr;
    gap: 1.5rem;
    align-items: center;
    border: none !important;
    position: relative;
}

.widget_shopping_cart_content .cart_list li img {
    width: 100px !important;
    height: 100px !important;
    border-radius: 16px;
    background: #E8F0F2;
    /* Placeholder back like reference */
    object-fit: contain;
    padding: 10px;
    margin: 0 !important;
}

.widget_shopping_cart_content .cart_list li a:not(.remove) {
    font-weight: 600;
    font-size: 1rem;
    color: #111;
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
}

.widget_shopping_cart_content .cart_list li .product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.5rem;
    display: block;
}

/* Quantity Control Vibrant Redesign */
.qty-control {
    display: flex;
    align-items: center;
    background: #F8F8F8;
    border-radius: 100px;
    padding: 4px;
    width: fit-content;
    margin-top: 0.75rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #111;
    transition: all 0.2s ease;
}

.qty-btn.plus {
    background: #FF6E35;
    /* Vibrant Orange */
    color: #FFF;
    border-radius: 50%;
}

.qty-btn.minus {
    color: #999;
}

.qty-val {
    padding: 0 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 30px;
    text-align: center;
}

.widget_shopping_cart_content .cart_list li .remove {
    position: absolute !important;
    top: 1.5rem !important;
    right: 1.5rem !important;
    font-size: 1.5rem !important;
    color: #CCC !important;
}

/* Footer Section Redesign */
.widget_shopping_cart_content p.total {
    border: none !important;
    padding: 2rem 2rem 1rem !important;
    margin: 0 !important;
    background: #FFF;
    border-radius: 32px 32px 0 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.widget_shopping_cart_content .buttons {
    background: #FFF;
    padding: 0rem 2rem 3rem;
    margin: 0;
}

.widget_shopping_cart_content .buttons a {
    display: block;
    width: 100%;
    padding: 1.5rem !important;
    border-radius: 100px;
    /* Pill shape */
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.widget_shopping_cart_content .buttons a.checkout {
    background: #FF6E35 !important;
    /* Vibrant Orange */
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: 0 12px 24px rgba(255, 110, 53, 0.25);
}

.widget_shopping_cart_content .buttons a.checkout:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.widget_shopping_cart_content .total .amount {
    font-weight: 800;
}