/* Project Sablay Catalog Styles */

#template-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f8f8;
    color: #333;
    min-height: 100vh;
    margin-top: -30px;
}

.no-products-message {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.no-products-message h4 {
    margin: 20px 0 10px 0;
    color: #4e4e4e;
}

.no-products-message p {
    margin: 0;
    color: #666;
}

/* Modern Date Picker Styles */
.custom-date-picker {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.custom-date-picker:hover {
    border-color: #9b2121;
}

.date-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.date-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-nav-btn:hover {
    background: #e0e0e0;
}

.date-nav-btn i {
    font-size: 18px;
    color: #333;
}

.date-picker-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.date-picker-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
}

.date-picker-header-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 12px 0;
    margin-bottom: 4px;
    width: 100%;
    box-sizing: border-box;
}

.day-header {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #9b2121;
    padding: 6px 4px;
    background: #f8f8f8;
    border-radius: 4px;
}

.date-picker-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 6px 2px;
    border: 2px solid transparent;
    width: 100%;
    min-width: 0;
}

.date-picker-day.empty {
    cursor: default;
    border: none;
}

.date-picker-day:hover:not(.disabled):not(.selected) {
    background: #f0f0f0;
}

.date-picker-day.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f5f5;
}

.date-picker-day.disabled .day-number {
    color: #999;
}

.date-picker-day.exception-date {
    opacity: 1;
    cursor: not-allowed;
    background: #dc3545 !important;
    padding: 6px 2px;
}

.date-picker-day.exception-date .day-number {
    color: #fff;
}

.date-picker-day.exception-date .day-name {
    color: #fff;
}

.date-picker-day.exception-date .day-month {
    color: #fff;
}

.date-picker-day.exception-date .availability-indicator {
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    margin-top: 3px;
}

.date-picker-day.selected {
    background: #4caf50;
    border-color: #4caf50;
}

.status-available {
    display: flex !important;
    align-items: center !important;
    color: #fff;
    background: #4caf50;
}

.status-unavailable {
    color: #fff;
    background: #f44336;
}

.date-picker-day.selected .day-number {
    color: #fff;
}

.date-picker-day.selected .day-name {
    color: #fff;
}

.date-picker-day .day-name {
    font-size: 10px;
    font-weight: 600;
    color: #666;
    margin-bottom: 2px;
}

.date-picker-day.selected .day-name {
    color: #fff;
}

.date-picker-day .day-number {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.date-picker-day .day-month {
    font-size: 9px;
    color: #999;
    margin-top: 1px;
}

.date-picker-day.selected .day-month {
    color: #fff;
}

.date-picker-day.has-availability .availability-indicator {
    width: 5px;
    height: 5px;
    background: #4caf50;
    border-radius: 50%;
    margin-top: 3px;
}

.date-picker-day.no-availability .availability-indicator {
    width: 5px;
    height: 5px;
    background: #f44336;
    border-radius: 50%;
    margin-top: 3px;
}

/* Modern Time Picker Styles */
.time-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.time-picker-grid.hidden {
    display: none;
}

.time-slot {
    padding: 12px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: #fff;
}

.time-slot:hover:not(.disabled):not(.selected) {
    border-color: #9b2121;
    background: #f8f8f8;
}

.time-slot.selected {
    background: #4caf50;
    border-color: #4caf50;
}

.time-slot.selected .time-label {
    color: #fff;
}

.time-slot.selected .time-availability {
    color: #fff;
}

.time-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f5f5;
    border-color: #e0e0e0;
}

.time-slot.disabled .time-label {
    color: #999;
}

.time-slot.disabled .time-availability {
    color: #999;
}

.time-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.time-availability {
    display: block;
    font-size: 11px;
    color: #4caf50;
    font-weight: 500;
}

.time-slot.disabled .time-availability {
    color: #f44336;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .date-picker-grid {
        gap: 4px;
        padding: 8px;
    }
    
    .date-picker-day {
        min-height: 50px;
        padding: 4px 2px;
    }
    
    .date-picker-day .day-name {
        font-size: 9px;
    }
    
    .date-picker-day .day-number {
        font-size: 14px;
    }
    
    .date-picker-day .day-month {
        font-size: 8px;
    }
    
    .date-picker-header {
        padding: 10px 12px;
    }
    
    .date-picker-title {
        font-size: 13px;
    }
    
    .time-picker-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 6px;
    }
    
    .time-slot {
        padding: 10px 6px;
    }
    
    .time-label {
        font-size: 13px;
    }
    
    .time-availability {
        font-size: 10px;
    }
}

/* Form Group Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.form-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Hero Banner */
.hero-banner {
    background: white;
    padding: 40px 50px;
    min-height: 20vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.hero-buttons-container {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    max-width: 1400px;
    width: 100%;
    margin: 20px auto 20px auto;
    padding: 0 5px;
}

.hero-card {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), var(--bg-url);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 24px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 1400px;
    max-height: 45vh;
    margin: 0 auto;
    width: 100%;
    position: relative;
    margin-bottom: 25px;
}

.hero-card-donate {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), var(--bg-url);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 100px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-height: 45vh;
    width: 100%;
    position: relative;
}

.hero-left {
    flex: 1;
    color: #333;
}

.hero-text h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #dfdfdf;
}

.hero-text p {
    font-size: 20px;
    opacity: 0.8;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #dfdfdf;
}

.hero-cta {
    display: inline-block;
    background: #9b2121;
    color: white;
    padding: 16px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 136, 136, 0.3);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 46, 46, 0.4);
}

.hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 20px;
}

.hero-stats {
    display: flex;
    gap: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.cart-btn,
.reservation-btn,
.history-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.cart-btn {
    background: rgba(255, 119, 119, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid #9b2121;
    color: #9b2121;
}

.cart-btn:hover {
    background: #7a1a1a;
    transform: translateY(-2px);
}

.cart-count {
    background: #9b2121;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

.reservation-btn {
    background: #9b2121;
}

.reservation-btn:hover {
    background: #7a1a1a;
    transform: translateY(-2px);
}

.history-btn {
    background: rgba(155, 33, 33, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid #9b2121;
}

.history-btn:hover {
    background: #7a1a1a;
    transform: translateY(-2px);
}

.variation-group-label {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 8px 0 6px 0;
    padding: 0 2px;
}

#sablay-variations,
#graduation-variations {
    margin-bottom: 10px;
}

/* Cards Container */
.cards-container {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto 20px auto;
    flex-wrap: wrap;
}

/* Reservation Card */
.reservation-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 300px;
    max-width: 700px;
}

.reservation-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.11);
    transform: translateY(-2px);
}

/* Transaction Card */
.transaction-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 300px;
    max-width: 700px;
}

.transaction-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.11);
    transform: translateY(-2px);
}

.rc-top-bar {
    background: linear-gradient(135deg, #9b2121 0%, #c9302c 100%);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rc-top-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rc-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.rc-code {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.rc-confirmed-badge {
    background: rgba(39, 174, 96, 0.9);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 20px;
}

.rc-status-badge {
    background: rgba(39, 174, 96, 0.9);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 20px;
}

.rc-status-confirmed {
    background: rgba(39, 174, 96, 0.9);
}

.rc-status-cancelled {
    background: rgba(220, 53, 69, 0.9);
}

.rc-status-pending {
    background: rgba(243, 156, 18, 0.9);
}

.rc-body {
    display: flex;
    align-items: center;
}

.rc-detail {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-right: 1px solid #f0f0f0;
}

.rc-detail:last-of-type {
    border-right: none;
}

.rc-detail-label {
    font-size: 11px;
    font-weight: 700;
    color: #9b2121;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rc-detail-value {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.rc-action {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-left: 1px solid #f0f0f0;
}

.view-details-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #9b2121 0%, #c9302c 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(155, 33, 33, 0.3);
    align-self: flex-start;
}

