/* yourtheme-child/style.css */

/* Grid Container */
.cart-page-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem; /* 24px gap between columns */
    margin: 0 auto;
    padding: 1.5rem;
}
.w-16 {
	width: 4rem;
}
.w-32 {
	width: 8rem;
}
.w-auto {
	width: auto;
}
/* Column Span Classes */
.grid-span-8 {
    grid-column: span 8;
}

.grid-span-4 {
    grid-column: span 4;
}

/* Responsive Grid: Stack on smaller screens */
@media (max-width: 768px) {
    .cart-page-container {
        grid-template-columns: repeat(4, 1fr);
    }
    .grid-span-8,
    .grid-span-4 {
        grid-column: span 4;
    }
}

/* Utility Classes Inspired by Tailwind */

/* Flex Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.gap-4 {
    gap: 1rem; /* 16px */
}

.gap-6 {
    gap: 1.5rem; /* 24px */
}

/* Padding Utilities */
.p-2 {
    padding: 0.5rem; /* 8px */
}

.p-6 {
    padding: 1.5rem; /* 24px */
}

.pt-4 {
    padding-top: 1rem; /* 16px */
}

.pt-6 {
    padding-top: 1.5rem; /* 24px */
}

/* Margin Utilities */
.mt-4 {
    margin-top: 1rem; /* 16px */
}

.mt-6 {
    margin-top: 1.5rem; /* 24px */
}

/* Border Utilities */
.border {
    border: 1px solid #e5e7eb; /* Light Gray */
}

.border-t {
    border-top: 1px solid #e5e7eb;
}

.border-b {
    border-bottom: 1px solid #e5e7eb;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.rounded {
    border-radius: 0.25rem; /* 4px */
}

.rounded-lg {
    border-radius: 0.5rem; /* 8px */
}

.rounded-full {
    border-radius: 9999px;
}

/* Shadow Utilities */
.shadow-md {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Background Utilities */
.bg-white {
    background-color: #ffffff;
}

.bg-blue-500 {
    background-color: #3b82f6;
}

.bg-blue-600 {
    background-color: #2563eb;
}

.bg-green-500 {
    background-color: #10b981;
}

.bg-green-600 {
    background-color: #059669;
}

.bg-red-500 {
    background-color: #ef4444;
}

.bg-red-700 {
    background-color: #b91c1c;
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

/* Text Color Utilities */
.text-white {
    color: #ffffff;
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-500 {
    color: #6b7280;
}

.text-red-500 {
    color: #ef4444;
}

.text-red-700 {
    color: #b91c1c;
}

.text-lg {
    font-size: 1.125rem; /* 18px */
}

.text-xl {
    font-size: 1.25rem; /* 20px */
}

/* Hover Effects */
.hover\:underline:hover {
    text-decoration: underline;
}

.hover\:text-red-700:hover {
    color: #b91c1c;
}

.hover\:text-blue-600:hover {
    color: #2563eb;
}

.hover\:text-green-600:hover {
    color: #059669;
}

/* Buttons */
.button {
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.apply-coupon,
.update-cart {
    /* Additional styles can be added if needed */
}

/* Input Fields */
.input-text {
    width: 100%;
}

.w-full {
    width: 100%;
}

.md\:w-auto {
    width: auto;
}

.w-16 {
    width: 4rem; /* 64px */
}

.text-center {
    text-align: center;
}

/* Remove Button Styling */
.remove.text-red-500 {
    color: #ef4444;
}

.remove.text-red-700:hover {
    color: #b91c1c;
}
.woocommerce .cart-form a.remove {
    color: #4b5563 !important; /* #4b5563 is the Tailwind gray-700 hex */
  }
  .woocommerce .cart-form a.remove:hover {
    color: #b91c1c !important; /* #4b5563 is the Tailwind gray-700 hex */
  }

/* Product Name Link */
.product-name a {
    color: #1f2937;
    text-decoration: none;
}

.product-name a:hover {
    text-decoration: underline;
    color: #3b82f6; /* Blue-500 */
}

/* Quantity Input */
.w-16 {
    width: 4rem; /* 64px */
}

.text-center {
    text-align: center;
}

.border {
    border: 1px solid #d1d5db;
}

.rounded {
    border-radius: 0.25rem;
}

/* Coupon and Update Cart Buttons */
.apply-coupon.bg-blue-500 {
    background-color: #3b82f6;
    color: #ffffff;
}

.apply-coupon.bg-blue-500:hover {
    background-color: #2563eb;
}

.update-cart.bg-green-500 {
    background-color: #10b981;
    color: #ffffff;
}

.update-cart.bg-green-500:hover {
    background-color: #059669;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap; /* added line */
    border: 0;
}

/*-----------Woocommerce Style Overrides ---------------*/

/*----------- Cart ---------------*/
/*Woocommerce Products in Cart*/


/*Woocommerce Cart Totals*/
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals {
	float:unset;
	width:auto;
}

#add_payment_method .cart-collaterals .cart_totals tr td, #add_payment_method .cart-collaterals .cart_totals tr th, .woocommerce-cart .cart-collaterals .cart_totals tr td, .woocommerce-cart .cart-collaterals .cart_totals tr th, .woocommerce-checkout .cart-collaterals .cart_totals tr td, .woocommerce-checkout .cart-collaterals .cart_totals tr th {
	border: 0;
}
table.shop_table.shop_table_responsive th {
    background: none;
    color: black;
}

/* Hide spinner arrows on quantity input hover for Webkit browsers */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide spinner arrows on quantity input hover for Firefox */
.qty-input::[type=number] {
    -moz-appearance: textfield;
}

.disabled-link {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}