/* ============================================ */
/* PRODUCTS PAGE - GLOBAL STYLES */
/* ============================================ */

/* Page Specific Styles */
body {
    background: #f8f8f8;
    padding-top: 80px;
}

.category-header {
    background: #ffffff;
    padding: 40px 20px 30px;
    text-align: center;
    border-bottom: 3px solid #c9a84c;
    margin-bottom: 30px;
}

.category-header h1 {
    font-size: 42px;
    font-weight: 300;
    color: #1a1a1a;
    letter-spacing: 2px;
}

.category-header h1 span {
    color: #c9a84c;
    font-weight: 700;
}

.category-header p {
    color: #666;
    font-size: 16px;
    margin-top: 8px;
}

/* ============================================ */
/* NEWLY ADDED SECTION - CAROUSEL (SMALLER) */
/* ============================================ */
.newly-added-section {
    max-width: 1400px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.newly-added-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.newly-added-header h2 {
    font-size: 28px;
    color: #1a1a1a;
    font-weight: 600;
    margin: 0;
}

.newly-added-header h2 span {
    color: #c9a84c;
}

.newly-added-header .badge-new {
    background: #c9a84c;
    color: #1a1a1a;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newly-added-carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    padding: 15px 10px;
}

.newly-added-carousel {
    display: flex;
    gap: 10px;
    padding: 0 5px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.newly-added-carousel::-webkit-scrollbar {
    display: none;
}

.newly-added-item {
    flex: 0 0 calc(16.666% - 9px);
    min-width: calc(16.666% - 9px);
    max-width: calc(16.666% - 9px);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: #fafafa;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    scroll-snap-align: start;
    aspect-ratio: 1 / 1;
}

.newly-added-item:hover {
    transform: translateY(-4px);
    border-color: #c9a84c;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.newly-added-item:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}

.newly-added-item .image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.newly-added-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.newly-added-item .item-info {
    padding: 6px 8px;
}

.newly-added-item .item-info h4 {
    font-size: 11px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.newly-added-item .item-info p {
    font-size: 9px;
    color: #999;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.newly-added-item .new-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #28a745;
    color: #ffffff;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 7px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 3;
}

.newly-added-item .item-date {
    position: absolute;
    bottom: 5px;
    right: 6px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 7px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 3px;
}

.newly-added-item .item-date i {
    font-size: 6px;
    color: #c9a84c;
}

/* Carousel Navigation Arrows */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.6);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 12px;
    touch-action: manipulation;
}

.carousel-btn:hover {
    background: #c9a84c;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

.carousel-btn-left {
    left: 5px;
}

.carousel-btn-right {
    right: 5px;
}

/* ============================================ */
/* DESIGNS SECTION - 2x BIGGER (98% width) */
/* ============================================ */
.designs-section {
    max-width: 1400px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.designs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.designs-header h2 {
    font-size: 28px;
    color: #1a1a1a;
    font-weight: 600;
    margin: 0;
}

.designs-header h2 span {
    color: #c9a84c;
}

.designs-header .filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.designs-header .filter-group label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin: 0;
}

.designs-header .filter-group select {
    padding: 8px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.designs-header .filter-group select:focus {
    border-color: #c9a84c;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.designs-header .filter-group .clear-date {
    color: #dc3545;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.designs-header .filter-group .clear-date:hover {
    background: rgba(220, 53, 69, 0.1);
    text-decoration: underline;
}

.designs-carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    padding: 15px 10px;
}

.designs-carousel {
    display: flex;
    gap: 20px;
    padding: 0 5px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior: contain;
    scroll-snap-type: x mandatory;
}

.designs-carousel::-webkit-scrollbar {
    display: none;
}

/* ============================================ */
/* DESIGNS ITEM - 2x BIGGER SIZE */
/* ============================================ */
.designs-item {
    flex: 0 0 calc(98% - 15px);
    min-width: calc(98% - 15px);
    max-width: calc(98% - 15px);
    border-radius: 28px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s ease;
    border: 3px solid transparent;
    background: #fafafa;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    aspect-ratio: 16 / 8.5;
    scroll-snap-align: start;
}

.designs-item:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: #c9a84c;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}

.designs-item:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}

.designs-item .card-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f0f0f0;
}

.designs-item .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s ease;
}

.designs-item:hover .card-image img {
    transform: scale(1.15);
}

.designs-item .item-date-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.92));
    padding: 85px 35px 30px 35px;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 2;
}

.designs-item:hover .item-date-overlay {
    opacity: 1;
}

