/* 
   PREMIUM ORGANIC CART STYLES - VIVERO LOS COCOS 
   v2.0.0 - Unified Botanical Identity
*/

/* Core Brand Colors */
:root {
    --loscocos-forest: #1B4D3E;
    --loscocos-terracotta: #E07A5F;
    --loscocos-terracotta-hover: #D06950;
    --loscocos-cream: #FAF8F3;
    --loscocos-sage: #8FBC8F;
    --loscocos-text: #3D4035;
}

/* Base Wrapper */
.premium-cart-wrapper {
    background-color: var(--loscocos-cream);
    min-height: calc(100vh - 154px);
    padding: clamp(3rem, 6vw, 5rem) 0 80px;
    font-family: 'Inter', 'Outfit', sans-serif !important;
    color: var(--loscocos-text);
}

.premium-cart-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: start;
}

.premium-cart-wrapper--empty .premium-cart-container {
    display: block;
    max-width: min(920px, calc(100vw - 48px));
    padding: 0;
}

.premium-cart-wrapper--empty .cart-left-section {
    max-width: 760px;
}

.premium-cart-wrapper--empty .cart-title-section {
    margin-bottom: 2rem;
}

.premium-cart-wrapper--empty .empty-cart-message {
    padding: 0 !important;
    text-align: left !important;
}

.premium-cart-wrapper--empty .empty-cart-message h2 {
    margin: 0 0 1rem !important;
    color: var(--loscocos-forest);
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    line-height: 1.35;
}

.premium-cart-wrapper--empty .btn-checkout-premium {
    width: min(100%, 20rem) !important;
    min-height: 3.25rem;
    padding-inline: 1.5rem !important;
}

@media (max-width: 1200px) {
    .premium-cart-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }
}

/* Header Sections */
.cart-title-section {
    margin-bottom: 50px;
}

.cart-title-section h1 {
    font-family: 'Merriweather', serif !important;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--loscocos-forest);
    letter-spacing: 0;
    margin: 0;
    line-height: 1.2;
}

.cart-title-section p {
    color: #6b7280;
    font-size: 1.1rem;
    margin-top: 15px;
}

/* Cart Items */
.premium-cart-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.item-glass-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 32px;
    align-items: center;
    border: 1px solid rgba(27, 77, 62, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.item-glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(27, 77, 62, 0.05);
    border-color: rgba(27, 77, 62, 0.2);
}

/* Product Image */
.item-image-box {
    width: 180px;
    height: 180px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.item-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Product Info */
.item-details h3 {
    font-family: 'Merriweather', serif !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--loscocos-forest);
}

.item-details h3 a {
    color: inherit;
    text-decoration: none;
}

.item-details .sku {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 5px;
}

.item-price-tag {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--loscocos-terracotta);
}

/* Quantity Controls */
.premium-qty-control {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9f8;
    padding: 6px 14px;
    border-radius: 100px;
    width: fit-content;
    border: 1px solid #e5e7eb;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--loscocos-forest);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.qty-btn:hover {
    background: var(--loscocos-forest);
    color: white;
}

.qty-input {
    width: 35px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--loscocos-forest);
}

.premium-qty-control .quantity {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.premium-qty-control input.qty {
    width: 32px;
    min-width: 32px;
    height: 28px;
    border: 0;
    background: transparent;
    color: var(--loscocos-forest);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    padding: 0;
    text-align: center;
    -moz-appearance: textfield;
}

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

/* Delete Button */
.remove-item-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #999;
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.remove-item-btn:hover {
    color: var(--loscocos-terracotta);
    transform: rotate(90deg);
}

/* Sidebar Totals */
.cart-sidebar-totals {
    position: sticky;
    top: 120px;
}

.totals-nano-glass {
    background: white;
    color: var(--loscocos-text);
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(27, 77, 62, 0.08);
    border: 1px solid rgba(27, 77, 62, 0.05);
}

.totals-nano-glass h2 {
    font-family: 'Merriweather', serif !important;
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
    color: var(--loscocos-forest);
}

.row-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1rem;
}

.row-grand-total {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding-top: 30px;
    border-top: 2px solid var(--loscocos-cream);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--loscocos-forest);
}

.btn-checkout-premium {
    width: 100%;
    background-color: var(--loscocos-terracotta) !important;
    color: white !important;
    padding: 22px;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    box-shadow: 0 10px 25px rgba(224, 122, 95, 0.2);
}

.btn-checkout-premium:hover {
    background-color: var(--loscocos-terracotta-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(224, 122, 95, 0.3);
}

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

.item-glass-card {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Hide Visual pollution */
.premium-cart-wrapper br, 
.premium-cart-wrapper b {
    display: none !important;
}

@media (max-width: 768px) {
    .item-glass-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    .item-image-box { margin: 0 auto; }
    .premium-qty-control { margin: 0 auto; }
}
