/* ===========================================
   VINESTA — CUSTOM CART PAGE CSS
   cart-page.css naam se astra-child folder me upload karo
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Montserrat:wght@300;400;500&display=swap');

.woocommerce-cart #page,
.woocommerce-cart body,
.woocommerce-cart .site,
.woocommerce-cart #content,
.woocommerce-cart .ast-container {
    background-color: #FAF7F2 !important;
}

.vn-cart-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    font-family: 'Montserrat', sans-serif;
}

.vn-cart-title {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    font-weight: 600;
    color: #3B010B;
    text-align: center;
    margin: 0 0 36px;
}

/* Grid layout */
.vn-cart-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

/* ---- Cart Items ---- */
.vn-cart-items {
    background: #fff;
    border: 1px solid #e8e0d6;
    border-radius: 8px;
    padding: 8px 24px;
}

.vn-cart-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid #f0ebe4;
    transition: opacity 0.3s;
}
.vn-cart-row:last-of-type { border-bottom: none; }

.vn-cart-img {
    flex-shrink: 0;
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}
.vn-cart-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vn-cart-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vn-cart-name {
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 500;
    color: #3B010B;
    text-decoration: none;
}
.vn-cart-name:hover { color: #C9A96E; }

.vn-cart-price {
    font-size: 14px;
    font-weight: 400;
    color: #C9A96E;
}

.vn-cart-qty-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 6px;
}

.vn-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}
.vn-qty-btn {
    background: #fdf8f0;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 16px;
    color: #3B010B;
    cursor: pointer;
    transition: background 0.2s;
}
.vn-qty-btn:hover { background: #3B010B; color: #fff; }
.vn-qty-input {
    width: 40px;
    height: 30px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #333;
}

.vn-cart-remove {
    background: transparent;
    border: none;
    color: #842029;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: underline;
}
.vn-cart-remove:hover { color: #5e1318; }

.vn-cart-subtotal {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #3B010B;
    flex-shrink: 0;
    min-width: 80px;
    text-align: right;
}

.vn-continue-link {
    display: inline-block;
    margin: 20px 0 8px;
    font-size: 13px;
    font-weight: 500;
    color: #3B010B;
    text-decoration: none;
    letter-spacing: 0.5px;
}
.vn-continue-link:hover { color: #C9A96E; }

/* ---- Summary ---- */
.vn-cart-summary {
    background: #fff;
    border: 1px solid #3B010B;
    border-radius: 8px;
    padding: 28px;
    position: sticky;
    top: 20px;
}
.vn-cart-summary h2 {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 500;
    color: #3B010B;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e8e0d6;
}

.vn-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 300;
    color: #555;
    padding: 10px 0;
    border-bottom: 1px solid #f0ebe4;
}
.vn-summary-total {
    font-size: 17px;
    font-weight: 600;
    color: #3B010B;
    border-bottom: none;
    padding-top: 14px;
}
.vn-summary-total span:last-child { color: #C9A96E; }

.vn-checkout-btn {
    display: block;
    text-align: center;
    background: #3B010B;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 16px;
    border-radius: 4px;
    margin: 20px 0 16px;
    transition: all 0.2s;
}
.vn-checkout-btn:hover { background: #C9A96E; color: #fff; }

/* Coupon */
.vn-coupon-box {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.vn-coupon-box input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    background: #fafafa;
    color: #333;
}
.vn-coupon-box input:focus { border-color: #3B010B; outline: none; background: #fff; }
.vn-coupon-box button {
    background: transparent;
    border: 1px solid #3B010B;
    color: #3B010B;
    padding: 10px 18px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}
.vn-coupon-box button:hover { background: #3B010B; color: #fff; }
.vn-coupon-msg { font-size: 12px; margin-top: 8px; }

/* ---- Empty cart ---- */
.vn-cart-empty {
    max-width: 500px;
    margin: 60px auto;
    text-align: center;
    padding: 40px 24px;
}
.vn-cart-empty h2 {
    font-family: 'Cinzel', serif;
    font-size: 26px;
    font-weight: 500;
    color: #3B010B;
    margin: 0 0 12px;
}
.vn-cart-empty p {
    font-size: 14px;
    font-weight: 300;
    color: #888;
    margin: 0 0 24px;
}
.vn-cart-btn {
    display: inline-block;
    background: #3B010B;
    color: #fff;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.2s;
}
.vn-cart-btn:hover { background: #C9A96E; }

/* ---- Mobile ---- */
@media (max-width: 900px) {
    .vn-cart-grid { grid-template-columns: 1fr; }
    .vn-cart-summary { position: static; }
}

@media (max-width: 600px) {
    .vn-cart-wrap { padding: 24px 14px 40px; }
    .vn-cart-title { font-size: 24px; margin-bottom: 24px; }
    .vn-cart-items { padding: 8px 14px; }
    .vn-cart-row { flex-wrap: wrap; gap: 12px; }
    .vn-cart-img { width: 64px; height: 64px; }
    .vn-cart-subtotal { width: 100%; text-align: left; margin-top: 4px; }
    .vn-cart-summary { padding: 20px; }
}