.designs-item .item-date-overlay span {
    color: #fff;
    font-size: 30px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.designs-item .item-date-overlay span i {
    color: #c9a84c;
    font-size: 28px;
}

.designs-item .card-body {
    padding: 30px 35px 32px;
}

.designs-item .card-body h3 {
    font-size: 42px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.designs-item .card-body p {
    font-size: 24px;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.7;
}

/* Designs Carousel Navigation Arrows - Bigger */
.designs-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    background: rgba(0,0,0,0.85);
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 36px;
    touch-action: manipulation;
    backdrop-filter: blur(8px);
}

.designs-carousel-btn:hover {
    background: #c9a84c;
    transform: translateY(-50%) scale(1.1);
    border-color: #c9a84c;
}

.designs-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
    border-color: rgba(255,255,255,0.1);
}

.designs-carousel-btn-left {
    left: 18px;
}

.designs-carousel-btn-right {
    right: 18px;
}

/* ============================================ */
/* NO RESULTS */
/* ============================================ */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-results i {
    font-size: 48px;
    opacity: 0.3;
    display: block;
    margin-bottom: 15px;
}

.no-results h3 {
    font-size: 20px;
    color: #666;
    font-weight: 300;
}

.no-results h3 span {
    color: #c9a84c;
    font-weight: 600;
}

.no-results p {
    font-size: 14px;
    color: #999;
}

.no-results a {
    color: #c9a84c;
    font-weight: 600;
    text-decoration: none;
}

.no-results a:hover {
    text-decoration: underline;
}

/* ============================================ */
/* EMPTY STATE */
/* ============================================ */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px 60px;
    color: #999;
}

.empty-state .empty-icon {
    font-size: 80px;
    color: #c9a84c;
    opacity: 0.2;
    display: block;
    margin-bottom: 25px;
}

.empty-state h2 {
    font-size: 28px;
    color: #666;
    font-weight: 300;
    margin-bottom: 10px;
}

.empty-state h2 span {
    color: #c9a84c;
    font-weight: 600;
}

.empty-state p {
    font-size: 16px;
    color: #999;
    max-width: 500px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.empty-state .empty-subtext {
    font-size: 14px;
    color: #bbb;
    margin-top: 10px;
}

.empty-state .empty-subtext i {
    color: #c9a84c;
    margin-right: 5px;
}

/* ============================================ */
/* MODAL - BIGGER FOR MOBILE USERS */
/* ============================================ */
.image-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    padding: 10px;
    cursor: default;
}

.image-modal.show {
    display: flex;
}

.image-modal .modal-container {
    position: relative;
    max-width: 95%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 8px;
    cursor: default;
    margin: auto;
    justify-content: center;
}

.image-modal .modal-container .modal-image-wrapper {
    position: relative;
    width: 100%;
    max-height: 78vh;
    overflow: hidden;
    border-radius: 8px;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.1);
}

.image-modal .modal-container .modal-image-wrapper img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    transition: transform 0.1s ease;
    transform-origin: center center;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.image-modal .modal-container .modal-image-wrapper img:active {
    cursor: grabbing;
}

/* Close Button */
.image-modal .modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    background: rgba(0,0,0,0.7);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    touch-action: manipulation;
}

.image-modal .modal-close:hover {
    background: #dc3545;
    transform: rotate(90deg) scale(1.1);
    border-color: #dc3545;
}

/* Navigation Buttons */
.image-modal .modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.6);
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(4px);
    touch-action: manipulation;
}

.image-modal .modal-nav:hover {
    background: #c9a84c;
    border-color: #c9a84c;
    transform: translateY(-50%) scale(1.1);
}

.image-modal .modal-nav-left {
    left: 8px;
}

.image-modal .modal-nav-right {
    right: 8px;
}

