/* Ugaoo User Website Styles */

:root {
    --primary-color: #28a745;
    --secondary-color: #20c997;
    --dark-color: #155724;
    --light-bg: #f8f9fa;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 0;
    background-color: #ffffff;
}

/* Navigation */
.navbar {
    box-shadow: var(--shadow);
    background: white !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.site-logo {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Show dropdowns on hover (desktop) */
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    .navbar .dropdown-toggle::after {
        transition: transform 0.2s;
    }
    .navbar .dropdown.show .dropdown-toggle::after,
    .navbar .dropdown:hover .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

/* Hero Section */
.hero-slider {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: white;
    padding: 20px 0 40px 0;
    margin-top: 0;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-slider::before {
    display: none !important;
    background: none !important;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    background: transparent;
}

.hero-slide {
    display: none;
    position: relative;
}

.hero-slide.active {
    display: block;
}

.hero-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    display: block;
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    height: 100%;
    background: white;
    box-shadow: var(--shadow);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    min-height: 50px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-add-cart {
    flex: 1;
    background: var(--primary-color);
    color: white;
    border: none;
}

/* Product Card Bundle Style (Matching Attachment) */
.product-card-bundle {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    height: 100%;
    background: white;
    box-shadow: var(--shadow);
    position: relative;
}

.product-card-bundle:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image-container .product-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.product-image-container .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    border-radius: 8px 8px 0 0;
}

.product-card-bundle:hover .product-image-container .product-image {
    transform: scale(1.05);
}

.product-info-bundle {
    padding: 15px;
}

.product-rating {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.product-title-bundle {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.4;
    min-height: 40px;
}

.product-tag {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.product-price-bundle {
    margin-bottom: 12px;
}

.product-price-bundle .current-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-right: 8px;
}

.product-price-bundle .original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.product-actions-bundle {
    margin-top: 10px;
}

.btn-add-cart-bundle {
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-cart-bundle:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-sold-out {
    width: 100%;
    background: #e0e0e0;
    color: #666;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: not-allowed;
}
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-add-cart:hover {
    background: var(--dark-color);
    color: white;
}

/* Category Section */
.category-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    background: white;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    display: block;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    color: var(--primary-color);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);
}

.category-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

/* Cart Page */
.cart-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

/* Cart: stack image + product name */
.cart-product-cell {
    max-width: 200px;
    padding: 4px 0;
}

.cart-product-thumb {
    display: block;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.cart-product-title {
    margin-top: 10px;
}

.cart-product-title a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s ease;
}

.cart-product-title a:hover {
    color: var(--dark-color);
    text-decoration: underline;
}

.quantity-input {
    width: 60px;
    text-align: center;
}

/* Checkout */
.checkout-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.checkout-section h5 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Product Details */
.product-gallery {
    margin-bottom: 30px;
}

.product-main-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    border: 2px solid transparent;
}

.product-thumbnails img.active {
    border-color: var(--primary-color);
}

.product-details h2 {
    color: #333;
    margin-bottom: 20px;
}

.product-price-large {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-description {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

/* Blog Cards */
.blog-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: var(--shadow);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.blog-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card, .category-card, .blog-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Section Spacing */
section {
    padding: 60px 0;
    background-color: #ffffff;
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

/* Input Enhancements */
.form-control {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Badge Enhancements */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Table Enhancements */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: var(--primary-color);
    color: white;
}

.table tbody tr {
    transition: background 0.3s;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    section {
        padding: 40px 0;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Alerts */
.alert {
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Badge */
.badge {
    padding: 5px 10px;
    border-radius: 20px;
}

/* Footer */
footer {
    margin-top: auto;
    background: #1a1a1a !important;
    padding: 50px 0 20px 0;
}

footer h5 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

footer p, footer li {
    color: #ccc;
    line-height: 1.8;
}

footer a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

footer .fab {
    font-size: 1.5rem;
    margin-right: 15px;
    transition: transform 0.3s;
}

footer .fab:hover {
    transform: translateY(-3px);
    color: var(--primary-color);
}

/* Section Headings */
section h2 {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* Category Cards Section */
.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-card-link {
    display: block;
    text-decoration: none;
    color: #333;
    height: 100%;
}

.category-card-image {
    height: 400px;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-card-image img {
    transform: scale(1.08);
}

.category-card-title {
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 2.5rem;
    font-weight: 300;
    color: #999;
    margin: 0;
    text-align: left;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(255,255,255,0.8);
    line-height: 1.2;
}

.category-card-promo {
    padding: 20px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: left;
    background: white;
}

/* About Ugaoo Section */
.about-section {
    background: #fafafa;
    padding: 60px 0;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #155724;
    margin-bottom: 30px;
    text-align: left;
}

.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    text-align: left;
}

.about-content p {
    margin: 0;
    color: #555;
}

.about-content strong {
    font-weight: 700;
    color: #333;
}

.about-highlight {
    color: #155724;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s;
}

.about-highlight:hover {
    color: var(--primary-color);
}

.btn-success {
    background: var(--primary-color);
    border: none;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-outline-success {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-success:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}
