.header {
    background: linear-gradient(to right, #5298A1 0%, #006775 50%, #006775 100%);
    padding: 1.8% 1.8% 1.8% 5%;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 999;
    width: 50%;
}

.logo {
    filter: brightness(0) invert(1);
    width: 10%;
    display: inline-block;
}

.top_side {
    float: right;
    color: #fff;
    display: flex;
    grid-gap: 1vw;
    font-size: 1.3vw;
}

.user_name {
    text-transform: uppercase;
}

.account,
.cart {
    cursor: pointer;
}

.container {
    padding: 50px;
    display: flex;
    gap: 40px;
    min-height: calc(100vh - 120px);
    align-items: flex-start;
}

/* Two-column layout */
.left-section {
	padding: 50px;
	box-shadow: 15px 15px 15px #ddd;
	position: fixed;
	width: 50%;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	box-sizing: border-box;
	margin-top: 50px;
	overflow: auto;
}

.right-section {
	min-height: 100%;
	position: fixed;
	width: 50%;
	right: 0;
	top: 0;
	background: #F9F9F9;
}

/* Categories grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-item {
    display: block;
    text-align: center;
}

.category-item .thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.category-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.category-item .label {
    margin-top: 10px;
    color: #000;
    font-weight: 600;
    text-align: center;
}




.content h1 {
    font-size: 50px;
    font-weight: normal;
    margin: 30px auto;
}

.content h2 {
    margin: 0 auto 20px;
    font-size: 30px;
    font-weight: normal;
}

.content p {
    margin-bottom: 30px;
    font-size: 20px;
    line-height: 1.25;
    max-width: 561px;
    color: #000;
}


.mobile-only {
    display: none;
}

.copyright {
    background: #ECECEC;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    height: 30px;
    font-size: 12px;
    line-height: 30px;
    padding: 0 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease-in-out;
}

.copyright.show {
    opacity: 1;
    pointer-events: auto;
}

@media screen and (max-width: 1199px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-item .label {
        font-size: 1rem;
    }
}

@media screen and (max-width: 767px) {
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }

    .container {
        display: block;
        margin-top: 75px;
        padding: 20px;
    }

    /* Removed unused sidebar/quote styles per cleanup request */

    .content {
        width: auto;
    }

    .content h1 {
        display: none;
    }

    .content h2 {
        margin: 20px auto 2%;
        font-size: 20px;
    }

    .content p {
        margin-bottom: 8%;
        font-size: 18px;
        line-height: 1.25;
        max-width: 100%;
    }

    /* Hide header on small screens */
    .header {
        display: none;
    }

    /* Adjust logo on mobile: remove filter and set size */
    .logo-mobile {
        display: block;
        margin: 0 auto;
    }

    .logo-mobile img {
        filter: none;
        width: 100px;
        height: auto;
        display: block;
    }

    /* Mobile hamburger menu */
    .hamburger-menu {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        background: linear-gradient(to right, #5298A1 0%, #006775 50%, #5298A1 100%);
        width: 100%;
        border-bottom: 1px solid #006775;
        padding: 8px 12px;
        height: 60px;
    }

    #hamburger {
        font-size: 28px;
        padding: 8px;
        cursor: pointer;
        color: #fff;
        position: absolute;
        top: 5px;
        left: 10px;
    }
    .left-section,
    .right-section {
        position: static;
        width: auto;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }
}

/* Mobile grid: 2 columns */
@media screen and (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .category-item .label {
        font-size: 0.875rem;
    }
}

/* Design Card Stack Styling */
.designs-section {
    flex: 1;
    padding: 0 2vw;
}

.latest-title {
    font-size: 30px;
    font-weight: 600;
    color: #006775;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 1px;
    padding-top: 50px;
}

.popular-title {
    font-size: 30px;
    font-weight: 600;
    color: #006775;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 1px;
    margin-top: 50px;
}

.cards-stack-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cards-stack {
    position: relative;
    width: 100%;
    height: 35vh;
}

.stacked-card {
    position: absolute;
    width: 30%;
    max-width: 280px;
    min-width: 150px;
    transition: all 0.3s ease;
    transform-origin: bottom;
    box-shadow: 0px 0px 19.6621px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    background: #fff;
}



.stacked-card a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.stacked-card .card-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.stacked-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* Playing card stack positions - center card largest, others behind */
.stacked-card.card-1 {
    left: 5%;
    bottom: 4%;
    transform: scale(0.7);
    z-index: 1;
}

.stacked-card.card-2 {
    left: 20%;
    bottom: 2%;
    transform: scale(0.85);
    z-index: 2;
    border: 5px solid #fff;
}


.stacked-card.card-3 {
    left: 35%;
    bottom: 0;
    transform: scale(1);
    z-index: 5;
    border: 10px solid #fff;
}

.stacked-card.card-4 {
    right: 20%;
    bottom: 2%;
    transform: scale(0.85);
    z-index: 2;
    border: 5px solid #fff;
}

.stacked-card.card-5 {
    right: 5%;
    bottom: 4%;
    transform: scale(0.7);
    z-index: 1;
}

/* Responsive adjustments for card stacks */
@media screen and (max-width: 1199px) {
    .container {
        flex-direction: column;
        min-height: auto;
    }

    .left-section,
    .right-section {
        flex: 1;
    }
}


/* Desktop label sizing */
.category-item .label {
    font-size: 1.05rem;
}

/* Popular Cards Slider (Owl Carousel) */
.popular-cards .popular-owl {
    width: 100%;
    padding: 0 40px; /* space for nav arrows */
    box-sizing: border-box;
    position: relative;
}

.popular-cards .owl-item,
.popular-cards .item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.popular-cards .popular-card {
    display: block;
    width: 100%;
    max-width: 320px;
    border-radius: 14px;
    background: #fff;
    box-shadow: none; /* default: no shadow */
    transition: transform 200ms ease;
}

/* Apply shadow only to centered Owl item */
.popular-cards .owl-item.center .popular-card {
    box-shadow: 0px 0px 19px rgba(0, 0, 0, 0.5);
}

.popular-cards .owl-carousel .owl-stage-outer{
    padding: 30px 0;
}

.popular-cards .popular-card:hover {
    transform: translateY(-4px);
}

.popular-cards .popular-card .card-image {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 10px solid #fff; /* framed look */
}

.popular-cards .popular-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Owl nav styling */
.popular-cards .owl-nav { 
    position: absolute; 
    top: 50%; 
    left: 0; 
    right: 0; 
    transform: translateY(-50%); 
    display: flex; 
    justify-content: space-between; 
    pointer-events: none;
}
.popular-cards .owl-nav button.owl-prev, .popular-cards .owl-nav button.owl-next {
	background: transparent;
	box-shadow: none;
	color: #B8D2D5;
	font-size: 73px;
    pointer-events: all;
}

.popular-cards .owl-nav button span { 
    position: relative; top: -1px; 
}

@media (max-width: 767px) {
    .popular-cards .popular-owl { padding: 10px 30px; }
}