.image-modal .modal-counter {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    margin-top: 3px;
    font-weight: 300;
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media (max-width: 1200px) {
    .newly-added-item {
        flex: 0 0 calc(20% - 8px);
        min-width: calc(20% - 8px);
        max-width: calc(20% - 8px);
    }
    .designs-item {
        flex: 0 0 calc(96% - 15px);
        min-width: calc(96% - 15px);
        max-width: calc(96% - 15px);
        aspect-ratio: 16 / 9;
    }
    .designs-item .card-body h3 {
        font-size: 36px;
    }
    .designs-item .card-body p {
        font-size: 20px;
    }
    .designs-item .item-date-overlay span {
        font-size: 26px;
    }
    .designs-item .item-date-overlay {
        padding: 75px 32px 28px 32px;
    }
    .designs-carousel-btn {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
}

@media (max-width: 992px) {
    .category-header h1 {
        font-size: 32px;
    }
    
    .newly-added-item {
        flex: 0 0 calc(25% - 10px);
        min-width: calc(25% - 10px);
        max-width: calc(25% - 10px);
    }
    
    .designs-item {
        flex: 0 0 calc(94% - 15px);
        min-width: calc(94% - 15px);
        max-width: calc(94% - 15px);
        aspect-ratio: 16 / 9.5;
    }
    .designs-item .card-body h3 {
        font-size: 32px;
    }
    .designs-item .card-body p {
        font-size: 18px;
    }
    .designs-item .item-date-overlay span {
        font-size: 24px;
    }
    .designs-item .item-date-overlay {
        padding: 70px 30px 26px 30px;
    }
    .designs-carousel-btn {
        width: 62px;
        height: 62px;
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 65px;
    }
    
    .category-header {
        padding: 25px 20px 20px;
        margin-bottom: 20px;
    }
    .category-header h1 {
        font-size: 28px;
    }
    
    .newly-added-header h2 {
        font-size: 20px;
    }
    .designs-header h2 {
        font-size: 20px;
    }
    
    .newly-added-item {
        flex: 0 0 calc(33.333% - 8px);
        min-width: calc(33.333% - 8px);
        max-width: calc(33.333% - 8px);
    }
    .newly-added-item .item-info h4 {
        font-size: 10px;
    }
    .newly-added-item .item-info p {
        font-size: 9px;
    }
    .newly-added-item .new-badge {
        font-size: 7px;
        padding: 1px 6px;
    }
    .newly-added-item .item-date {
        font-size: 7px;
        padding: 2px 6px;
    }
    .newly-added-item .item-date i {
        font-size: 6px;
    }
    
    .designs-item {
        flex: 0 0 calc(92% - 15px);
        min-width: calc(92% - 15px);
        max-width: calc(92% - 15px);
        aspect-ratio: 16 / 9;
    }
    .designs-item .card-body h3 {
        font-size: 28px;
    }
    .designs-item .card-body p {
        font-size: 17px;
    }
    .designs-item .item-date-overlay span {
        font-size: 22px;
    }
    .designs-item .item-date-overlay {
        padding: 65px 26px 24px 26px;
    }
    .designs-carousel-btn {
        width: 54px;
        height: 54px;
        font-size: 22px;
    }
    .designs-carousel-btn-left {
        left: 10px;
    }
    .designs-carousel-btn-right {
        right: 10px;
    }
    
    .designs-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .designs-header .filter-group label {
        font-size: 13px;
    }
    .designs-header .filter-group select {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .image-modal .modal-container {
        max-width: 96%;
        max-height: 90vh;
        padding: 8px;
    }
    .image-modal .modal-container .modal-image-wrapper {
        max-height: 72vh;
    }
    .image-modal .modal-container .modal-image-wrapper img {
        max-height: 72vh;
    }
    .image-modal .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .image-modal .modal-nav-left {
        left: 5px;
    }
    .image-modal .modal-nav-right {
        right: 5px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 55px;
    }
    
    .category-header h1 {
        font-size: 22px;
    }
    
    .newly-added-item {
        flex: 0 0 calc(33.333% - 8px);
        min-width: calc(33.333% - 8px);
        max-width: calc(33.333% - 8px);
    }
    
    .designs-item {
        flex: 0 0 calc(95% - 15px);
        min-width: calc(95% - 15px);
        max-width: calc(95% - 15px);
        aspect-ratio: 16 / 9;
    }
    .designs-item .card-body h3 {
        font-size: 24px;
    }
    .designs-item .card-body p {
        font-size: 16px;
        -webkit-line-clamp: 1;
    }
    .designs-item .item-date-overlay span {
        font-size: 20px;
    }
    .designs-item .item-date-overlay {
        padding: 50px 22px 20px 22px;
    }
    .designs-carousel-btn {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }
    .designs-carousel-btn-left {
        left: 8px;
    }
    .designs-carousel-btn-right {
        right: 8px;
    }
    
    .newly-added-header h2 {
        font-size: 16px;
    }
    .designs-header h2 {
        font-size: 16px;
    }
    
    .designs-header .filter-group select {
        font-size: 12px;
        padding: 4px 10px;
    }
    .designs-header .filter-group label {
        font-size: 12px;
    }
    
    .carousel-btn {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }
    
    .image-modal {
        padding: 5px;
    }
    .image-modal .modal-container {
        max-width: 98%;
        max-height: 95vh;
        padding: 5px;
        border-radius: 8px;
    }
    .image-modal .modal-container .modal-image-wrapper {
        max-height: 75vh;
        border-radius: 6px;
    }
    .image-modal .modal-container .modal-image-wrapper img {
        max-height: 75vh;
        border-radius: 6px;
    }
    .image-modal .modal-close {
        top: 6px;
        right: 6px;
        width: 36px;
        height: 36px;
        font-size: 18px;
        border-width: 1.5px;
    }
    .image-modal .modal-nav {
        width: 32px;
        height: 32px;
        font-size: 12px;
        border-width: 1.5px;
    }
    .image-modal .modal-nav-left {
        left: 3px;
    }
    .image-modal .modal-nav-right {
        right: 3px;
    }
    .image-modal .modal-counter {
        font-size: 10px;
        margin-top: 2px;
    }
}