/* Landing Page Styles - Thumbnail Sizing and Layout */

/* Banner Section with Content */
.lp-banner {
    padding: 40px 0;
    margin-bottom: 30px;
}

.lp-banner-text {
    text-align: center;
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

/* .lp-banner .row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: center;
} */
.lp-banner .row {
    display: flex;
	flex-wrap:unset;
    gap: 20px;
    align-items: center;
	justify-content:center;
}

/* .lp-banner .row .banner-col-lp {width: calc(25% - 20px);} */
.lp-banner .row .banner-col-lp { width: 100%; flex: auto; }
.lp-banner .banner-col-lp img { height: auto !important; }

.lp-banner .col-sm-3 {
    width: 100%;
    margin-bottom: 0;
}

.lp-banner .col-sm-3 a {
    /* display: block;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
}

.lp-banner .col-sm-3 a:hover {
    /* transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); */
}

.lp-banner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

/* Fixed thumbnail size for all images */
.lp-thumbnail {
    height: 200px !important;
}

.lp-banner .col-sm-3 a:hover img {
    transform: scale(1.05);
}

/* Custom Block Section */
.lp-custom-block {
    padding: 40px 0;
    margin-bottom: 30px;
}

.lp-custom-block .row {
    /* display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: center; */
	justify-content: center;
  display: flex;
}

.lp-custom-block .col-sm-3 {
    /* width: 100%;
    margin-bottom: 0; */
}

.lp-custom-block .col-sm-3 a {
    /* display: block;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
}

.lp-custom-block .col-sm-3 a:hover {
    /* transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); */
}

.lp-custom-block img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.lp-custom-block .col-sm-3 a:hover img {
    transform: scale(1.05);
}

.lp-custom-block h3 {
    margin-top: 14px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.lp-custom-block h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lp-custom-block h3 a:hover {
    color: #007bff;
}

/* Attributes Section */
.lp-attributes {
    padding: 40px 0;
    margin-bottom: 30px;
}

.lp-attributes .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.lp-attributes .col-sm-2 {
    flex: 0 0 calc(16.666% - 16px);
    max-width: calc(16.666% - 16px);
    text-align: center;
    margin-bottom: 20px;
}

.lp-attributes img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 10px;
}

.lp-attributes .col-sm-2:hover img {
    transform: scale(1.05);
}

.lp-attributes .col-sm-2 div {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .lp-banner .row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .lp-custom-block .row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .lp-attributes .col-sm-2 {
        flex: 0 0 calc(20% - 16px);
        max-width: calc(20% - 16px);
    }
}

@media (max-width: 992px) {
    .lp-banner .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .lp-custom-block .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .lp-attributes .col-sm-2 {
        flex: 0 0 calc(25% - 16px);
        max-width: calc(25% - 16px);
    }
    
    .lp-banner img {
        height: 180px;
    }
    .lp-custom-block img {
        height: 180px;
    }
    
    .lp-attributes img {
        height: 100px;
    }
}

@media (max-width: 768px) {
    .lp-banner {
        padding: 30px 0;
    }
    
    .lp-banner .row { gap: 15px; }
    
    .lp-banner .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    
    .lp-attributes .col-sm-2 {
        flex: 0 0 calc(33.333% - 10px);
        max-width: calc(33.333% - 10px);
    }
    
    .lp-banner img {
        height: 160px;
    }
    .lp-custom-block img {
        height: 160px;
    }
    
    .lp-attributes img {
        height: 90px;
    }
    
    .lp-custom-block h3 { font-size: 20px; }
}

@media (max-width: 576px) {
    .lp-banner .row { grid-template-columns: 1fr; }
    .lp-custom-block .row { grid-template-columns: 1fr; }
    
    .lp-attributes .col-sm-2 {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
    
    .lp-banner img {
        height: 200px;
    }
    .lp-custom-block img { height: 200px; }
    
    .lp-attributes img {
        height: 100px;
    }
    
    .lp-banner-text {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .lp-custom-block { padding: 30px 0; }
    .lp-custom-block h3 { font-size: 18px; }
}

/* Admin Interface Enhancements */
.lp-image-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.lp-image-row .single-image-wrapper {
    flex: 0 0 200px;
}

.lp-image-row .form-control {
    flex: 1;
    margin-bottom: 10px;
}

.lp-image-row .btn-danger {
    flex: 0 0 auto;
    align-self: flex-start;
    margin-top: 0;
}

.image-holder {
    width: 100%;
    height: 120px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.image-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.image-holder.placeholder {
    color: #6c757d;
    font-size: 24px;
}

.image-holder .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.image-holder .remove-image:hover {
    background: rgba(255, 255, 255, 1);
}

/* Thumbnail Size Options */
.lp-thumbnail-size-controls {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.lp-thumbnail-size-controls label {
    font-weight: 600;
    margin-right: 15px;
}

.lp-thumbnail-size-controls select {
    margin-right: 15px;
}

/* Loading States */
.lp-image-loading {
    opacity: 0.6;
    pointer-events: none;
}

.lp-image-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #007bff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* RDG */
.banner-col-lp img {
  max-width: 100%;
}
.banner-section-lp {
  margin: 145px 0 0;
  padding: 80px 0px;
}
.lp-banner-text, .lp-section-title {
  margin: 0 0 20px 0;
  padding: 0 0 15px;
  text-align: center;
  text-transform: uppercase;
  font-size: 31px;
  line-height: 1.2;
  color: #000 !important;
  border-radius: 40px;
  width: 100%;
  display: inline-block;
  font-weight: bold;
}
.lp-banner-text h2 {text-align: center; text-transform: uppercase; font-size: 31px;margin: 0;}
.banner-section-lp {background: #ebe2d7;}
.banner-section-lp .banner-col-lp a {border-radius:0; background:#fff; box-shadow:none;}
.lp-custom-content , .lp-categories, .lp-products, .lp-custom-block { padding: 0px 0px 80px 0px;background: #ebe2d7; margin: 0;}
.lp-categories-col {}
.lp-categories-ttl, .lp-product-title { text-align: center; text-transform: uppercase; font-weight: bold; margin-top: 14px; float: left; width: 100%; }
.lp-categories-img { background: #fff; border-radius: 15px; overflow: hidden; }
.lp-categories-img img { width: 100%; height: 325px !important; object-fit: cover; border-radius: 15px; }
.lp-custom-content img { max-width: 100%; }
.lp-products .products.wrapper { background: none; }
.lp-product-title a { text-align: center; text-transform: uppercase; font-weight: bold; }
.lp-products .product-grid {display: flex; flex-wrap: wrap; justify-content: center;} 
.lp-products .product-grid .product-item {width:calc(33.33% - 30px)} 
.lp-products .product-grid .product-item .lp-categories-img img {border-radius: 0px;} 

/* Home page */
.part-100 { width: 100%; display: flex; gap: 30px; flex-wrap: wrap; }
.part-50 { width: calc(50% - 15px); }
.lp-custom-block .row {flex-wrap: unset;}
.lp-custom-block .lp-custom-block-col {width:100%; flex: auto;}
.lp-custom-content p:last-child { margin-bottom: 0; }
/* End Home page */
.lp-categories .row {gap: 30px 0;}

@media (max-width: 767px) {
.lp-banner-text h2, .lp-banner-text, .lp-section-title {font-size: 22px;}	
.lp-custom-content, .lp-categories, .lp-products, .lp-custom-block {padding-bottom:40px;}
.banner-section-lp { margin: 175px 0 0; padding: 40px 0px; }
.lp-categories-col { margin-bottom: 20px; }
.lp-categories-col:last-child { margin-bottom: 0px; }
.lp-products ol.product-grid {grid-gap: 0;}
.lp-products .product-grid .product-item, .lp-banner .row .banner-col-lp {width:100%;}
.lp-banner .row {flex-wrap: wrap;}
 
/* Home page */
.part-100 { gap: 15px; }
.part-50 { width: 100%; }
.lp-custom-block .lp-custom-block-col {width: 50%; max-width: 50%;}
.lp-custom-block .row { flex-wrap: wrap; gap:30px 0px;}
/* End Home page */
.lp-categories .row {gap: 0;}
}