/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Header Styles */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    font-size: 14px;
}

/* Categories Slider */
.categories-slider-section {
    background: #fff;
}

.categories-slider {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0;
    scrollbar-width: thin;
}

.categories-slider::-webkit-scrollbar {
    height: 5px;
}

.categories-slider::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.category-item {
    flex: 0 0 auto;
    width: 120px;
    text-align: center;
}

.category-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    background: #f8f9fa;
    padding: 5px;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Product Cards */
.product-card {
    background: white;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    transition: bottom 0.3s ease;
}

.product-card:hover .product-actions {
    bottom: 0;
}

.btn-quick-view,
.btn-add-cart {
    border: none;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-quick-view {
    background: #333;
    color: white;
}

.btn-add-cart {
    background: #4a6bff;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    height: 40px;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 16px;
    font-weight: 700;
    color: #4a6bff;
}

.compare-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.product-rating {
    font-size: 12px;
}

/* Sliders */
.slider-container {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.slider-item {
    position: relative;
    height: 100%;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Section Titles */
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #4a6bff;
}

/* Products Slider */
.products-slider {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0;
}

.product-slide-item {
    flex: 0 0 auto;
    width: 200px;
}

.btn-add-to-cart {
    width: 100%;
    background: #4a6bff;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-add-to-cart:hover {
    background: #3a5bff;
}

/* Categories Slider - Fix for round images */
.categories-slider-section {
    background: #f8f9fa;
    padding: 20px 0;
}

.categories-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 15px 0;
    scrollbar-width: thin;
}

.categories-slider::-webkit-scrollbar {
    height: 6px;
}

.categories-slider::-webkit-scrollbar-thumb {
    background: #80b704;
    border-radius: 10px;
}

.category-item {
    flex: 0 0 auto;
    text-align: center;
    width: 120px;
}

.category-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.category-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 5px 0 0;
    transition: color 0.3s;
}

.category-item:hover .category-name {
    color: #80b704;
}

/* Product Cards - Make entire card clickable */
.product-card {
    background: white;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Remove default link styles from product title */
.product-title.text-dark:hover {
    color: #80b704 !important;
}

/* Update quick view button to prevent link following */
.btn-quick-view {
    border: none;
    padding: 8px 15px;
    font-size: 12px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 10;
}

.btn-quick-view:hover {
    background: #80b704;
}

/* Social Login Buttons */
.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    color: #333;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.social-btn.google-btn:hover {
    border-color: #DB4437;
    color: #DB4437;
    background: rgba(219, 68, 55, 0.05);
}

.social-btn.facebook-btn:hover {
    border-color: #4267B2;
    color: #4267B2;
    background: rgba(66, 103, 178, 0.05);
}

.social-btn.apple-btn:hover {
    border-color: #000000;
    color: #000000;
    background: rgba(0, 0, 0, 0.05);
}

.social-btn i {
    font-size: 20px;
}

.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #666;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    padding: 0 15px;
    background: white;
    font-size: 14px;
    font-weight: 500;
}

/* Social Registration Buttons */
.social-registration-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.social-register-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    background: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-register-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.social-register-btn:hover::before {
    left: 100%;
}

.social-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.social-register-btn.google-btn:hover {
    border-color: #DB4437;
    background: rgba(219, 68, 55, 0.03);
}

.social-register-btn.facebook-btn:hover {
    border-color: #4267B2;
    background: rgba(66, 103, 178, 0.03);
}

.social-register-btn.apple-btn:hover {
    border-color: #000000;
    background: rgba(0, 0, 0, 0.03);
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}

.social-register-btn.google-btn .social-icon {
    background: #DB4437;
}

.social-register-btn.facebook-btn .social-icon {
    background: #4267B2;
}

.social-register-btn.apple-btn .social-icon {
    background: #000000;
}

.social-text {
    flex: 1;
}

