/* Main Container */
.shop-container {
    margin: 0 auto;
    padding: 0px;
}

/* Two Column Product Layout */
.product-layout {
    display: flex;
    margin-bottom: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Main remove-item styles */
.remove-item {
    position: static !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    border: none !important;
    background: none !important;
    color: #dc3545 !important;
    margin-top: 8px !important;
    font-size: 24px !important;
    font-weight: bold !important;
}

.remove-item i::before {
    font-family: Arial, sans-serif !important;
    font-size: 24px !important;
    font-weight: bold !important;
}

/* Hide original icon */
.remove-item i.fas.fa-trash {
    display: none !important;
}

/* Force the cart-item-quantity to be above */
.cart-item-quantity {
    display: block !important;
    order: 1 !important;
}

.cart-item-actions {
    display: flex !important;
    flex-direction: column !important;
}

/* Force the cart-item-quantity to be above */
.cart-item-quantity {
    display: block !important;
    order: 1 !important;
}

.cart-item-actions {
    display: flex !important;
    flex-direction: column !important;
}


.product-image-col {
    flex: 0 0 40%;  /* This makes it take up 40% of the container width */
    position: relative;
}

.product-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px 0 0 8px;
}

.product-content-col {
    flex: 1;
    padding: 30px;
}

/* Product Content Styles */
.product-content-col h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.product-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Video Link */
/* Video Link Button */
.video-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
}

.video-link:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.video-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    color: white;
}

.video-link:hover:before {
    left: 100%;
}

.video-link i {
    font-size: 1.2em;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}
/* Price Tiers */
.price-tiers {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.price-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
}

.price-tier:last-child {
    border-bottom: none;
}

.price-tier span:first-child {
    color: #495057;
    font-weight: 500;
}

.price-tier span:last-child {
    color: #1a1a1a;
    font-weight: 600;
}

/* Quantity Control */
.add-to-cart-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

/* Quantity Control */
.flex.items-end.gap-4 div {
    display: flex;
    align-items: flex-end;
}
.quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-input {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
}

/* Buttons */
.search-btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.search-btn-primary {
    background: #4267B2;
    color: white;
}

.search-btn-primary:hover {
    background: #2d4373;
}

.search-btn-secondary {
    background: #e9ecef;
    color: #495057;
}

.search-btn-secondary:hover {
    background: #dee2e6;
}

/* Cart Modal Styles */
.search-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.search-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.search-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.search-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #1a1a1a;
}

.search-modal-close {
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.search-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* Cart Items in Modal */
.cart-item-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
}

