@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* Global */
body {
    background: #f3f3f3;
}  

*, *::before, *::after {
    box-sizing: border-box;
}

img { max-width:100%; }

a {
  -webkit-transition: all 150ms ease;
  -moz-transition: all 150ms ease;
  -ms-transition: all 150ms ease;
  -o-transition: all 150ms ease;
  transition: all 150ms ease; 
  }
    a:hover {
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; /* IE 8 */
        filter: alpha(opacity=50); /* IE7 */
        opacity: 0.6;
        text-decoration: none;
    }


/* Container */
.container-fluid {
    background: #FFFFFF;
    margin: 40px auto 10px;
    padding: 20px 40px 0;
    max-width: 1600px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}


/* Page Header */
.page-header {
    background: #f9f9f9;
    margin: -30px -40px 40px;
    padding: 20px 40px;
    border-top: 4px solid #ccc;
    color: #999;
    text-transform: uppercase;
    }
    .page-header h3 {
        line-height: 0.88rem;
        color: #000;
        }



/* Thumbnail Box */
.caption h4 {
    font-size: 1rem;
    color: #444;
    }
    .caption p {
        font-size: 0.75rem;
        color: #999;
        }
        .btn.btn-mini {
            font-size: 0.63rem;
            }


/* Carousel Control */
.control-box {
    text-align: right;
    width: 100%;
    }
    .carousel-control{
        background: #666;
        border: 0px;
        border-radius: 0px;
        display: inline-block;
        font-size: 34px;
        font-weight: 200;
        line-height: 18px;
        opacity: 0.5;
        padding: 4px 10px 0px;
        position: static;
        height: 30px;
        width: 15px;
        }


/* Footer */
.footer {
    margin: auto;
    width: 100%;
    max-width: 960px;
    display: block;
    font-size: 0.69rem;
    }
    .footer, .footer a {
        color: #c9e4f7;
        }
        p.right  { 
            float: right; 
            }


/* Mobile Only */
@media (max-width: 767px) {
    .page-header, .control-box {
    text-align: center;
    } 
}
@media (max-width: 479px) {
    .caption {
    word-break: break-all;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #8b0000;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/* Featured Products Container */
#featuredContainer {
    position: relative;
    z-index: 3;
    width: 80%;
    top: 25%;
    margin: 80px auto;
    padding: 20px 0;
    height: 600px;
}

#featuredContainer h5{
    color: #000;
    font-size: 3.25rem;
    text-align: center;    
}

#featuredContainer p{
    color: #000;
    font-size: 1.3rem;
}

/* Featured Slider Layout */
.featured-slider {
    display: flex;
    justify-content: center;
    gap: 2%;
    width: 100%;
    padding: 0 0 20px 0;
    scroll-snap-type: x mandatory;
}

/* Featured Product Cards */
.featured-slider .card {
    flex: 0 0 32%; /* Each card takes ~32% of container (32% x 3 = 96% total) */
    max-width: 32%;
    min-width: 0; /* Allows flex items to shrink properly */
    scroll-snap-align: start;
    margin: 0 1%; /* Small margin between cards */
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    #featuredContainer {
        width: 90%;
    }
    
    .featured-slider .card {
        flex: 0 0 48%; /* 2 cards on tablet */
        max-width: 48%;
    }
}

@media (max-width: 768px) {
    #featuredContainer {
        width: 95%;
    }
    
    .featured-slider .card {
        flex: 0 0 100%; /* 1 card on mobile */
        max-width: 100%;
        margin: 0 10px;
    }
}

.featured-slider .card {
    height: 100%; /* Or fixed height if preferred */
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}

.featured-slider .card:hover{
    transform: scale(1.2) !important;
    margin-right: 120px;
    margin-left: 120px;
}


.featured-slider .card-img-top {
    height: 300px;
    object-fit: contain;
    background: #e9ecef;
    padding: 15px;
}

.featured-slider .btn {
    margin-top: auto; /* Pushes button to bottom */
    align-self: center;
    width: 90%;
}

/* Category Sliders */
.category-slider {
    position: relative;
    margin-bottom: 40px;
}

.category-slider-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0;
}

.category-slider-container .card {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
    min-width: 300px;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.slider-btn {
    pointer-events: all;
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.slider-btn:hover {
    background: white;
}

/* Hide scrollbar */
.category-slider-container::-webkit-scrollbar {
    display: none;
}

.category-slider-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Product Cards */
#products .card {
    width: 300px; /* Fixed width */
    height: 450px; /* Fixed height */
    display: flex;
    flex-direction: column;
    margin: 0 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#products .card .btn {
    margin-top: auto; /* Keep button at bottom */
    align-self: center; /* Center horizontally */
    width: auto; /* Let button size naturally */
    padding: 8px 20px; /* Adjust padding as needed */
    display: block; /* Make it a block element */
    margin-left: auto; /* Center with auto margins */
    margin-right: auto;
    background-color: #6e0e0f;
}

#products .card-img-top {
    width: 100%;
    height: 200px; /* Fixed image height */
    object-fit: contain; /* Ensures image fits without distortion */
    background: #f8f9fa;
    padding: 10px;
}

