/**
 * OmniCommerce Base Structural CSS
 * 
 * Provides minimal fallback structure for themes with no WooCommerce styling.
 */

.woocommerce div.product {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.woocommerce div.product div.images {
    flex: 1 1 48%;
}

.woocommerce div.product div.images img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.woocommerce div.product div.summary {
    flex: 1 1 48%;
}

.woocommerce div.product .product_title {
    margin-top: 0;
    margin-bottom: 10px;
}

.woocommerce div.product p.price {
    font-size: 1.25em;
    font-weight: bold;
}

.woocommerce div.product form.cart {
    margin-bottom: 20px;
    padding: 15px 0;
}

.woocommerce div.product form.cart .variations {
    width: 100%;
    margin-bottom: 15px;
}

.woocommerce div.product form.cart .variations td {
    padding: 5px 0;
}

.woocommerce div.product form.cart .variations select {
    width: 100%;
    max-width: 300px;
}

.woocommerce div.product form.cart .quantity {
    display: inline-block;
    margin-right: 10px;
}

.woocommerce div.product form.cart .button {
    display: inline-block;
    padding: 10px 20px;
}

.woocommerce div.product .woocommerce-tabs {
    flex: 1 1 100%;
    margin-top: 30px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    border-bottom: 1px solid #ccc;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    margin: 0 10px -1px 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    border: 1px solid transparent;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    border: 1px solid #ccc;
    border-bottom-color: #fff;
}

.woocommerce div.product .woocommerce-tabs .panel {
    padding: 20px 0;
}

@media (max-width: 768px) {
    .woocommerce div.product div.images,
    .woocommerce div.product div.summary {
        flex: 1 1 100%;
    }
}

/* =========================================================
   OmniCommerce Mini Cart & Slide-out Panel
   ========================================================= */

.omni-floating-cart-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--omni-primary, #f97316);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.4);
    cursor: pointer;
    z-index: 99999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.9);
}

.omni-floating-cart-icon.has-items {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.omni-floating-cart-icon:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #ea580c;
}

.omni-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.omni-mini-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.omni-mini-cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.omni-mini-cart-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 100001;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.omni-mini-cart-panel.open {
    right: 0;
}

.omni-mini-cart-header {
    padding: 25px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.omni-mini-cart-header h3 {
    margin: 0;
    font-size: 20px;
    color: #0f172a;
    font-weight: 700;
}

.omni-mini-cart-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0;
    line-height: 1;
}

.omni-mini-cart-close:hover {
    color: #ef4444;
}

.omni-mini-cart-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.omni-mini-cart-empty {
    text-align: center;
    color: #64748b;
    padding: 40px 20px;
}

.omni-mini-cart-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.omni-mini-cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    transition: opacity 0.2s ease;
}

.omni-mini-cart-item:last-child {
    border-bottom: none;
}

.omni-mini-cart-item-details {
    flex-grow: 1;
    padding-right: 30px;
}

.omni-mini-cart-item-details h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    color: #1e293b;
    font-weight: 600;
}

.omni-mini-cart-item-price {
    font-size: 14px;
    color: var(--omni-primary, #f97316);
    font-weight: 600;
}

.omni-remove-cart-item {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.2s ease;
}

.omni-remove-cart-item:hover {
    background: #fee2e2;
    color: #ef4444;
}

.omni-mini-cart-footer {
    padding: 25px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.omni-mini-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    margin-bottom: 20px;
    color: #0f172a;
}

.omni-mini-cart-total span {
    font-weight: 700;
    color: var(--omni-primary, #f97316);
}

.omni-mini-cart-checkout-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    background: var(--omni-primary, #f97316);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.omni-mini-cart-checkout-btn:hover {
    background: #ea580c;
    color: #fff;
    transform: translateY(-2px);
}