.cart-item-image-container {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.cart-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.cart-item-price {
    color: #666;
    font-size: 14px;
}

.cart-item-quantity {
    margin-top: 8px;
    color: #495057;
}

.cart-item-actions {
    text-align: right;
}

.cart-item-subtotal {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

/* Cart Summary */
.cart-summary {
    border-top: 1px solid #e9ecef;
    padding: 20px;
    background: #f8f9fa;
}

.cart-summary-content > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cart-total-items {
    color: #666;
}

.cart-total-price {
    font-weight: 600;
}

.cart-discount span:last-child {
    color: #dc3545;
}

.cart-final-total {
    font-size: 18px;
    font-weight: 600;
    border-top: 1px solid #e9ecef;
    padding-top: 12px;
    margin-top: 12px;
}

/* Empty Cart State */
.empty-cart {
    text-align: center;
    padding: 40px 20px;
}

.empty-cart i {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 16px;
}

.empty-cart p {
    color: #666;
    font-size: 16px;
}

/* Modal Actions */
.search-form-actions {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 12px;
}

.search-form-actions button {
    flex: 1;
}

@media (max-width: 768px) {
        /* Force rowcard1 to match spacing */
    div.rowcard1[style] {
        margin: 0 !important;
        padding: 0 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .columncard1 {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .card1 {
        width: 100% !important;
        height: 160px !important;  /* Reduced height for mobile */
        margin: 0 !important;
        overflow: hidden !important;
    }
    /* Core container */
    .shop-container {
        padding: 0 4px !important;
        margin: 0 auto !important;
        width: 100% !important;
    }

    /* Product card */
    .product-layout {
        display: grid !important;
        grid-template-rows: auto 1fr !important;
        margin: 6px 0 !important;
        background: white !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }

    /* Product image */
    .product-image-col {
        aspect-ratio: 16/9 !important;
        width: 100% !important;
        height: auto !important;
        position: relative !important;
    }

    .product-image-col img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 8px 8px 0 0 !important;
    }

    /* Product content */
    .product-content-col {
        padding: 16px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    /* Typography */
    .product-content-col h1 {
        font-size: 18px !important;
        line-height: 1.4 !important;
        margin: 0 !important;
    }

    .product-description {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin: 0 !important;
    }

    /* Price tiers */
    .price-tiers {
        margin: 8px 0 !important;
        border-radius: 6px !important;
    }

    .price-tier {
        padding: 8px !important;
        font-size: 14px !important;
    }

    /* Form controls */
    .add-to-cart-form {
        margin-top: 8px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .quantity-input {
        width: 100% !important;
        height: 40px !important;
        font-size: 14px !important;
        text-align: center !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 4px !important;
    }

    /* Full screen modal */
    .search-modal {
        background: white !important;
        z-index: 99999 !important;
    }

    .search-modal-content {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        margin: 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Modal header */
    .search-modal-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        background: white !important;
        padding: 16px !important;
        border-bottom: 1px solid #e9ecef !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .search-modal-header h3 {
        margin: 0 !important;
        font-size: 18px !important;
    }

    /* Modal body */
    .search-modal-body {
        flex: 1 !important;
        overflow-y: auto !important;
        padding: 16px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Cart items */
    .cart-item-main {
        display: grid !important;
        grid-template-columns: 80px 1fr auto !important;
        align-items: center !important;  /* Align items vertically */
        gap: 12px !important;
        padding: 12px !important;
        position: relative !important;
    }

    .cart-item-image-container {
        width: 80px !important;
        aspect-ratio: 1 !important;
    }

    .cart-item-details {
        justify-self: start !important;  /* Align to start of grid cell */
        padding-right: 0 !important;     /* Remove padding that might affect alignment */
    }
    .cart-item-quantity {
        margin-top: 4px !important;      /* Small spacing after price */
    }
    .cart-item-actions {
        justify-self: end !important;    /* Align to end of grid cell */
        text-align: right !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        gap: 8px !important;
    }

    /* Repositioned remove item button to align with price */
    .remove-item {
        position: static !important;
        display: inline-block !important;
        width: auto !important;
        height: auto !important;
        margin-left: 8px !important;
        vertical-align: middle !important;
        color: #dc3545 !important;
    }

    /* Container for price and remove button */
    .price-remove-container {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
    }

    .remove-item {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        width: 32px !important;
        height: 32px !important;
    }

    /* Cart summary and actions */
    .cart-summary {
        padding: 16px !important;
        background: #f8f9fa !important;
        border-top: 1px solid #e9ecef !important;
    }

    .cart-final-total {
        font-size: 16px !important;
        margin-top: 8px !important;
        padding-top: 8px !important;
        border-top: 1px solid #e9ecef !important;
    }

    /* Footer actions */
    .search-form-actions {
        position: sticky !important;
        bottom: 0 !important;
        background: white !important;
        padding: 16px !important;
        border-top: 1px solid #e9ecef !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .search-form-actions button,
    .search-form-actions form,
    .search-form-actions form button {
        width: 100% !important;
        height: 48px !important;
        margin: 0 !important;
    }

    /* Form fields in modal */
    .search-form-group {
        margin-bottom: 16px !important;
    }

    .search-form-input {
        width: 100% !important;
        height: 40px !important;
        padding: 8px 12px !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 4px !important;
        font-size: 14px !important;
    }
}

/* Sticky Cart Button */
#stickyCart {
    position: fixed !important;
    left: 24px !important;
    bottom: 24px !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: #4267B2 !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    z-index: 9999 !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.2s ease !important;
}

#stickyCart:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2) !important;
    background: #365899 !important;  /* Darker blue on hover */
}

.cart-count {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: #dc3545 !important;
    color: white !important;
    font-size: 12px !important;
    font-weight: bold !important;
    min-width: 22px !important;
    height: 22px !important;
    border-radius: 11px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 6px !important;
    border: 2px solid white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Video Modal Styles */
.video-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
}

.video-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.close-video {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 10px;
    transition: transform 0.2s;
}

.close-video:hover {
    transform: scale(1.1);
}

/* Responsive adjustments for video modal */
@media (max-width: 768px) {
    .video-container {
        width: 95%;
    }
    
    .close-video {
        top: 10px;
        right: 10px;
        font-size: 24px;
    }
}

/* Add to existing CSS */
.cart-fields-section {
    padding: 20px;
    border-top: 1px solid #e9ecef;
}

.search-form-group {
    margin-bottom: 16px;
}

.search-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1a1a1a;
}

.required {
    color: #dc3545;
    margin-left: 4px;
}

.email-input-wrapper {
    position: relative;
}

.help-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #dc3545;
    font-size: 16px;
    cursor: help;
    animation: pulse 1s infinite;
}

.search-form-group.error .search-form-input {
    background-color: #fff2f2 !important;
}

.search-form-error {
    color: #ff6b6b !important;
    font-size: 13px !important;
    margin-top: 0px !important;
    font-weight: normal !important;
}

