/**
 * SkinClub Category Burger Menu Styles
 * Brand Colors: Pink #D89CA1, Black #000000, Gray #AAAAAA, White #FFFFFF
 */

/* ============================================
   BURGER BUTTON
   ============================================ */

.skinclub-burger-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.skinclub-burger-toggle:hover {
    transform: scale(1.05);
}

.skinclub-burger-toggle:focus {
    outline: 2px solid #D89CA1;
    outline-offset: 2px;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: #000000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Burger Animation when menu is open */
.skinclub-burger-toggle.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.skinclub-burger-toggle.active .burger-line:nth-child(2) {
    opacity: 0;
}

.skinclub-burger-toggle.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* ============================================
   MENU OVERLAY
   ============================================ */

.skinclub-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.skinclub-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   MENU PANEL
   ============================================ */

.skinclub-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 500px;
    height: 100%;
    background: #FFFFFF;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
}

.skinclub-menu-panel.active {
    right: 0;
}

/* Mobile - full width */
@media (max-width: 768px) {
    .skinclub-menu-panel {
        width: 100%;
        max-width: 100%;
    }
}

/* ============================================
   MENU HEADER
   ============================================ */

.skinclub-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 2px solid #D89CA1;
    background: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 10;
}

.skinclub-menu-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #000000;
}

.skinclub-menu-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.skinclub-menu-close:hover {
    transform: scale(1.1);
}

.skinclub-menu-close svg {
    stroke: #000000;
    stroke-width: 2;
}

/* ============================================
   MENU CONTENT
   ============================================ */

.skinclub-menu-content {
    padding: 24px;
}

/* ============================================
   CATEGORY GRID
   ============================================ */

.skinclub-category-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, 1fr);
}

/* Desktop: 4 columns */
@media (min-width: 1024px) {
    .skinclub-category-grid[data-columns-desktop="4"] {
        grid-template-columns: repeat(4, 1fr);
    }
    .skinclub-category-grid[data-columns-desktop="3"] {
        grid-template-columns: repeat(3, 1fr);
    }
    .skinclub-category-grid[data-columns-desktop="2"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet: 3 columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .skinclub-category-grid[data-columns-tablet="3"] {
        grid-template-columns: repeat(3, 1fr);
    }
    .skinclub-category-grid[data-columns-tablet="2"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 2 columns default */
@media (max-width: 767px) {
    .skinclub-category-grid[data-columns-mobile="1"] {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ============================================
   CATEGORY CARD
   ============================================ */

.category-card {
    display: block;
    text-decoration: none;
    background: #FFFFFF;
    border: 2px solid #AAAAAA;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: #D89CA1;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(216, 156, 161, 0.2);
}

.category-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.category-info {
    padding: 12px;
    text-align: center;
    background: #FFFFFF;
}

.category-name {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    line-height: 1.4;
}

.category-count {
    font-size: 12px;
    color: #AAAAAA;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.skinclub-menu-panel.active {
    animation: slideInRight 0.3s ease;
}

/* ============================================
   BODY LOCK (Prevent scrolling when menu open)
   ============================================ */

body.skinclub-menu-open {
    overflow: hidden;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .skinclub-burger-toggle,
    .skinclub-menu-overlay,
    .skinclub-menu-panel,
    .category-card,
    .category-image img {
        transition: none;
        animation: none;
    }
}

/* Focus styles for keyboard navigation */
.category-card:focus {
    outline: 2px solid #D89CA1;
    outline-offset: 2px;
}

/* ============================================
   STYLE 2: LIST LAYOUT WITH SUBCATEGORIES
   ============================================ */

.skinclub-style-2 .skinclub-category-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ============================================
   CATEGORY ITEM (LIST STYLE)
   ============================================ */

.skinclub-style-2 .category-item {
    border-bottom: 1px solid #EEEEEE;
}

.skinclub-style-2 .category-item:last-child {
    border-bottom: none;
}

/* Category Main Row */
.skinclub-style-2 .category-main {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    transition: background 0.2s ease;
}

.skinclub-style-2 .category-main:hover {
    background: #F9F9F9;
}

/* Category Link */
.skinclub-style-2 .category-link {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    text-decoration: none;
    color: #000000;
}

/* Category Image (Left Side, Smaller) */
.skinclub-style-2 .category-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skinclub-style-2 .category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.skinclub-style-2 .category-link:hover .category-image img {
    transform: scale(1.05);
}

/* Category Title (Right Side) */
.skinclub-style-2 .category-title {
    flex: 1;
}

.skinclub-style-2 .category-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    line-height: 1.4;
}

.skinclub-style-2 .category-link:hover .category-title h3 {
    color: #D89CA1;
}

/* Toggle Subcategories Button */
.skinclub-style-2 .toggle-subcategories {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.2s ease;
    border-radius: 4px;
    color: #AAAAAA;
}

.skinclub-style-2 .toggle-subcategories:hover {
    background: #EEEEEE;
    color: #D89CA1;
}

.skinclub-style-2 .toggle-subcategories svg {
    transition: transform 0.3s ease;
}

.skinclub-style-2 .toggle-subcategories.active svg {
    transform: rotate(180deg);
}

/* ============================================
   SUBCATEGORIES
   ============================================ */

.skinclub-style-2 .subcategories {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #F9F9F9;
    padding: 0 16px 0 88px; /* Indent to align with parent title */
}

.skinclub-style-2 .subcategories.active {
    max-height: 500px; /* Large enough for most subcategories */
    padding: 8px 16px 12px 88px;
}

.skinclub-style-2 .subcategory-link {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #666666;
    font-size: 14px;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.skinclub-style-2 .subcategory-link:hover {
    color: #D89CA1;
    border-left-color: #D89CA1;
    padding-left: 16px;
    background: #FFFFFF;
}

/* ============================================
   MOBILE ADJUSTMENTS FOR STYLE 2
   ============================================ */

@media (max-width: 767px) {
    .skinclub-style-2 .category-image {
        width: 50px;
        height: 50px;
    }

    .skinclub-style-2 .category-title h3 {
        font-size: 14px;
    }

    .skinclub-style-2 .subcategories {
        padding-left: 66px; /* Smaller indent on mobile */
    }

    .skinclub-style-2 .subcategories.active {
        padding-left: 66px;
    }
}

/* ============================================
   ACCESSIBILITY FOR STYLE 2
   ============================================ */

.skinclub-style-2 .category-link:focus {
    outline: 2px solid #D89CA1;
    outline-offset: 2px;
}

.skinclub-style-2 .subcategory-link:focus {
    outline: 2px solid #D89CA1;
    outline-offset: 2px;
}

.skinclub-style-2 .toggle-subcategories:focus {
    outline: 2px solid #D89CA1;
    outline-offset: 2px;
}
