/* Project Sablay Catalog Styles */

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

/* 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: 0 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-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-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;
    }
}

.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-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;
}

.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;
}

/* Sex Options */
.sex-options label {
    display: flex;
    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 2px 10px 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;
}

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

.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: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.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: #e74c3c;
    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 {
    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 {
    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 {
    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 {
    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-details {
    font-size: 14px;
    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;
}

.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-type {
    font-size: 13px;
    color: #666;
}

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

.reserved-item-size {
    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 */
.item-detail-modal-content {
    max-width: 900px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.item-detail-content {
    display: flex;
    gap: 0;
}

.item-detail-image {
    border-radius: 15px;
    flex: 1;
    max-width: 450px;
    background: linear-gradient(135deg, #9b2121 0%, #c9302c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.item-detail-image img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.item-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px;
}

.item-detail-info h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #333;
    letter-spacing: -0.5px;
}

.item-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #9b2121;
}

.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;
}

.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: #9b2121;
    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: #7a1a1a;
    transform: translateY(-2px);
}

.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;
}

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

    .container {
        padding: 0 12px;
    }

    .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;
    }
    
    .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 {
        max-width: 900px;
        width: 95%;
        margin: 5% auto;
        padding: 0;
        border-radius: 16px;
        overflow: hidden;
    }

    /* Stack image on top, info below */
    .item-detail-content {
        flex-direction: column;
        flex: 1;
        overflow-y: auto;
    }

    /* Image: fixed compact height on mobile */
    .item-detail-image {
        max-width: 100%;
        width: 100%;
        min-height: 220px;
        max-height: 260px;
        padding: 20px;
        flex-shrink: 0;
    }

    .item-detail-image img {
        max-height: 200px;
        width: auto;
        margin: 0 auto;
        display: block;
    }

    /* Info panel: scrolls independently if content is tall */
    .item-detail-info {
        padding: 20px 16px;
        max-height: none;
        overflow-y: visible;
    }

    .item-detail-info h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    /* Description box */
    .item-description {
        font-size: 14px;
        padding: 12px;
        margin-bottom: 16px;
    }

    /* 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;
        font-size: 15px;
        margin-top: 16px;
        border-radius: 10px;
    }
}
