﻿

.main-banner {
    width: 100%;
    height: 70%;
}
.banner-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 55px;
}


.banner-container img:hover {
    cursor: pointer;
}

.container-section{
    display: flex;
    justify-content: center;
}



.popular-announcement {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 100px;
}

.product-h1 {
    text-align: center;
    margin-right: 5px;
    margin-left: 5px;
    font-size: 50px;
    margin-bottom: 0;
}

.products-display-grid {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 32px;
}

.products-display-grid {
    column-gap: 40px;
    row-gap: 40px;
    justify-content: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

.product-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding-bottom: 15px;
    overflow: visible;
    background: #1C1C1E;
    border: solid 1px #2F2F33;
    box-shadow: 0 4px 6px rgba(0,0,0,.05), 0 10px 25px rgba(0,0,0,.08);
    border-radius: 16px;
    padding: 12px;
    width: 100%;
    flex: 0 0 auto;
    width: 400px;
    transition: transform 0.3s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    will-change: transform;
}

.carousel-container {
    position: relative;
    width: 90%;
    padding: 0 40px; 
    box-sizing: border-box;
}

.carousel-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-inline-start: 40px;
    padding-inline-end: 40px;
    scroll-padding-left: 40px;
    padding: 40px;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}


.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: black;
    color: white;
    border: none;
    font-size: 28px;
    padding: 10px 15px;
    cursor: pointer;
}

.carousel-btn.left {
    left: -15px;
}

.carousel-btn.right {
    right: -15px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: rgba(20, 20, 20, 0.85);
    color: #D4AF37;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(6px);
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
    background: rgba(212, 175, 55, 0.15);
    border-color: #D4AF37;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(212, 175, 55, 0.8);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 18px rgba(212, 175, 55, 0.25);
}

.product-card-image {
    width: 100%;
    height: 400px;
}


.details-link {
    color: black;
}

.details-link:hover {
    color: black;
}

.product-info {
    padding-left: 15px;
    position: relative;
}


.product-name-container {
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 3px;
}

.product-name {
    font-size: 26px;
    margin-top: 10px;
    max-width: 100%;
    color:white;
    font-weight:700;
    height: 62px;
}

.product-category {
    color: #9CA3AF;
    font-size: 20px;
    margin-top: 5px;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: .3px;
    color: rgb(231,196,123);
    margin-bottom: 20px;
    margin-top: 10px;
}

.product-buttons-flexbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 15px;
}


.product-add-to-cart-button,
.product-add-to-cart-button-disabled,
.send-message-button {
    color: white;
    transition: background-color 0.5s, box-shadow 0.5s;
    white-space: nowrap;
    color: #111;
    background: linear-gradient(135deg, #d6b36a, #f5d38a);
    border-radius: 12px;
    cursor: pointer;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: center;
    padding: 10px 30px;
    background-color: black;
    border: none;
    font-weight: bold;
}

.details-button,
.page-button {
    padding: 10px 30px;
    color: #d6b36a;
    background: transparent;
    border: 1px solid rgba(214,179,106,.45);
    border-radius: 12px;
    transition: all .3s ease;
    cursor: pointer;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}


.product-add-to-cart-button:hover,
.send-message-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212,175,55,.35);
    background: linear-gradient(135deg,#f5d38a,#d6b36a);
    text-decoration: none;
    color: #111;
    font-weight: bold;
}

.product-add-to-cart-button-disabled:hover{
    cursor: default;
}


.out-of-stock-message-container {
    position: relative;
    display: inline-block;
    overflow: visible;
    width:100%;
}

.disabled-add-to-card-container:hover .out-of-stock-message {
    display: block;
}

.out-of-stock-message {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 7px;
    background: white;
    z-index: 1000;
}

.disabled-add-to-card-container{

    display: flex;
    flex-direction: column;
    align-items: center;
}


.details-button:hover,
.page-button:hover {
    background: rgba(214,179,106,.08);
    border-color: #d6b36a;
    color: #f5d38a;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(212,175,55,.18);
    text-decoration: none;
}

.page-button-active {
    background: linear-gradient(135deg, #d6b36a, #f5d38a);
    color: #111;
}

.product-add-to-cart-button:hover {
    background-color: black;
    cursor: pointer;
}

.image-card {
    padding: 20px;
}

.product-buttons-column-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 15px;
}

.add-product-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.product-rating{
    display: flex;
    column-gap: 5px;
}

.star-icon{
    height: 20px;
    width: 20px;
    color: white;
}

.pagination-container {
    display: flex;
    justify-content: center;
}