/* Variable Definitions */
:root {
    --background-color: #ffffff;
    --text-color: #333333;
    --light-text-color: #999999;
    --primary-color: #3498db;
    --input-background-color: #f9f9f9;
    --hover-background-color: #e0e0e0;
    --button-background-color: #333333;
    --button-hover-background-color: #555555;
    --button-text-color: #ffffff;
    --input-border-color: #dddddd;
    --divider-color: #eeeeee;
    --trash-hover: #dc2626;
    --trash-neutral: #e74c3c;
    --accent-color: #FF6200;

    --font-size-sm: 12px;
    --font-size-md: 14px;
    --font-size-lg: 20px;

    --spacing-sm: 5px;
    --spacing-md: 10px;
    --spacing-lg: 20px;

    --border-radius: 5px;

    /* Added Font Family */
    --gtpt-font-family: var(--e-global-typography-primary-font-family);
}

/* Side Cart Styles */
.woo-side-cart {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    height: 100%;
    background: var(--background-color);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 9999;
}

.woo-side-cart.open {
    right: 0;
}

.woo-side-cart-content {
    padding: var(--spacing-xl);
    height: 100%;
    overflow-y: auto;
    font-family: var(--gtpt-font-family); /* Added font-family */
}

.woo-side-cart-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: none;
    border: none;
    font-size: var(--font-size-lg);
    color: var(--primary-color);
    cursor: pointer;
    font-family: var(--gtpt-font-family); /* Added font-family */
}

/* Cart Items */
.woo-side-cart-item {
    display: flex;
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--divider-color);
    padding-bottom: var(--spacing-lg);
    align-items: center;
    gap: 20px;
    font-family: var(--gtpt-font-family); /* Added font-family */
}

.wc-img-wrapper {
    display: flex;
    width: 30%;
}

.woo-side-cart-item img {
    margin-right: var(--spacing-lg);
    object-fit: contain;
}

.woo-side-cart-item-details {
    flex-grow: 1;
    font-family: var(--gtpt-font-family); /* Added font-family */
}

.woo-side-cart-item-details h3 {
    font-size: var(--font-size-md) !important;
    color: var(--text-color);
    margin: 0 0 var(--spacing-sm) 0;
    font-family: var(--gtpt-font-family); /* Added font-family */
}

.woo-side-cart-item-details,
.woo-side-cart-item-details .product-subtotal {
    font-size: var(--font-size-md);
    color: var(--text-color);
    margin-top: var(--gtpt-spacing-sm);
    font-family: var(--gtpt-font-family); /* Added font-family */
}

.sc-product-price {
    color: var(--text-color);
    font-size: var(--font-size-xs);
    font-family: var(--gtpt-font-family); /* Added font-family */
}

.product-subtotal {
    color: var(--text-color);
    font-size: var(--font-size-md);
    font-weight: bold;
    font-family: var(--gtpt-font-family); /* Added font-family */
}

.woo-side-cart-remove {
    align-self: flex-start;
    color: var(--trash-neutral);
    font-size: var(--font-size-md);
    text-decoration: none;
    margin-left: auto;
    cursor: pointer;
    font-family: var(--gtpt-font-family); /* Added font-family */
}

.woo-side-cart-remove:hover {
    align-self: flex-start;
    color: var(--trash-hover);
    font-size: var(--font-size-md);
    text-decoration: none;
    margin-left: auto;
    cursor: pointer;
}

/* Quantity Selector Styles */
.gtpt-quantity-input {
    width: fit-content;
    display: flex;
    align-items: center;
    border: 1px solid var(--input-border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-top: var(--spacing-sm);
    font-family: var(--gtpt-font-family); /* Added font-family */
}

.gtpt-qty-button {
    background-color: var(--input-background-color);
    border: solid 1px var(--input-border-color);
    color: var(--text-color);
    font-size: var(--font-size-md);
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    transition: background-color 0.2s;
    margin: -1px;
    font-family: var(--gtpt-font-family); /* Added font-family */
}

.gtpt-qty-button:hover {
    background-color: var(--hover-background-color);
}

.gtpt-qty-input {
    width: 3rem;
    border: none;
    text-align: center;
    font-size: var(--font-size-md);
    padding: var(--spacing-sm) 0;
    -moz-appearance: textfield;
    background-color: transparent;
    margin: 0;
    font-family: var(--gtpt-font-family); /* Added font-family */
}


/* Subtotal stuff */
.woocommerce-mini-cart__total total {
    font-family: var(--gtpt-font-family); /* Added font-family */
}

/* Checkout Button */
.checkout-button {
    display: block;
    width: 100%;
    padding: var(--spacing-md);
    background-color: var(--button-background-color);
    color: var(--button-text-color);
    text-align: center;
    font-size: var(--font-size-md);
    border-radius: var(--border-radius);
    margin-top: var(--spacing-lg);
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    font-family: var(--gtpt-font-family); /* Added font-family */

}

.checkout-button:hover {
    background-color: var(--button-hover-background-color);
}

svg.lucide.lucide-lock {
    margin-right: 10px;
    margin-bottom: -2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .woo-side-cart {
        width: 100%;
        right: -100%;
    }

    .woo-side-cart.open {
        right: 0;
    }
}

.woo-side-cart-close {
    width: 40px;
    height: 40px;
    background-color: #e36d60; /* Adjust this color to match your theme */
    border: none;
    border-radius: 3px;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.woo-side-cart-close::before,
.woo-side-cart-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: white;
}

.woo-side-cart-close::before {
    transform: rotate(45deg);
}

.woo-side-cart-close::after {
    transform: rotate(-45deg);
}

.woo-side-cart-close:hover {
    background-color: #d15647; /* Darker shade for hover effect */
}

.woo-side-cart-open {
    width: 40px;
    height: 40px;
    background-color: transparent; /* Adjust this color to match your theme */
    border: solid 1px var(--light-text-color);
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.3s ease;
}

.woo-side-cart-open:hover {
    width: 40px;
    height: 40px;
    background-color: var(--input-background-color); /* Adjust this color to match your theme */
    border: solid 1px var(--light-text-color);
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.3s ease;
}

.woo-side-cart-open svg {
    width: 24px;
    height: 24px;
    stroke: black;
    color: var(--accent-color);
}

.woo-side-cart-open .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.woo-side-cart-open {
    position: relative;
}

.woo-side-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: white; /* Adjust color as needed */
    color: var(--accent-color);
    border: solid 1px var(--accent-color);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    font-family: var(--gtpt-font-family); /* Added font-family */
}