.featured-slider .card-body {
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure full height */
    padding: 15px;
}

.featured-slider .card .btn {
    margin-top: auto; /* Pushes to bottom */
    align-self: center !important; /* Force center alignment */
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
    width: fit-content; /* Adjusts to button content */
    min-width: 160px; /* Minimum width for better appearance */
    text-align: center;
}

.featured-slider .card .mt-auto {
    margin-top: auto !important;
}

.featured-slider .card .align-self-start {
    align-self: center !important;
    background: #6e0e0f;
}

#products .card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    height: 40px; /* Fixed height for title */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    color: #000;
    text-align: center;
}

#products .card-text {
    flex: 1;
    font-size: 1.1rem;
    margin-bottom: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limit to 4 lines */
    -webkit-box-orient: vertical;
    color: #000;
}

#products .btn {
    margin-top: auto; /* Pushes button to bottom */
    align-self: flex-start;
}

/* Adjust the slider container to account for fixed card sizes */
#products .category-slider-container {
    gap: 15px;
    padding: 20px 15px;
}

#products .category-slider-container .card {
    flex: 0 0 300px; /* Fixed width matching card width */
    scroll-snap-align: start;
}

#products .containter {
    max-width: 90%;
}

/* Add this to your NPCSS2.css file */
.category-slider {
    position: relative;
    margin-bottom: 40px;
    padding: 0 40px; /* Add padding to prevent buttons from overlapping content */
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 100; /* Ensure buttons stay above content */
    pointer-events: none; /* Allows clicks to pass through to elements below when button is hidden */
}

.slider-btn {
    pointer-events: all; /* Re-enable clicks on the buttons */
    background: rgba(139, 0, 0, 0.8); /* Using your theme's red color */
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    color: white;
    font-size: 1rem;
}

.slider-btn:hover {
    background: rgba(139, 0, 0, 1); /* Darker red on hover */
}

/* Ensure category titles don't overlap */
.category-title {
    margin-bottom: 20px;
    color: #8B0000; /* Your theme's red color */
    font-size: 1.5rem;
    padding-left: 10px;
}

/* Adjust the slider container */
.category-slider-container {
    scroll-padding: 0 40px; /* Ensure content isn't hidden behind buttons */
}

/* Update the container width */
#products .container {
    max-width: 95%;
    width: 95%;
    margin: 0 auto;
    padding: 0;
}

/* Adjust the category slider container */
.category-slider-container {
    width: 100%;
    padding: 20px 0;
}

/* Update the card sizing */
#products .card {
    width: 300px;
    height: 450px;
    margin: 0 10px;
    flex: 0 0 auto; /* Remove flex basis to prevent unwanted stretching */
}

/* Adjust slider controls positioning */
.slider-controls {
    width: calc(100% + 80px); /* Extend beyond container */
    left: -40px;
    right: -40px;
}

/* Make sure the category title aligns with the wider container */
.category-title {
    margin-left: 2.5%; /* Match the container offset */
}

@media (max-width: 768px) {
    #products .container {
        max-width: 100%;
        width: 100%;
        padding: 0 15px;
    }
    
    .slider-controls {
        width: calc(100% + 30px);
        left: -15px;
        right: -15px;
    }
    
    #products .card {
        width: 280px; /* Slightly smaller cards on mobile */
        margin: 0 5px;
    }
}


#fillingbg{
    font-family: 'Bebas Neue', cursive;
    font-size: 3em;
    position: absolute;
    top: 24%;
    left: 65%;
    transform: translate(-50%,-50%);
    background-image: linear-gradient(#6e0e0f, #6e0e0f);
    background-size: 100% 10px;
    background-repeat: no-repeat;
    background-position: 100% 0%;
    transition: background-size .7s, background-position .5s ease-in-out;
}

#fillingbg:hover{
    background-size: 100% 100%;
    background-position: 0% 100%;
    transition: background-position .7s, background-size .5s ease-in-out;
}

