/* Shop grid container */
.shop-results {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Individual product */
.shop-item {
    width: calc(25% - 15px); /* 4 per row */
    box-sizing: border-box;
    text-align: center;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #ECECF3;
    padding: 10px;
    box-sizing: border-box;
}

.shop-item:hover {
    transform: translateY(-3px);
   background-color: #eeeeee;
   border: 1px solid #CCC;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Image container with bg */
.shop-image {
    width: 100%;
    padding-top: 100%; /* makes a square container */
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    border: 1px solid #eee;
    margin-top: 10px;
    background-color: #FFF;
}

/* Optional: hide default img, we’ll set bg in template */
.shop-image img {
    display: none;
}

/* Title and price */
.shop-title {
    font-size:12px;
    margin: 10px 0 5px;
    font-weight: 600;
    color: #CC0717;
}

.shop-price {
    font-size: 1rem;
    color: #111;
    margin-bottom: 10px;
}

/* Tablet View: 2 items per row */
@media (max-width: 992px) {
    .shop-item {
        width: calc(50% - 10px); /* 2 per row, accounting for gap */
    }
}

/* Mobile View: 1 item per row (Stacked) */
@media (max-width: 600px) {
    .shop-results {
        gap: 15px; /* Slightly tighter gap for mobile */
    }
    
    .shop-item {
        width: 100%; /* Full width stacking */
    }
}





/* Product Detail Layout */
.product-detail-container {
    background: #fff;
    padding: 30px;
    border-radius: 5px;
}

.product-top-row {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.product-gallery {
    flex: 1; /* Takes 50% */
}

.product-info {
    flex: 1; /* Takes 50% */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-description{
   

}
.product-categories {
    margin: 10px 0;
    font-size: 0.9rem;
    color: #666;
}

.product-categories a{
    color: #111;
}

.product-purchase-zone {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
}

.add-to-cart-btn {
    background: #CC0717;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
    margin-top: 10px;
}

.add-to-cart-btn:hover {
    background: #aa0513;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .product-top-row {
        flex-direction: column;
    }
}




/* Container for both items */
.shop-top-bar {
    display: flex;
    justify-content: space-between; /* Pushes breadcrumbs left, cart right */
    align-items: center;           /* Vertically centers them */
    flex-wrap: wrap;               /* Allows stacking on mobile */
    gap: 15px;                     /* Space between them when stacked */
    margin-bottom: 20px;           /* Space below the bar */
    padding: 10px 0;
}

/* Ensure the cart doesn't take up 100% width unless stacked */
.top-cart-wrapper {
    flex-shrink: 0;
}

/* Mobile Stacking Logic */
@media (max-width: 600px) {
    .shop-top-bar {
        flex-direction: column;    /* Stack vertically */
        align-items: flex-start;   /* Align everything to the left */
    }
    
    .top-cart-wrapper {
        width: 100%;               /* Make cart full width on mobile if desired */
    }
}




.tm-cart-link-wrapper {
    margin: 10px 0;
    max-width: 200px;
}

.tm-header-cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f4f4f4;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    font-weight: bold;
    gap: 12px;
}

.tm-header-cart:hover {
    background: #eee;
}

.cart-count {
    background: #CC0717;
    color: #fff;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    padding: 0 6px;
}

/* Animation for when an item is added */
.cart-count.bump {
    transform: scale(1.4);
}






/* Table Styling */
.cart-table-wrapper { background: #ECECF3; padding: 20px; border-radius: 5px; }
.tm-cart-table { width: 100%; border-collapse: collapse; }
.tm-cart-table th { border-bottom: 2px solid #ccc; text-align: left; padding: 10px; }
.tm-cart-table td { border-bottom: 1px solid #ddd; padding: 15px 10px; }
.text-right { text-align: right !important; }

/* Inputs & Buttons */
.qty-input { width: 60px; padding: 5px; border: 1px solid #ccc; }
.btn-update { background: #333; color: #fff; border: none; padding: 8px 15px; cursor: pointer; margin-top: 15px; }
.remove-link { color: #CC0717; font-size: 12px; text-decoration: none; display: block; margin-top: 5px; }

/* Summary Sidebar */
.summary-content { padding: 15px; }
.summary-line { display: flex; justify-content: space-between; margin-bottom: 10px; }
.summary-total { display: flex; justify-content: space-between; font-size: 1.3em; color: #CC0717; font-weight: bold; border-top: 1px solid #ddd; padding-top: 15px; }

/* PayPal Button */
.paypal-submit { width: 100%; background: #FFC439; border: none; padding: 15px; font-weight: bold; border-radius: 5px; cursor: pointer; margin-top: 20px; font-size: 16px; }
.paypal-submit:hover { background: #f2ba36; }

/* Mobile */
@media (max-width: 768px) {
    .container { flex-direction: column; }
    .main { padding-right: 0; margin-bottom: 30px; }
}