/* =============================================
   UKM MAJU - Custom Stylesheet
   ============================================= */

* {
    font-family: 'Poppins', sans-serif;
}

/* Color Variables */
:root {
    --primary-green: #28a745;
    --dark-green: #155724;
    --primary-orange: #f4a800;
    --light-bg: #f8f9fa;
}

/* =============================================
   Global
   ============================================= */
body {
    color: #333;
    line-height: 1.7;
}

.letter-spacing {
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

/* =============================================
   Navbar
   ============================================= */
.navbar {
    padding: 12px 0;
}

.navbar-brand .brand-logo {
    font-size: 1.4rem;
}

.nav-link {
    font-size: 0.9rem;
    color: #555 !important;
    padding: 8px 15px !important;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green) !important;
}

/* =============================================
   Hero Section
   ============================================= */
.hero-slide {
    height: 520px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.hero-slide-1 {
    background: linear-gradient(135deg, #1a4d2e 0%, #2d8653 100%);
}

.hero-slide-2 {
    background: linear-gradient(135deg, #6b2020 0%, #c0392b 100%);
}

.hero-slide-3 {
    background: linear-gradient(135deg, #1a3a5c 0%, #2980b9 100%);
}

/* =============================================
   Products
   ============================================= */
.product-img-wrapper {
    overflow: hidden;
    height: 200px;
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-img-placeholder {
    height: 200px;
    width: 100%;
}

/* =============================================
   Category Cards
   ============================================= */
.category-card {
    transition: all 0.25s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

/* =============================================
   About Section
   ============================================= */
.about-img-wrapper {
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border: 3px solid #c8e6c9;
}

/* =============================================
   Checkout Steps
   ============================================= */
.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.step-divider {
    flex: 1;
    height: 2px;
    background: #dee2e6;
    align-self: center;
    margin: 0 15px;
    margin-bottom: 25px;
}

/* =============================================
   Payment Options
   ============================================= */
.payment-option {
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option:hover {
    border-color: var(--primary-green) !important;
    background: #f8fff9;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

/* =============================================
   Cart
   ============================================= */
.quantity-input input {
    border-left: none;
    border-right: none;
}

/* =============================================
   Success Page
   ============================================= */
.success-icon {
    animation: bounceIn 0.8s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}

/* =============================================
   Buttons
   ============================================= */
.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838, #17a589);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.35);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    border: none;
    color: #fff;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800, #e96c02);
    color: #fff;
    transform: translateY(-1px);
}

.rounded-pill {
    border-radius: 50px !important;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 576px) {
    .hero-slide {
        height: 380px;
    }

    .hero-slide h1 {
        font-size: 1.8rem !important;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

/* =============================================
   Utilities
   ============================================= */
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-90 { opacity: 0.9; }
.cursor-pointer { cursor: pointer; }

/* Fix Bootstrap 4 sticky-top z-index with modal */
.sticky-top {
    z-index: 90;
}