.view-details-btn:hover {
    background: linear-gradient(135deg, #c9302c 0%, #e53935 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 33, 33, 0.4);
}

/* Transaction Card Styles */
.tc-top-bar {
    background: linear-gradient(135deg, #00563f 0%, #006d52 100%);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tc-top-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tc-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.tc-code {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.tc-status-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #00563f;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 20px;
}

.tc-body {
    display: flex;
    align-items: center;
}

.tc-detail {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-right: 1px solid #f0f0f0;
}

.tc-detail:last-of-type {
    border-right: none;
}

.tc-detail-label {
    font-size: 11px;
    font-weight: 700;
    color: #00563f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tc-detail-value {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.tc-action {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-left: 1px solid #f0f0f0;
}

.view-details-btn:hover {
    background: linear-gradient(135deg, #7a1a1a 0%, #a02020 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 33, 33, 0.4);
}

.view-details-btn i {
    font-size: 18px;
}

@media (max-width: 768px) {
    .reservation-card {
        width: calc(100% - 24px);
        margin: 0 auto;
    }

    .rc-body {
        flex-direction: column;
        align-items: stretch;
    }

    .rc-detail {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 14px 20px;
    }

    .rc-detail:last-of-type {
        border-bottom: none;
    }

    .rc-action {
        border-left: none;
        border-top: 1px solid #f0f0f0;
        padding: 14px 20px;
    }

    .view-details-btn {
        width: 100%;
        justify-content: center;
    }

    .transaction-card {
        width: calc(100% - 24px);
        margin: 0 auto;
    }

    .tc-body {
        flex-direction: column;
        align-items: stretch;
    }

    .tc-detail {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 14px 20px;
    }

    .tc-detail:last-of-type {
        border-bottom: none;
    }

    .tc-action {
        border-left: none;
        border-top: 1px solid #f0f0f0;
        padding: 14px 20px;
    }
}

.stat-item {
    text-align: center;
    padding: 30px 50px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 64px;
    font-weight: 800;
    color: #dfdfdf;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    font-weight: 600;
    color: #dfdfdf;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-card {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 40px;
    }

    .hero-card-donate {
        flex-direction: column;
        text-align: center;
        max-height: 60vh;
        gap: 40px;
        padding: 40px;
    }
    
    .hero-text h1 {
        font-size: 42px;
    }
    
    .hero-text p {
        font-size: 18px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .stat-item {
        padding: 25px 40px;
    }
    
    .stat-number {
        font-size: 48px;
    }
    
    .stat-label {
        font-size: 16px;
    }
}

@media (max-width: 768px) {

    .hero-buttons-container {
        padding: 0 12px;
        margin-bottom: 8px;
    }

    .hero-banner {
        padding: 30px 20px;
    }
    
    .hero-card {
        padding: 30px 20px;
        gap: 30px;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    .hero-cta {
        padding: 14px 32px;
        font-size: 14px;
    }
    
    .stat-item {
        padding: 20px 30px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    .container {
        padding: 0 20px;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Header */
.glamora-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    padding: 15px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left .main-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #e74c3c;
}

.header-center .logo {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #333;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
}

.icon-btn:hover {
    color: #e74c3c;
}

.appointment-btn {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.appointment-btn:hover {
    background-color: #e74c3c;
}

/* Hero Banner */
.hero-banner {
    background: #f0f0f0;
    padding: 10px 0;
}

.hero-banner-donate {
    background: #f0f0f0;
    padding: 0 0;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.banner-text {
    flex: 1;
    color: #fff;
}

.banner-text h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-text p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    background-color: #fff;
    color: #667eea;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-button:hover {
    background-color: #e74c3c;
    color: #fff;
    transform: translateY(-2px);
}

.banner-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.banner-image img {
    max-width: 400px;
    height: auto;
    border-radius: 10px;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

.content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    overflow: visible;  /* ensure no clipping */
}

/* Sidebar Filter */
.filter-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

.filter-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filter-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-sidebar::-webkit-scrollbar-thumb {
    background: #9b2121;
    border-radius: 3px;
}

.filter-sidebar::-webkit-scrollbar-thumb:hover {
    background: #7a1a1a;
}

.filter-sidebar label {
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-sidebar label.selected {
    color: #9b2121;
    font-weight: 700;
}

.filter-section {
    background-color: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.filter-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #333;
}

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-child {
    border-bottom: none;
}

.group-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #9b2121;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.availability-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.availability-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.availability-options label:hover {
    background: #e9ecef;
}

.availability-options label.selected {
    background: #9b2121;
    color: white;
}

.availability-options input[type="radio"] {
    cursor: pointer;
}

/* Sex Options */
.sex-options label {
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.sex-options label:hover {
    background: #e9ecef;
}

.sex-options label.selected {
    background: #9b2121;
    color: white;
}

.sex-options input {
    margin-right: 10px;
    accent-color: #9b2121;
}

/* Item Type Options */
.item-type-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-type-options label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    cursor: pointer;
}

.item-type-options label:hover {
    background: #e9ecef;
}

.item-type-options label.selected {
    background: #9b2121;
    color: white;
}

.item-type-options input {
    margin-right: 10px;
    accent-color: #9b2121;
}

.category-item {
    margin-bottom: 15px;
}

.category-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.category-label:hover {
    background-color: #e9ecef;
}

.category-label input {
    margin-right: 8px;
}

.sub-categories {
    margin-left: 25px;
    margin-top: 10px;
}

.sub-categories label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.sub-categories label:hover {
    background-color: #f0f0f0;
}

.sub-categories input {
    margin-right: 8px;
    accent-color: #9b2121;
}

/* Variation Options */
.variation-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.variation-options > div {
    margin-bottom: 15px;
}

.variation-options label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 13px;
    border: 2px solid transparent;
    margin-bottom: 8px;
}

.variation-options label:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.variation-options label.selected {
    background: #9b2121;
    color: white;
    border-color: #9b2121;
}

.variation-options input {
    margin-right: 12px;
    accent-color: #9b2121;
}

/* Price Range */
.price-range {
    padding: 10px 0;
}

.range-slider {
    margin-bottom: 15px;
}

.range-slider input[type="range"] {
    width: 100%;
    margin-bottom: 10px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-inputs input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.price-inputs span {
    color: #666;
}

/* Color Options */
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.color-swatch input:checked + span {
    border-color: #333;
}

/* Size Options */
.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-options label {
    padding: 10px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    background: white;
}

.size-options label:hover {
    border-color: #9b2121;
    background: #f8f9fa;
}

.size-options label.selected {
    background: #9b2121;
    color: white;
    border-color: #9b2121;
}

.size-options input {
    margin-right: 8px;
    accent-color: #9b2121;
}

/* Brand List */
.brand-list label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}

.brand-list input {
    margin-right: 8px;
}

/* Product Section */
.catalog-main {
    flex: 1;
    min-width: 0;
}

.product-section {
    flex: 1;
    min-width: 0;
}

.section-header {
    margin-bottom: 30px;
}

.results-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.applied-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.applied-filters strong {
    margin-right: 10px;
    font-size: 14px;
}

.filter-tag {
    background-color: #f0f0f0;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clear-filters {
    color: #e74c3c;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    margin-left: 10px;
}

.clear-filters:hover {
    text-decoration: underline;
}

.sort-select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background-color: #fafafa;
}

.product-image .main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s, transform 0.3s;
    position: relative;
    z-index: 2;
}

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

.product-image-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.product-image-slideshow .slideshow-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.6s ease
}

.main-product-image {
    transition: opacity 0.6s ease;
}

.product-card.has-slideshow:hover .product-image-slideshow {
    opacity: 1;
    pointer-events: auto;
}

.product-card.has-slideshow:hover .main-product-image {
    opacity: 0;
}

.status-badge-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    z-index: 10;
}

.status-badge-overlay.status-available {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 6px;
}

.status-badge-overlay.status-unavailable {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-radius: 6px;
}

.status-badge-overlay.status-borrowed {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #333;
    border-radius: 6px;
}

.status-badge-overlay.status-pending_arrival {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: white;
    border-radius: 6px;
}

.wishlist-btn {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    color: #f3f3f3 !important;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    vertical-align: middle;
}

.wishlist-btn .material-icons {
    vertical-align: middle;
    line-height: 1;
}

.wishlist-btn:hover {
    background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%) !important;
}

.wishlist-btn.active {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    border-radius: 6px;
}

.wishlist-btn.active:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

.main-image-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image-container {
    width: 100%;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.main-image-container:hover {
    border-color: #9b2121;
    box-shadow: 0 4px 12px rgba(155, 33, 33, 0.15);
}

.main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.main-image-container:hover .main-image {
    transform: scale(1.02);
}

.image-zoom-hint {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(155, 33, 33, 0.9);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.main-image-container:hover .image-zoom-hint {
    opacity: 1;
}

.image-zoom-hint i {
    font-size: 18px;
}

.thumbnail-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #9b2121 #f0f0f0;
}

.thumbnail-container::-webkit-scrollbar {
    height: 8px;
}

.thumbnail-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.thumbnail-container::-webkit-scrollbar-thumb {
    background: #9b2121;
    border-radius: 4px;
}

.thumbnail-container::-webkit-scrollbar-thumb:hover {
    background: #7a1a1a;
}

.thumbnail {
    flex: 0 0 auto;
    width: 90px;
    height: 90px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.thumbnail:hover {
    border-color: #9b2121;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(155, 33, 33, 0.2);
}

.thumbnail.active {
    border-color: #9b2121;
    box-shadow: 0 0 0 3px rgba(155, 33, 33, 0.2);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-images {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

.item-header {
    margin-bottom: 10px;
}

.item-header h2 {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

.item-stock-status {
    display: flex;
    gap: 12px;
}

.stock-badge {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-badge.in-stock {
    background-color: #28a745;
    color: white;
}

.stock-badge.out-of-stock {
    background-color: #dc3545;
    color: white;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
}

.status-badge.status-available {
    background-color: #28a745;
}

.status-badge.status-unavailable {
    background-color: #dc3545;
}

.status-badge.status-borrowed {
    background-color: #ffc107;
    color: #333;
}

.status-badge.status-pending_arrival {
    display: flex;
    align-items: center;
    background-color: #ffc107;
    color: white;
}



.detail-attributes {
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.detail-attribute {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.attribute-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.attribute-value {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.add-to-cart-btn {
    margin-top: auto;
    padding: 16px 32px;
    background-color: #9b2121;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(155, 33, 33, 0.3);
}

.add-to-cart-btn:hover {
    background-color: #7a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(155, 33, 33, 0.4);
}

.add-to-cart-btn i {
    font-size: 20px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s, opacity 0.3s;
    flex-shrink: 0;
}

.thumbnail:hover {
    opacity: 0.8;
}

.thumbnail.active {
    border-color: #9b2121;
}

.product-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #6c757d;
    font-size: 14px;
    font-weight: 600;
}

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

.product-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.8);
    padding: 15px;
    transition: bottom 0.3s;
}

.product-card:hover .product-overlay {
    bottom: 0;
}

.book-btn {
    width: 100%;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.book-btn:hover {
    background-color: #c0392b;
}

.product-info {
    padding: 20px;
}

.product-name { 
    font-size: 15px; 
    font-weight: 500; 
    color: var(--color-text-primary);
    margin-left: 8px;
    margin-bottom: 10px; 
    line-height: 1.4; 
}
.product-status {
    margin-bottom: 12px;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.available {
    background-color: #27ae60;
    color: white;
}

.status-badge.borrowed {
    background-color: #f39c12;
    color: white;
}

.status-badge.unavailable {
    background-color: #f39c12;
    color: white;
}

.product-sizes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-badge {
    padding: 4px 10px;
    background-color: #f0f0f0;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 40px 0 0 0;
}

.pagination li {
    display: inline-block;
    margin: 0;
}

.page-btn {
    padding: 10px 15px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    min-width: 40px;
    text-align: center;
    display: inline-block;
}

.page-btn:hover:not(.active) {
    background-color: #800000;
    color: #fff;
    border-color: #800000;
}

.page-btn.active {
    background-color: #800000;
    color: #fff;
    border-color: #800000;
    cursor: default;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    padding: 10px 5px;
    display: inline-block;
}

/* Override Materialize pagination styles */
.pagination li {
    height: auto;
    border-radius: 0;
    text-align: center;
}

.pagination li a {
    color: #333;
    display: inline-block;
    font-size: 14px;
    line-height: normal;
    padding: 10px 15px;
}

.pagination li.active a {
    color: #fff;
}

.pagination li.active {
    background-color: #800000;
}

/* Other Categories */
.other-categories {
    padding: 60px 0;
    background-color: #fff;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px;
    color: #fff;
}

.card-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.explore-btn {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.explore-btn:hover {
    background-color: #c0392b;
}

/* CTA Banner */
.cta-banner {
    padding: 80px 0;
    background: white;
    color: #fff;
}

.banner-bg {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 50px 50px;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.instagram-btn {
    background-color: #fff;
    color: #667eea;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.instagram-btn:hover {
    background-color: #e74c3c;
    color: #fff;
    transform: translateY(-2px);
}

/* Footer */
.project-sablay-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #e74c3c;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: #e74c3c;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #666;
    font-size: 14px;
}

/* Project Sablay Modals */
#appointmentModal,
#itemDetailModal,
#cartModal,
#reservationModal,
#historyModal,
#noticeModal,
#transactionModal,
#confirmationModal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}

#appointmentModal .modal-content,
#itemDetailModal .modal-content,
#cartModal .modal-content,
#reservationModal .modal-content,
#historyModal .modal-content,
#noticeModal .modal-content,
#transactionModal .modal-content,
#confirmationModal .modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    position: relative;
}

#appointmentModal .close-modal,
#itemDetailModal .close-modal,
#cartModal .close-modal,
#reservationModal .close-modal,
#historyModal .close-modal,
#noticeModal .close-modal,
#transactionModal .close-modal,
#confirmationModal .close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

#appointmentModal .close-modal:hover,
#itemDetailModal .close-modal:hover,
#cartModal .close-modal:hover,
#reservationModal .close-modal:hover,
#historyModal .close-modal:hover,
#noticeModal .close-modal:hover,
#transactionModal .close-modal:hover,
#confirmationModal .close-modal:hover {
    color: #333;
}

#appointmentModal .modal-content h2,
#itemDetailModal .modal-content h2,
#cartModal .modal-content h2,
#reservationModal .modal-content h2,
#historyModal .modal-content h2,
#noticeModal .modal-content h2,
#transactionModal .modal-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

/* Cart Modal */
.cart-modal-content {
    max-width: 600px;
}

/* Notice Modal */
.notice-modal-content {
    max-width: 700px;
}

.notice-body {
    margin-bottom: 30px;
    line-height: 1.6;
}

.notice-body p {
    margin-bottom: 15px;
    color: #555;
    font-size: 16px;
}

.notice-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.notice-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notice-btn-proceed {
    background: linear-gradient(135deg, #800000 0%, #a00000 100%);
    color: white;
}

.notice-btn-proceed:hover {
    background: linear-gradient(135deg, #a00000 0%, #c00000 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.3);
}

.notice-btn-cancel {
    background: #f5f5f5;
    color: #666;
    border: 2px solid #ddd;
}

.notice-btn-cancel:hover {
    background: #e9e9e9;
    color: #333;
    border-color: #ccc;
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.empty-cart {
    text-align: center;
    color: #999;
    padding: 40px 0;
    font-size: 16px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.cart-item-code {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.cart-item-details {
    display: flex;
    flex-direction: row;
    gap: 5px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #666;
}

.cart-item-type {
    font-size: 13px;
    color: #666;
}

.cart-item-sex {
    font-size: 13px;
    color: #666;
}

.cart-item-size {
    font-size: 13px;
    color: #666;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

.cart-item-remove:hover {
    color: #c0392b;
}

.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.cart-total {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.cart-total span:last-child {
    color: #9b2121;
    font-size: 20px;
    margin-left: 10px;
}

.proceed-btn {
    background: #9b2121;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.proceed-btn:hover {
    background: #7a1a1a;
    transform: translateY(-2px);
}

.proceed-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Reservation Modal */
.reservation-modal-content {
    max-width: 700px;
}

.reservation-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Reservation Code Display */
.reservation-code-display {
    background: linear-gradient(135deg, #9b2121 0%, #c9302c 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(155, 33, 33, 0.3);
}

.reservation-code-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.reservation-code-value {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 3px;
    margin: 0;
}

.reservation-details {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #666;
    font-size: 15px;
}

.detail-value {
    font-weight: 700;
    color: #333;
    font-size: 16px;
    text-transform: capitalize;
}

.reservation-items h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.reserved-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.reserved-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.reserved-item-info {
    flex: 1;
}

.reserved-item-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.reserved-item-code {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.reserved-item-type {
    font-size: 13px;
    color: #666;
}

.reserved-item-sex {
    font-size: 13px;
    color: #666;
}

.reserved-item-size {
    font-size: 13px;
    color: #666;
}

.reserved-item-details {
    display: flex;
    flex-direction: row;
    gap: 5px;
    flex-wrap: wrap;
}

.reserved-item-quantity {
    font-size: 13px;
    color: #666;
}

/* Transaction Item Styles */
.transaction-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.transaction-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.transaction-item-info {
    flex: 1;
}

.transaction-item-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.transaction-item-code {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.transaction-item-details {
    display: flex;
    flex-direction: row;
    gap: 5px;
    flex-wrap: wrap;
}

.transaction-item-type {
    font-size: 13px;
    color: #666;
}

.transaction-item-sex {
    font-size: 13px;
    color: #666;
}

.transaction-item-size {
    font-size: 13px;
    color: #666;
}

.transaction-item-quantity {
    font-size: 13px;
    color: #666;
}

/* History Modal */
.history-modal-content {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.history-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.history-tab {
    padding: 10px 20px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.history-tab:hover {
    background: #e9e9e9;
    color: #333;
}

.history-tab.active {
    background: linear-gradient(135deg, #9b2121 0%, #c9302c 100%);
    color: white;
}

.history-tab-content {
    display: none;
}

.history-tab-content.active {
    display: block;
}

/* Transaction Modal */
.transaction-modal-content {
    max-width: 700px;
}

.transaction-code-display {
    background: linear-gradient(135deg, #00563f 0%, #006d52 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
}

.transaction-code-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.transaction-code-value {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
}

.transaction-details {
    margin-bottom: 20px;
}

.transaction-items h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.history-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.history-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.history-code {
    font-size: 18px;
    font-weight: 800;
    color: #9b2121;
    letter-spacing: 1px;
}

.history-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    background: #e0e0e0;
    color: #666;
}

.history-status.confirmed {
    background: #27ae60;
    color: white;
}

.history-status.completed {
    background: #3498db;
    color: white;
}

.history-status.cancelled {
    background: #e74c3c;
    color: white;
}

.history-details {
    margin-bottom: 15px;
}

.history-detail-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.history-detail-row span {
    font-size: 14px;
    color: #666;
}

.history-items h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.history-item-detail {
    display: flex;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    gap: 12px;
}

.history-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.history-item-info {
    flex: 1;
}

.history-item-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.history-item-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 15px;
    margin-top: 4px;
}

.no-history {
    text-align: center;
    color: #999;
    padding: 40px 0;
    font-size: 16px;
}

.no-reservation {
    text-align: center;
    color: #999;
    padding: 40px 0;
    font-size: 16px;
}

/* Item Detail Modal */
#itemDetailModal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.item-name{font-size:19px;font-weight:700;color:#1a1a1a;line-height:1.35}
.item-code-label{font-size:12px;color:#888;font-weight:600;letter-spacing:.3px}

.item-detail-modal-content {
    background: #fff;
    margin: 3% auto;
    width: 92%;
    max-width: 960px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.22);
    /* no padding here — panels handle their own */
}

/* two-column layout */
.item-detail-content {
    display: flex;
    gap: 0;
    min-height: 500px;
}

.item-detail-image-section {
    flex: 0 0 420px;
    background: #f6f6f6;
    border-right: 1px solid #ebebeb;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-image-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.main-image-container {
    width: 100%;
    height: 340px;
    background: #efefef;
    border-radius: 14px;
    border: 2px solid #e8e8e8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: zoom-in;
    transition: border-color 0.2s;
}
.main-image-container:hover {
    border-color: #9b2121;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.15s ease;
}
.main-image-container:hover .main-image {
    transform: scale(1.04);
}

.image-zoom-hint {
    position: absolute;
    bottom: 12px; right: 12px;
    background: rgba(155, 33, 33, 0.88);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.main-image-container:hover .image-zoom-hint {
    opacity: 1;
}
.image-zoom-hint i {
    font-size: 15px;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: #9b2121 #ebebeb;
}
.thumbnail-container::-webkit-scrollbar { height: 4px; }
.thumbnail-container::-webkit-scrollbar-track { background: #ebebeb; border-radius: 2px; }
.thumbnail-container::-webkit-scrollbar-thumb { background: #9b2121; border-radius: 2px; }

.thumbnail {
    flex: 0 0 70px;
    height: 70px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
    background: #ddd;
}
.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumbnail:hover {
    border-color: #9b2121;
    transform: translateY(-2px);
}
.thumbnail.active {
    border-color: #9b2121;
    box-shadow: 0 0 0 3px rgba(155, 33, 33, 0.18);
}

.item-detail-info-section {
    flex: 1;
    padding: 32px 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
    max-height: 85vh;
}

/* badges row */
.item-stock-status {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.stock-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.stock-badge.in-stock    { background: #e8f5e9; color: #1b5e20; }
.stock-badge.out-of-stock{ background: #fdecea; color: #b71c1c; }

.status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.status-badge.status-available  { background: #e3f2fd; color: #0d47a1; }
.status-badge.status-unavailable{ background: #fdecea; color: #b71c1c; }
.status-badge.status-borrowed   { background: #fff8e1; color: #e65100; }

/* title block */
.item-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.item-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.35;
    margin: 0;
}

/* description */
.item-description {
    font-size: 13.5px;
    color: #555;
    line-height: 1.7;
    background: #faf8f8;
    padding: 14px 16px;
    border-radius: 10px 10px 10px 10px;
}

/* attribute grid */
.detail-attributes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.detail-attribute {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 11px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background 0.15s;
}
.detail-attribute:hover { background: #f5f0f0; }

.attribute-label {
    font-size: 10px;
    font-weight: 700;
    color: #9b2121;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.attribute-value {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

/* add to cart button */
.add-to-cart-btn {
    margin-top: auto;
    background: #9b2121;
    color: #fff;
    border: none;
    border-radius: 11px;
    padding: 15px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 18px rgba(155, 33, 33, 0.25);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    flex-shrink: 0;
}
.add-to-cart-btn i { font-size: 20px; }
.add-to-cart-btn:hover {
    background: #7a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(155, 33, 33, 0.35);
}
.add-to-cart-btn:active { transform: translateY(0); }

.detail-attributes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.detail-attribute {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.detail-attribute:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.attribute-label {
    font-weight: 600;
    color: #9b2121;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.attribute-value {
    font-weight: 700;
    color: #333;
    font-size: 14px;
}

.add-to-cart-btn {
    background: #9b2121;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-to-cart-btn:hover {
    background: #7a1a1a;
    transform: translateY(-2px);
}

.add-to-cart-icon-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #9b2121;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.add-to-cart-icon-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.product-card {
    cursor: pointer !important;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card * {
    cursor: pointer !important;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    position: relative;
}

.product-name {
    min-height: 40px;
    max-height: 40px;
    max-width: 50ch;
    padding-top: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 5px;
    margin-bottom: 55px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.code-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.6);
    color: #9b2121;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    z-index: 10;
}

.item-code-badge {
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    letter-spacing: 0.3px;
    font-family: 'Courier New', monospace;
}

/* Confirmation Modal Styles */
.confirmation-modal-content {
    max-width: 500px;
    margin: 10% auto;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.confirmation-body {
    margin: 20px 0;
}

.confirmation-body p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.warning-message {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    color: #856404;
}

.warning-message strong {
    color: #dc3545;
}

.confirmation-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.confirmation-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirmation-btn-confirm {
    background: linear-gradient(135deg, #9b2121 0%, #c9302c 100%);
    color: white;
}

.confirmation-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 33, 33, 0.3);
}

.confirmation-btn-cancel {
    background: #f0f0f0;
    color: #666;
}

.confirmation-btn-cancel:hover {
    background: #e0e0e0;
}

.sex-badge {
    background: #f0f0f0;
    color: #666;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.size-badge {
    background: #f0f0f0;
    color: #666;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.add-to-cart-card-btn {
    background: linear-gradient(135deg, #9b2121 0%, #c9302c 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

.add-to-cart-card-btn:hover {
    background: linear-gradient(135deg, #7a1a1a 0%, #9b2121 100%);
    transform: translateY(-2px);
}

.add-to-cart-card-btn.disabled {
    background: linear-gradient(135deg, #ccc 0%, #bbb 100%);
    color: #666;
    cursor: not-allowed;
    pointer-events: none;
    border-radius: 6px;
}

.add-to-cart-card-btn.disabled:hover {
    background: linear-gradient(135deg, #ccc 0%, #bbb 100%);
    transform: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #e74c3c;
}

.submit-btn {
    width: 100%;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #c0392b;
}

#zoomLightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
#zoomLightbox.open {
    display: flex;
}

#zoomImgWrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
#zoomImg {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 60px rgba(0,0,0,0.6);
    user-select: none;
    transition: opacity 0.15s ease;
}

#zoomClose {
    position: fixed;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    font-family: Arial, sans-serif;
    z-index: 10001;
    transition: background 0.2s;
}
#zoomClose:hover { background: rgba(255,255,255,0.25); }

#zoomPrev,
#zoomNext {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    width: 52px;
    height: 72px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10001;
    padding: 0;
    margin: 0;
    font-family: Arial, sans-serif;
    letter-spacing: 0;
    text-indent: 0;
}
#zoomPrev { left: 12px; }
#zoomNext { right: 12px; }
#zoomPrev:hover,
#zoomNext:hover { background: rgba(255,255,255,0.22); }
#zoomPrev.hidden,
#zoomNext.hidden { display: none; }

#zoomCounter {
    position: fixed;
    bottom: 20px;
    left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    font-family: 'Segoe UI', sans-serif;
    letter-spacing: 0.5px;
}

.filter-toggle-btn {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {

    .container {
        padding: 0 0;
    }

    .catalog-main {
        padding: 0 4px;
    }

    .header-top .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-left .main-nav {
        gap: 15px;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-text h1 {
        font-size: 32px;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .filter-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        overflow: visible;
    }

    .filter-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: #9b2121;
        color: white;
        padding: 12px 16px;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 500;
        margin-bottom: 16px;
        transition: background 0.3s ease;
    }

    .filter-toggle-btn:hover {
        background: #7a1a1a;
    }

    .filter-toggle-btn i {
        font-size: 20px;
    }

    .filter-section {
        display: none;
    }

    .filter-section.active {
        display: block;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .category-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }

    #itemDetailModal {
        align-items: flex-start;
        padding: 0;
    }

    .item-detail-modal-content {
        width: 96%;
        margin: 4% auto;
        border-radius: 16px;
    }

    .item-detail-content {
        flex-direction: column;
    }

    .item-detail-image-section {
        flex: none;
        border-right: none;
        border-bottom: 1px solid #ebebeb;
        padding: 20px;
        gap: 12px;
    }

    .main-image-container {
        height: 240px;
        border-radius: 10px;
    }

    .thumbnail {
        flex: 0 0 54px;
        height: 54px;
        border-radius: 8px;
    }

    .item-detail-info-section {
        padding: 20px 18px;
        max-height: none;
        gap: 14px;
    }

    .item-header h2 { font-size: 17px; }

    .detail-attributes {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .detail-attribute { padding: 10px 12px; }
    .attribute-label  { font-size: 9px; }
    .attribute-value  { font-size: 13px; }

    .add-to-cart-btn {
        padding: 14px;
        font-size: 14px;
        border-radius: 10px;
    }

    /* Attributes grid: 2 columns on mobile */
    .detail-attributes {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 16px;
    }

    .detail-attribute {
        padding: 10px;
    }

    .attribute-label {
        font-size: 10px;
    }

    .attribute-value {
        font-size: 13px;
    }

    /* Close button: bigger tap target */
    .close-modal {
        right: 14px;
        top: 12px;
        font-size: 32px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,0.85);
        border-radius: 50%;
        line-height: 1;
        z-index: 10;
    }

    /* Add to cart button: full width, easy to tap */
    .add-to-cart-btn {
        width: 100%;
        padding: 14px;
    }
}
html {
    scroll-behavior: smooth;
}

#template-container .donation-toggle-container {
    max-width: 600px;
    margin: 0 auto 40px;
}

#template-container .donation-toggle {
    display: flex;
    background: white;
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    width: 100%;
}

#template-container .toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 40px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

#template-container .toggle-btn i {
    font-size: 20px;
}

#template-container .toggle-btn.active {
    background: linear-gradient(135deg, #9b2121 0%, #7a1a1a 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(155, 33, 33, 0.3);
}

#template-container .toggle-btn:hover:not(.active) {
    background: #f8f8f8;
    color: #333;
}

#template-container .donation-section {
    padding: 40px 0;
}

#template-container .donation-intro-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#template-container .donation-intro-card h2 {
    color: #9b2121;
    margin-bottom: 16px;
    font-size: 28px;
    font-weight: 700;
}

#template-container .donation-intro-card p {
    color: #555;
    line-height: 1.8;
    font-size: 16px;
}

#template-container .donation-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

#template-container .donation-option-card {
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

#template-container .donation-option-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #9b2121;
}

#template-container .option-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #9b2121 0%, #7a1a1a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

#template-container .option-icon i {
    color: white;
    font-size: 32px;
}

#template-container .donation-option-card h3 {
    color: #333;
    margin-bottom: 12px;
    font-size: 20px;
}

#template-container .donation-option-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

#template-container .donation-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #9b2121 0%, #7a1a1a 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

#template-container .donation-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 33, 33, 0.4);
}

#template-container .location-details,
#template-container .bank-details {
    background: #f8f8f8;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
}

#template-container .location-details p,
#template-container .bank-details p {
    margin: 8px 0;
    color: #555;
    font-size: 14px;
}

#template-container .bank-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

#template-container .bank-card-header {
    background: linear-gradient(135deg, #1a5f2a 0%, #2d8a3e 100%);
    padding: 20px 24px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: -16px -16px 20px -16px;
}

@media (max-width: 768px) {
    #template-container .bank-card-header {
        padding: 16px 20px;
        gap: 10px;
        margin: -12px -12px 16px -12px;
    }

    #template-container .bank-logo-text {
        font-size: 18px;
    }

    #template-container .bank-card .option-icon.bank-icon {
        width: 40px;
        height: 40px;
    }

    #template-container .bank-card .option-icon.bank-icon i {
        font-size: 20px;
    }
}

#template-container .bank-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

#template-container .bank-card .option-icon.bank-icon {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    margin-bottom: 0;
}

#template-container .bank-card .option-icon.bank-icon i {
    color: #1a5f2a;
}

#template-container .bank-card h3 {
    color: #1a5f2a;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

#template-container .bank-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

#template-container .bank-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

#template-container .bank-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

#template-container .bank-detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

#template-container .bank-detail-icon {
    background: #1a5f2a;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#template-container .bank-detail-icon i {
    color: white;
    font-size: 22px;
}

#template-container .bank-detail-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

#template-container .bank-detail-content .label-value-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

#template-container .bank-label {
    color: #6c757d;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#template-container .bank-value {
    color: #212529;
    font-weight: 600;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    word-break: break-word;
}

#template-container .copy-btn {
    background: #1a5f2a;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

#template-container .copy-btn:hover {
    background: #2d8a3e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 95, 42, 0.3);
}

#template-container .copy-btn i {
    font-size: 18px;
}

#template-container .location-details a,
#template-container .contact-item a {
    color: #9b2121;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

#template-container .location-details a:hover,
#template-container .contact-item a:hover {
    color: #7a1a1a;
    text-decoration: underline;
}

#template-container .location-map {
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border: 2px solid #f0f0f0;
}

#template-container .location-map iframe {
    display: block;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

#template-container .location-map:hover iframe {
    filter: grayscale(0%);
}

#template-container .accepted-items-section,
#template-container .impact-section {
    margin-bottom: 40px;
}

#template-container .accepted-items-section h2,
#template-container .impact-section h2 {
    color: #333;
    margin-bottom: 24px;
    font-size: 24px;
}

#template-container .items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

#template-container .item-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

#template-container .item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #9b2121;
}

#template-container .item-card i {
    color: #9b2121;
    font-size: 48px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #9b2121 0%, #7a1a1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#template-container .item-card h3 {
    color: #333;
    margin: 12px 0;
    font-size: 18px;
    font-weight: 600;
}

