/* Add here all your CSS customizations */
.category-item {
    transition: transform 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.category-item:hover {
    transform: scale(1.05);
}

.category-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.category-name {
    font-size: 0.9rem;
    margin-top: 5px;
}




/* Filter */

#filterAccordion .card-header {
    padding: 0;
}

#filterAccordion .btn-link {
    color: #333;
    text-decoration: none;
}

#filterAccordion .btn-link:hover,
#filterAccordion .btn-link:focus {
    text-decoration: none;
}

#filterAccordion .btn-link[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

#filterAccordion .fa-chevron-down {
    transition: transform 0.2s ease-in-out;
}


/* Product Detail */

/* Add here all your CSS customizations */

/* Existing styles... */

/* Product Page Styles */
.product-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.price-box {
    margin-bottom: 1rem;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.new-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.discount-badge {
    background-color: #e74c3c;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.9rem;
    margin-left: 10px;
}

.payment-plan {
    font-size: 0.9rem;
    color: #666;
}

.shipping-info {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.rating {
    margin-bottom: 1rem;
}

.short-description {
    margin-bottom: 1rem;
}

.short-description h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.short-description ul {
    padding-left: 20px;
}

.warranty-info {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.quantity-input {
    max-width: 120px;
}

.quantity-input .form-control {
    text-align: center;
}

.btn-add-to-cart {
    width: 100%;
    padding: 10px;
    font-size: 1.1rem;
}

.social-share {
    margin-top: 1rem;
}

.social-share span {
    margin-right: 10px;
}

.social-share a {
    color: #333;
    margin-right: 10px;
    font-size: 1.2rem;
}

.product-image {
    border: 1px solid #e0e0e0;
    padding: 10px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .product-title {
        font-size: 1.5rem;
    }

    .new-price {
        font-size: 1.2rem;
    }
}

/* Chrome, Safari, Edge, Opera */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.quantity-input[type=number] {
    -moz-appearance: textfield;
}

.cart-button {
    background-color: #2d5a9f;
}

.cart-button-li:hover {
    background-color: white;
}

/* Cart Page Styles */
.shop_table.cart {
    width: 100%;
    border-collapse: collapse;
}

.shop_table.cart th,
.shop_table.cart td {
    padding: 5px 15px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #e0e0e0;
}

.shop_table.cart th {
    /* background-color: #f8f9fa; */
    font-weight: 600;
    color: black;
}

.shop_table.cart span {
    color: black;
    font-weight: 500;
}

.shop_table.cart .product-remove {
    width: 30px;
}

.shop_table.cart .product-thumbnail {
    width: 80px;
}

.shop_table.cart .product-name {
    width: 40%;
}

.shop_table.cart .product-price,
.shop_table.cart .product-quantity,
.shop_table.cart .product-subtotal {
    width: 20%;
}

.shop_table.cart .product-thumbnail img {
    max-width: 60px;
    height: auto;
}

.shop_table.cart .quantity {
    display: flex;
    align-items: center;
}

.shop_table.cart .quantity input[type="button"] {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    padding: 5px 10px;
    cursor: pointer;
}

.shop_table.cart .quantity input[type="number"] {
    width: 50px;
    text-align: center;
    border: 1px solid #ced4da;
    padding: 5px;
    margin: 0 5px;
}

.shop_table.cart .remove {
    color: #dc3545;
    font-size: 1.5rem;
    text-decoration: none;
}

@media (max-width: 768px) {

    .shop_table.cart .product-thumbnail,
    .shop_table.cart .product-price {
        display: none;
    }

    .shop_table.cart .product-name {
        width: 50%;
    }

    .shop_table.cart .product-quantity,
    .shop_table.cart .product-subtotal {
        width: 25%;
    }
}

/* Gulf-O-Flex Hero Section Styles */
.hero-section {
    position: relative;
    background: #000;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.hero-section .video-background {
    overflow: hidden;
}

.hero-video {
    pointer-events: none;
    display: block;

    /* Ensure video covers entire viewport on all screen sizes */
    min-width: 100vw !important;
    min-height: 100vh !important;
}

/* If viewport is wider than 16:9, scale by width */
@media (min-aspect-ratio: 16/9) {
    .hero-video {
        width: 100vw !important;
        height: calc(100vw * 9/16) !important;
    }
}

/* If viewport is taller than 16:9, scale by height */
@media (max-aspect-ratio: 16/9) {
    .hero-video {
        width: calc(100vh * 16/9) !important;
        height: 100vh !important;
    }
}

.hero-section .hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section .hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
}

.hero-section .text-warning {
    color: #ffc107 !important;
}

.hero-section .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
    transition: all 0.3s ease;
}

.hero-section .btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    transform: translateY(-2px);
}

.hero-section ul li {
    font-size: 1.1rem;
}

.hero-section .fas.fa-check-circle {
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-section .hero-title {
        font-size: 2.8rem;
    }

    .hero-section h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh !important;
    }

    .hero-section .hero-title {
        font-size: 2.2rem;
    }

    .hero-section h3 {
        font-size: 1.4rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .hero-section ul li {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 50vh !important;
    }

    .hero-section .hero-title {
        font-size: 1.8rem;
    }

    .hero-section h3 {
        font-size: 1.2rem;
    }

    .hero-section .lead {
        font-size: 0.9rem;
    }

    .hero-section ul li {
        font-size: 0.85rem;
    }

    .hero-section .btn-warning {
        font-size: 0.9rem !important;
        padding: 12px 20px !important;
    }
}

/* New Arrivals Responsive Layout */
/* Desktop: 5 items per row (20% each) - hide 6th item */
@media (min-width: 993px) {
    .col-new-arrivals:nth-child(6) {
        display: none !important;
    }
}

/* Mid-level screens: 4 items per row (25% each) - hide 5th and 6th items */
@media (max-width: 992px) and (min-width: 769px) {
    .col-new-arrivals {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }

    .col-new-arrivals:nth-child(5),
    .col-new-arrivals:nth-child(6) {
        display: none !important;
    }
}

/* Mobile/Tablet: 2 items per row (50% each) */
@media (max-width: 768px) {
    .col-new-arrivals {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

@media (max-width: 576px) {
    .col-new-arrivals {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-right: 10px !important;
        padding-left: 10px !important;
    }
}

/* ==================================================
   Loading Overlay: Logo Styles (Frontend Preloader)
   ================================================== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: #ffffff;
    /* fallback – actual overlay BG comes from theme */
    z-index: 1000;
    /* sit above everything */
}

/* Center the logo inside overlay */
.loading-overlay-logo-container {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -100%);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 100px;
    animation: logoZoomPulse 3s ease-in-out infinite;
}

@keyframes logoZoomPulse {
    0% {
        transform: translate(-50%, -100%) scale(1);
    }

    50% {
        transform: translate(-50%, -100%) scale(1.06);
    }

    100% {
        transform: translate(-50%, -100%) scale(1);
    }
}

.loading-overlay-logo {
    max-width: 220px;
    /* adjust as needed */
    width: 35vw;
    /* responsive scaling */
    height: auto;
}