.social-title {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.social-subtitle {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
    .social-register-btn {
        padding: 15px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .social-title {
        font-size: 15px;
    }

    .social-subtitle {
        font-size: 12px;
    }
}

.debug-mode {
    position: relative;
    border-style: dashed !important;
}

.debug-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b6b;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.debug-mode.google-btn {
    border-color: #DB4437 !important;
    background: rgba(219, 68, 55, 0.05);
}

.debug-mode.facebook-btn {
    border-color: #4267B2 !important;
    background: rgba(66, 103, 178, 0.05);
}

.debug-mode.apple-btn {
    border-color: #000000 !important;
    background: rgba(0, 0, 0, 0.05);
}

/* Policy Pages Styles */
.policy-content {
    line-height: 1.8;
    color: #333;
}

.policy-content h4,
.policy-content h5,
.policy-content h6 {
    font-weight: 600;
    margin-top: 2rem;
}

.policy-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.policy-content ul,
.policy-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
}

.policy-content .card {
    transition: transform 0.3s ease;
}

.policy-content .card:hover {
    transform: translateY(-5px);
}

/* Terms & Conditions specific styles */
.list-group-numbered {
    counter-reset: item;
}

.list-group-numbered .list-group-item {
    padding-left: 2.5rem;
    position: relative;
}

.list-group-numbered .list-group-item::before {
    counter-increment: item;
    content: counter(item) ".";
    position: absolute;
    left: 1rem;
    font-weight: bold;
    color: #80b704;
}

/* Breadcrumb styles */
.breadcrumb {
    background: none;
    padding: 0.75rem 0;
}

.breadcrumb-item a {
    color: #80b704;
}

.breadcrumb-item.active {
    color: #006625;
}

/* Page header */
.page-header {
    border-bottom: 2px solid #80b704;
    padding-bottom: 1rem;
}

/* Alert customization */
.alert-info {
    background-color: #e8f5e0;
    border-color: #80b704;
    color: #006625;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
}

.alert-success {
    background-color: #d4edda;
    border-color: #28a745;
}

/* Add to existing style.css */

/* Deals Page Specific */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.object-fit-cover {
    object-fit: cover;
}

.progress-bar-striped {
    background-image: linear-gradient(45deg,
            rgba(255, 255, 255, 0.15) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.15) 75%,
            transparent 75%,
            transparent);
    background-size: 1rem 1rem;
}

/* Coupon Code Box */
.code-box {
    border: 2px dashed #80b704;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(128, 183, 4, 0.05) 10px,
            rgba(128, 183, 4, 0.05) 20px);
}

/* Rating Stars */
.stars {
    color: #ffc107;
}

/* Filter Buttons */
.btn-outline-primary.active {
    background: linear-gradient(135deg, #006625, #80b704);
    border-color: #006625;
    color: white;
}

/* Stock Progress Animation */
@keyframes stockWarning {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

.stock-low {
    animation: stockWarning 2s infinite;
}

/* Flash Sale Glow Effect */
@keyframes flashGlow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 68, 68, 0.8);
    }
}

.flash-sale-badge {
    animation: flashGlow 2s infinite;
}

/* Categories Slider */
.categories-slider-section {
    background: #fff;
    margin: 20px 0;
}

.categories-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0;
    scrollbar-width: thin;
}

.categories-slider::-webkit-scrollbar {
    height: 5px;
}

.categories-slider::-webkit-scrollbar-thumb {
    background: #80b704;
    border-radius: 10px;
}

.category-item {
    flex: 0 0 auto;
    width: 120px;
    text-align: center;
}

.category-image {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: #f8f9fa;
    padding: 5px;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-top: 8px;
    line-height: 1.3;
}

/* Video Popup Z-Index Fix */
.video-widget-container {
    z-index: 9996 !important;
}

/* Ensure other elements have proper z-index */
.floating-cart-btn {
    z-index: 9998;
}

.notification-container {
    z-index: 9999;
}

/* Prevent video widget from overlapping mobile menu */
@media (max-width: 768px) {
    .video-widget-container {
        display: none !important;
    }

    .navbar-collapse.show~.video-widget-container {
        display: none !important;
    }
}

/* Add to style.css to ensure proper z-index stacking */
.video-widget-container {
    z-index: 9996 !important;
}

.video-modal {
    z-index: 9999 !important;
}

.floating-cart-btn {
    z-index: 9998 !important;
}