#template-container .item-card p {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

#template-container .impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

#template-container .impact-card {
    background: white;
    padding: 35px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

#template-container .impact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #9b2121;
}

#template-container .impact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #9b2121 0%, #7a1a1a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(155, 33, 33, 0.3);
}

#template-container .impact-icon i {
    color: white;
    font-size: 32px;
}

#template-container .impact-amount {
    color: #9b2121;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #9b2121 0%, #7a1a1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#template-container .impact-card p {
    color: #666;
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

#template-container .guidelines-section,
#template-container .contact-section {
    margin-bottom: 40px;
}

#template-container .guidelines-section h2,
#template-container .contact-section h2 {
    color: #333;
    margin-bottom: 24px;
    font-size: 24px;
}

#template-container .guidelines-list {
    display: grid;
    gap: 16px;
}

#template-container .guideline-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

#template-container .guideline-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #9b2121;
}

#template-container .guideline-item i {
    color: #9b2121;
    font-size: 28px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #9b2121 0%, #7a1a1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#template-container .guideline-item p {
    color: #555;
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}

#template-container .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

#template-container .contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

#template-container .contact-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #9b2121;
}

#template-container .contact-item i {
    color: #9b2121;
    font-size: 32px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #9b2121 0%, #7a1a1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#template-container .contact-item p {
    color: #555;
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

#template-container .contact-item strong {
    color: #333;
    font-weight: 600;
}

#template-container .back-to-catalog {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
}

#template-container .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #9b2121;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 2px 12px rgba(155, 33, 33, 0.15);
    transition: all 0.3s ease;
    border: 2px solid #9b2121;
}

#template-container .back-btn:hover {
    background: linear-gradient(135deg, #9b2121 0%, #7a1a1a 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(155, 33, 33, 0.3);
}

#template-container .back-btn i {
    font-size: 22px;
}

@media (max-width: 768px) {
    #template-container .donation-options-grid {
        grid-template-columns: 1fr;
    }

    #template-container .items-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #template-container .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #template-container .contact-grid {
        grid-template-columns: 1fr;
    }

    #template-container .donation-intro-card,
    #template-container .donation-option-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    #template-container .items-grid {
        grid-template-columns: 1fr;
    }

    #template-container .impact-grid {
        grid-template-columns: 1fr;
    }
}