#hovertxt h1{
    font-family: 'Bebas Neue', cursive;
    font-size: 3em;
    position: absolute;
    top: 12%;
    left: 15%;
    --s: 0.1em;   /* the thickness of the line */
    --c: #6e0e0f; /* the color */
    
    color: #0000;
    padding-bottom: var(--s);
    background: 
        linear-gradient(90deg,var(--c) 50%,white 0) calc(100% - var(--_p,0%))/200% 100%,
        linear-gradient(var(--c) 0 0) 0% 100%/var(--_p,0%) var(--s) no-repeat;
    -webkit-background-clip: text,padding-box;
            background-clip: text,padding-box;
    transition: 0.5s;  
}

#hovertxt h1:hover{--_p: 100%}

#NewArrivalsImg img{
    width: 100%;
    height: auto;
    opacity: 1;
}

@media (max-width: 768px) {
  .overlay-image {
    width: 200px;
    top: 40%;
  }
  
  .featured-overlay {
    width: 100px;
    top: 10px;
    right: 10px;
  }
}

/* Featured Product Cards - Initial State (Image Only) */
.featured-slider .card {
    overflow: hidden;
    transition: all 0.3s ease;
}

.featured-slider .card .card-body {
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
    height: 0;
    padding: 0;
    margin: 0;
}

.featured-slider .card-img-top {
    height: 100% !important;
    object-fit: cover;
    transition: all 0.3s ease;
}

/* Featured Product Cards - Hover State (Full Card) */
.featured-slider .card:hover {
    transform: scale(1.2) !important;
    margin-right: 120px !important;
    margin-left: 120px !important;
}

.featured-slider .card:hover .card-body {
    transform: translateY(0);
    opacity: 1;
    height: auto;
    padding: 15px;
    margin: 0;
}

.featured-slider .card:hover .card-img-top {
    height: 300px !important;
    object-fit: contain;
}

/* Ensure the card maintains its size during transition */
.featured-slider .card {
    height: 600px !important;
}

/* Adjust the image container to fill the card initially */
.featured-slider .card > a,
.featured-slider .card > img {
    display: block;
    height: 100%;
    width: 100%;
}

.featured-slider .card > a img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Fix the hover effect for mobile */
@media (max-width: 768px) {
    .featured-slider .card:hover {
        transform: none !important;
        margin-right: 10px !important;
        margin-left: 10px !important;
    }
}

.tm-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

.tm-navbar.hidden {
    transform: translateY(-100%);
}

.category-slider-container {
    position: relative;
    mask-image: linear-gradient(
        to right, 
        rgba(240, 240, 240, 0) 0%, 
        rgba(240, 240, 240, 1) 30px, 
        rgba(240, 240, 240, 1) calc(100% - 30px), 
        rgba(240, 240, 240, 0) 100%
    );
    -webkit-mask-image: linear-gradient(
        to right, 
        rgba(240, 240, 240, 0) 0%, 
        rgba(240, 240, 240, 1) 30px, 
        rgba(240, 240, 240, 1) calc(100% - 30px), 
        rgba(240, 240, 240, 0) 100%
    );
}

/* Adjust the slider controls container */
.slider-controls {
    pointer-events: none;
}

/* Style the slider buttons */
.slider-btn {
    pointer-events: all;
    background: rgba(110, 14, 15, 0.7); /* Your theme color with transparency */
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: rgba(110, 14, 15, 1); /* Solid color on hover */
}

/* Hide buttons when not needed */
.slider-btn.hidden {
    opacity: 0;
    pointer-events: none;
}


/* ADD-ON
-------------------------------------------------- */
body:after{display:none;content:"less than 320px";font-size:1rem;font-weight:bold;position:fixed;bottom:0;width:100%;text-align:center;background-color:hsla(1,60%,40%,0.7);color:#fff;height:20px;padding-top:0;margin-left:0;left:0}@media only screen and (min-width:320px){body:after{content:"320 to 480px";background-color:hsla(90,60%,40%,0.7);height:20px;padding-top:0;margin-left:0}}@media only screen and (min-width:480px){body:after{content:"480 to 768px";background-color:hsla(180,60%,40%,0.7);height:20px;padding-top:0;margin-left:0}}@media only screen and (min-width:768px){body:after{content:"768 to 980px";background-color:hsla(270,60%,40%,0.7);height:20px;padding-top:0;margin-left:0}}@media only screen and (min-width:980px){body:after{content:"980 to 1024px";background-color:hsla(300,60%,40%,0.7);height:20px;padding-top:0;margin-left:0}}@media only screen and (min-width:1024px){body:after{content:"1024 and up";background-color:hsla(360,60%,40%,0.7);height:20px;padding-top:0;margin-left:0}}

::selection { background: #ff5e99; color: #FFFFFF; text-shadow: 0; }
::-moz-selection { background: #ff5e99; color: #FFFFFF; }

a, a:focus, a:active, a:hover, object, embed { outline: none; }
:-moz-any-link:focus { outline: none; }
input::-moz-focus-inner { border: 0; }