
.pre-footer, .footer-bottom .my-container, .cart-icon-container, .productCardDetail,
.footer-bottom .my-container .paymentMethods, .add-to-cart-btn, .cart-items-action{
    display:flex; align-items:center;
}

.w-full{width:100%;}

/************* Header style *************/
/* Header Styles */
.store-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;top: 0;left: 0;right: 0;
    z-index: 1000;
    padding: 10px 0;
    min-height:90px;
    max-height:90px;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-container{
    height:70px; overflow:hidden;
}
.store-logo {
    height:70px;width:auto;max-width:200px;
}
.cart-icon-container {
    width:40px;height:40px; justify-content:center;
    position: relative;
    cursor: pointer;
    border: rgba(0, 0, 0, 0.22) solid 1px;
    border-radius:100%;
}
.cart-icon {
    font-size:20px;
    color: #333;
}
.item-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #31b027;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

/************** Main Content *************/
.main-content {
    padding-top:85px;padding-bottom: 0;
    min-height: calc(100vh - 200px);
}


/* Product Grid */
.product-grid { 
    display:grid;
    align-items: center;
    justify-content: center;
    margin:30px 0; 
    gap:20px;}
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
.product-card {
    background-color: #ffff;
    padding: 10px;
    border: rgba(0, 0, 0, 0.05) solid 1px;
}
.product-image-container {
    width:100%;min-height:160px;
    position: relative;overflow: hidden;
    padding-top: 95%; border-radius:8px;
    background-color: rgba(0, 0, 0, 0.02);
}
.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit:cover;
    transition: transform 0.3s ease;
}
.product-title {
    font-family: "Poppins", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin:12px 0 8px;
    color: #333;
}
.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
    color: #31b027;
    margin-bottom: 10px;
}
.product-description {
    min-height: 60px;
    font-family: "Poppins", sans-serif;
    color: #666;
    font-size:0.8rem;
    margin-bottom: 10px;
}
.card-action {
    width:100%;display:inline-block;
    padding:10px 0 5px;
    border-top: 1px solid #eee;
}
.add-to-cart-btn {
    background: #31b027;
    color: white;min-height:43px;
    width: 100%;justify-content: center;
    border-radius:8px;font-weight: 500;transition: background 0.3s ease;
}
.add-to-cart-btn:hover {
    background: #2a9a20;
}

.welcome-section{
    width:100%;padding:10px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    animation: slideDown 0.35s ease-out;
}
.store-welcome-message {
    font-size:1rem;
    color: #333;font-weight: 500;text-align:center;
}
.pre-footer{
    padding:10px 0 10px;
    flex-direction:column;
}
footer p{
    font-size:15px;
    margin:10px 0 !important;
}

.footer-bottom{
    background-color:#1b1b1b;padding:12px 10px;
}
.footer-bottom .my-container{
   justify-content:space-between;gap:15px;
    flex-direction:column;
}
.footer-bottom .my-container .paymentMethods{
    flex-direction:column;
    justify-content:center;
}
.footerLinks{
    font-size:14px;color: #aaaaaa;
}
.footerLinks a{color: #aaaaaa;}
.footerLinks a:hover{color: #FFF;}
.footerLinks span{margin:0 8px;}
.powered-by-logo {
    height: 40px;
}
.powered-by-text {
    opacity: 0.8;
}
.payment-methods {
    margin-bottom: 20px;
}

#add-product-to-cart, #checkout-modal {
    overflow-y:auto;
}
.productCardDetail{
    gap:20px;
    flex-direction:column;
}
.product-modal-image-container{
    width:100%;max-height:420px; height:420px;
    position: relative;background-color: rgba(0, 0, 0, 0.02);
    border-radius:8px;
    overflow: hidden;
}
.product-modal-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-modal-actions {
    display: flex; gap:15px;
    align-items: center;
    margin-top: 30px;
}

.quantity-input {width:90%;margin:0;}
.quantity-input input {
    text-align: center;font-size: 1rem;
}
.quantity-input {
    width:90%;text-align: center;border: none;
}

@media (min-width: 768px) {
    .productCardDetail{
        flex-direction:row;
    }
    .product-modal-image-container{
        width:33.3333%;
    }
    .productDetails{
        max-width:66.6666%;
    }

    .footer-bottom .my-container{
        flex-direction:row-reverse !important;
    }
}

.cart-item-variants{
    font-size:13px;
}
.cart-items-action{
    justify-content:space-between;
    gap:2px;
}
.cart-items-action .cart-item-quantity{gap:5px;}
.cart-item-quantity .btn-sm{
    width:30px;height:30px;
    display:flex;align-items:center;justify-content:center;
    background-color:#fff;font-size:18px;
    border: rgba(0, 0, 0, 0.16) solid 1px;
    border-radius:5px;
}
.cart-item-quantity .quantity {
    width:20px;padding:0;text-align:center;font-weight:600;
}
.cart-item-quantity .btn-sm.btn-danger {
    color:#fff;background-color:#bb2f2f;
}
.cart-item-quantity .btn-sm.btn-danger i {
    font-size:16px;
}

.checkout-btn {
    background: #31b027;
    color: white;
    width: 100%;min-height:48px;border-radius:8px;
    font-weight: 500;
    padding: 10px;
    transition: background 0.3s ease;
    line-height: 0;
}
.checkout-btn:hover {
    background: #2a9a20;
}

.swal2-modal .swal2-title {
    color: #222222;
    font-size: 22px;
    margin: 10px 0 0.5em;
}
.swal2-modal .swal2-content{
    font-size: 15px;
}
.swal2-modal .swal2-styled{
    border-radius: 8px;
    font-size: 16px;
    margin: 10px 5px 0;padding: 10px 32px;
    min-height: 45px;
}

.checkout-modal {
    max-width: 800px;
    width: 90%;
    margin: 15px auto;
}
.checkout-title {
    font-size: 1.2rem;
    margin-bottom:10px;
    color: #444;font-weight:600;
}
.checkout-modal .input-field{
    margin-top:0 !important;
}
.checkout-modal .input-field input{
    margin:0 !important;
}

.paymentInfoBox{
    padding:13px !important;
    border: rgba(0, 0, 0, 0.09) solid 1px;
    border-radius:8px;
}
.paymentInfoBox .section-title{
    font-size:16px;font-weight:600;
    margin-top:0 !important;
}
.paymentInfoBox .row{
    margin-bottom:0 !important;
}
@media only screen and (min-width: 601px) {
    #checkout-form .row .col.m6 {
        width: 48.5%;
    }
}
