:root {
    --bg-color: #000000;
    --card-bg: #1e293b;
    --primary-color: #FFD700;
    --primary-hover: #e6c200;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #ffffff;
    --modal-overlay: rgba(0, 0, 0, 0.9);

    --font-main: 'Unbounded', sans-serif;

    --transition-speed: 0.3s;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    padding: 60px 0 40px;
    text-align: center;
    background: radial-gradient(circle at top center, #1a1a1a 0%, transparent 70%);
}

.site-logo {
    max-width: 350px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
}

.main-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Sections */
.category-section {
    margin-bottom: 20px;
}

.category-section h2 {
    font-size: 1.0rem;
    /* Reduced from 1.2rem */
    margin-bottom: 10px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;

    /* Glassmorphism Container */
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 15px 25px;

    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.category-section h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}

.category-section h2:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.1);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Grid */
.subcategory-wrapper {
    margin-bottom: 15px;
}

.subcategory-title {
    font-size: 0.9rem;
    /* Reduced from 1.0rem */
    color: var(--text-secondary);
    margin-bottom: 15px;
    margin-top: 10px;

    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 15px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    font-weight: 600;
}

.subcategory-title:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 215, 0, 0.3);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* Buttons */
/* Buttons */
.equip-btn {
    background: rgba(255, 215, 0, 0.05);
    /* Yellow Glass Tint */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: var(--primary-color);

    padding: 10px;
    padding-right: 110px;
    /* Space for the "Click to View" hint */
    border-radius: 8px;
    /* radius-sm manually or var */
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1), inset 0 0 10px rgba(255, 215, 0, 0.05);
    text-align: left;
    position: relative;
    overflow: hidden;

    /* Flex layout for thumbnail + text */
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-thumb {
    width: 45px;
    height: 60px;
    /* 3:4 Aspect Ratio */
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(255, 215, 0, 0.3);
    background-color: #000;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.equip-btn:hover .btn-thumb {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.btn-text {
    flex: 1;
    display: block;
    line-height: 1.3;
}

.equip-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
    opacity: 0.7;
    transition: opacity var(--transition-speed);
}

.equip-btn:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4), inset 0 0 20px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.8);
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

.equip-btn:hover::before {
    opacity: 1;
    width: 4px;
    box-shadow: 0 0 10px var(--primary-color);
}

.equip-btn::after {
    content: 'View ❯';
    position: absolute;
    right: 20px;
    /* Slightly more right margin */
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    font-weight: 600;
    line-height: 1;
    /* Reset line height for precise centering */
}

.equip-btn:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(-5px);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .equip-btn {
        padding-right: 90px;
        /* More space on mobile to be safe */
    }

    .equip-btn::after {
        content: 'View ❯';
        opacity: 1;
        /* Always visible */
        right: 15px;
        transform: translateY(-50%);
        font-size: 0.75rem;
        animation: bounce-x 2s infinite ease-in-out;
        /* Continuous gentle animation */
    }

    .equip-btn:hover::after {
        transform: translateY(-50%);
        opacity: 1;
    }
}

@keyframes bounce-x {

    0%,
    100% {
        transform: translateY(-50%) translateX(0);
    }

    50% {
        transform: translateY(-50%) translateX(-5px);
    }
}


.equip-btn:active {
    transform: translateY(-2px) scale(0.98);
}

/* Collapsible / Dropdown Styles */
/* Collapsible / Dropdown Styles */
.toggle-header {
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: color 0.3s;
    display: flex;
    /* justify-content: space-between; Removed to group hint with arrow */
    align-items: center;
}

.toggle-header:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Hide original hint animation logic since we are changing it */
/* .toggle-header:hover .click-hint { ... } */

/* New Arrow + Loading Container (Was Click Hint) */
.click-hint {
    font-size: 0;
    /* Hide the text "Click to View" */
    color: transparent;

    /* Circle Container */
    margin-left: auto;
    margin-right: 15px;

    /* Removed Circle Styles */
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    box-shadow: none;

    position: relative;
    opacity: 1;
    /* Always show */
    transform: none;
    /* Reset hover transforms */
    pointer-events: none;
    /* Ensure clicks pass through to the header */
}

/* The Arrow */
.click-hint::before {
    content: '❯';
    font-size: 1rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    transform: rotate(90deg);
    /* Expanded by default (Down) */
    display: block;
    line-height: 1;
    animation: arrow-shine 2s infinite ease-in-out;
}

@keyframes arrow-shine {

    0%,
    100% {
        filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.3));
        text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }

    50% {
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
        color: #fff;
        /* Flash white briefly */
    }
}

/* Collapsed State: Arrow Points Right */
/* We need to use the parent's state to style the child */
.toggle-header.collapsed .click-hint::before {
    transform: rotate(0deg);
}

/* Remove Loading Ring */
.click-hint::after {
    content: none;
}

/* Hide Old Arrow */
.toggle-header::after {
    content: none;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .click-hint {
        animation: none;
        /* Disable bounce */
        opacity: 1;
        width: auto;
        /* Allow auto width on mobile too */
        height: auto;
        margin-right: 10px;
    }

    .click-hint::before {
        font-size: 0.8rem;
        /* Smaller arrow */
    }
}

.toggle-content {
    transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease, padding 0.4s ease;
    max-height: 5000px;
    opacity: 1;
    overflow: hidden;
    padding: 10px;
    /* Prevent shadow clipping */
}

.toggle-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-overlay);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background-color: #111;
    /* Darker card bg */
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 800px;
    /* Slightly wider */
    padding: 40px;
    position: relative;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.active .modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--primary-color);
}

.modal-header {
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

#modal-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.modal-category {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    font-weight: 700;
}

.modal-body {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.modal-image-container {
    flex: 1;
    min-width: 250px;
    /* Aspect Ratio 3:4 logic */
    width: 100%;
    aspect-ratio: 3/4;
    height: auto;

    background-color: #000;
    /* Pure black bg for image */
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* For buttons */
}

/* Ensure no fixed height conflicting */
.modal-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Show full machine */
    display: block;
    cursor: zoom-in;
}

@media (max-width: 768px) {
    .modal-image-container {
        width: 100%;
        /* Keep aspect ratio mobile? Yes usually desired */
        aspect-ratio: 3/4;
        height: auto;
    }
}

.modal-details {
    flex: 1;
    min-width: 250px;
}

.modal-details h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    margin-top: 15px;
}

.modal-details h3:first-child {
    margin-top: 0;
}

.modal-details ul {
    list-style: none;
    margin-bottom: 20px;
}

.modal-details li {
    margin-bottom: 5px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 3px;
}

.modal-details li span {
    color: var(--primary-color);
    /* Highlight specs in yellow */
    font-weight: 600;
}

.modal-details p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .main-header h1 {
        font-size: 2.2rem;
    }

    .modal-content {
        padding: 25px;
        width: 95%;
    }

    .modal-body {
        flex-direction: column;
    }
}

/* Carousel Controls */
/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    z-index: 2;
    opacity: 1;
    /* Always visible for better UX */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.9);
}

/* .modal-image-container:hover .carousel-btn {
    opacity: 1;
} Removed to keep them always visible */

.carousel-btn:hover {
    background-color: var(--primary-color);
    color: #000;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Lightbox */
.lightbox {
    position: fixed;
    z-index: 2000;
    /* Higher than modal */
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 95%;
    max-height: 95vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    animation-name: zoom;
    animation-duration: 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

/* Cursor for modal image to indicate zoom capability */
.modal-img {
    cursor: zoom-in;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 10px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}