/* =========================================================
   GLOBAL RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}



/* =========================================================
   PRICE
========================================================= */

.price {
    font-size: 28px;
    font-weight: bold;
}


/* =========================================================
   BUY BUTTONS
========================================================= */

.button-group {
    display: flex;

    align-items: center;

    justify-content: flex-start;

    gap: 10px;

    margin-top: 35px;

    flex-wrap: wrap;
}

#CART,
#buynow {
    width: 220px;
    height: 55px;

    display: flex;

    justify-content: center;
    align-items: center;

    border: none;

    border-radius: 10px;

    font-size: 22px;
    font-weight: 600;

    cursor: pointer;

    text-decoration: none;

    transition: all 0.3s ease;
}

#CART {
    background-color: #f7c600;
    color: black;
}

#CART:hover {
    background-color: #e3b500;
    transform: translateY(-2px);
}

#buynow {
    background-color: rgb(205, 60, 60);
    color: white;
}

#buynow:hover {
    background-color: rgb(168, 17, 17);
    transform: translateY(-2px);
}

/* =========================================================
   COLLECTION OVERVIEW SECTION
========================================================= */

.collection-overview {
    width: 100%;
    max-width: 1400px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 50px;

    margin: 60px auto;

    padding: 0 50px;

    box-sizing: border-box;
}

.overview-text {
    flex: 1;

    min-width: 0;
}

.eyebrow {
    font-size: 14px;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;

    color: #8a7b6c;

    margin-bottom: 15px;
}

.overview-text h2 {
    text-align: left;

    font-size: 42px;

    font-weight: 700;

    line-height: 1.25;

    margin: 0 0 20px 0;

    color: #1f1a17;
}

.overview-text p {
    font-size: 17px;

    line-height: 1.7;

    color: #4a4a4a;

    margin: 0;
}

.overview-image {
    flex: 1;

    min-width: 0;
}

.overview-image img {
    width: 100%;
    height: auto;

    max-height: 480px;

    object-fit: cover;

    border-radius: 20px;

    display: block;
}


/* =========================================================
   SHOP SECTION
========================================================= */

.shopsection {
    width: 100%;
    max-width: 100%;

    display: flex;

    justify-content: space-between;

    align-items: stretch;

    gap: 20px;

    background-color: #e2e7e6;

    margin-top: 20px;

    padding: 0 15px;

    box-sizing: border-box;
}


/* =========================================================
   PRODUCT BOX
========================================================= */

.box {
    width: calc(25% - 15px);

    min-width: 0;

    height: 520px;

    border: 2px solid transparent;

    background-color: white;

    padding: 20px 0 15px;

    box-sizing: border-box;

    margin-top: 20px;
    margin-bottom: 20px;

    text-align: center;

    overflow: hidden;
}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.boximage {
    display: block;

    width: 80%;
    height: 80%;

    margin: 0 auto;

    background-size: cover;

    background-position: center;

    object-fit: cover;

    position: relative;
}


/* =========================================================
   GENERAL CONTENT
========================================================= */

h2 {
    text-align: center;
}

a {
    display: block;

    width: fit-content;

    margin: 15px auto;
}

/* "See More" link (inside product box) — underline spacing fix */
.box a {
    text-decoration: underline;

    text-underline-offset: 4px;

    text-decoration-thickness: 1px;

    line-height: 1.4;
}

/* Image + heading link wrapper (clicking image/heading behaves like the "See More" / "View Details" link) */
a.box-link {
    display: contents;

    text-decoration: none;

    color: inherit;
}

.box-link:hover h2,
.box-link:hover h3 {
    text-decoration: underline;
}

.sku {
    font-size: 16px;

    font-weight: 600;

    color: #555;

    margin: 10px 0;
}


/* =========================================================
   FOOTER
========================================================= */

.footer-container {
    width: 100%;

    display: flex;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 20px;

    padding: 20px;
}

.footer-section {
    width: 22%;
}

.footer-section h3 {
    margin-bottom: 15px;
}

.footer-section a {
    display: block;

    color: grey;

    text-decoration: none;

    margin: 8px 0;
}

.footer-section a:hover {
    text-decoration: underline;
}

.copyright {
    text-align: center;

    margin-top: 20px;

    padding-top: 15px;
}

#wdn {
    text-align: center;
}


/* =========================================================
   LOGIN SUCCESS POPUP
========================================================= */

.success-popup {
    position: fixed !important;

    top: 50% !important;
    left: 50% !important;

    transform: translate(-50%, -50%) !important;

    width: 320px;

    max-width: calc(100% - 30px);

    padding: 30px 25px;

    box-sizing: border-box;

    background: #ffffff;

    border-radius: 15px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);

    display: none;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    z-index: 99999;
}


/* Green circle */

.success-icon {
    width: 70px;
    height: 70px;

    background: #28a745;

    color: white;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 42px;

    font-weight: bold;

    margin-bottom: 18px;
}


/* Message */

.success-text {
    font-size: 21px;

    font-weight: 600;

    color: #222222;
}


/* =========================================================
   PERSONALIZED PRODUCTS
========================================================= */

.personalize-page {
    width: 100%;
    max-width: 100%;

    padding: 40px 50px;

    box-sizing: border-box;
}

.personalize-title {
    text-align: center;

    font-size: 36px;

    margin-bottom: 40px;
}

.personalize-grid {
    width: 100%;
    max-width: 1400px;

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 30px;

    margin: 0 auto;
}

.personalize-card {
    width: 100%;

    background-color: white;

    border: 1px solid #ddd;

    border-radius: 8px;

    overflow: hidden;

    text-align: center;

    padding-bottom: 25px;

    transition: all 0.3s ease;
}

.personalize-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.personalize-image {
    width: 100%;

    height: 300px;

    background-color: white;

    display: flex;

    justify-content: center;

    align-items: center;

    overflow: hidden;
}

.personalize-image img {
    max-width: 90%;

    max-height: 90%;

    width: auto;

    height: auto;

    object-fit: contain;

    display: block;

    transition: transform 0.3s ease;
}

.personalize-card:hover .personalize-image img {
    transform: scale(1.04);
}

.personalize-card h2 {
    font-size: 20px;

    line-height: 1.4;

    margin: 20px 15px;

    color: #222;
}

.personalize-btn {
    display: inline-flex;

    justify-content: center;
    align-items: center;

    width: 180px;

    height: 48px;

    background-color: #2d7ef7;

    color: white;

    text-decoration: none;

    border-radius: 6px;

    font-size: 18px;

    font-weight: 600;

    transition: all 0.3s ease;
}

.personalize-btn:hover {
    background-color: #1d5fd0;

    transform: translateY(-2px);
}


/* =========================================================
   LARGE TABLET / SMALL DESKTOP
   1000px
========================================================= */

@media (max-width: 1000px) {

    /* Collection Overview */

    .collection-overview {
        gap: 35px;

        padding: 0 30px;

        margin: 45px auto;
    }

    .overview-text h2 {
        font-size: 34px;
    }


    /* Products */

    .shopsection {
        gap: 15px;

        padding-left: 12px;
        padding-right: 12px;
    }

    .box {
        width: calc(25% - 12px);

        height: 470px;
    }

    .boximage {
        width: 80%;
        height: 75%;
    }


    /* Personalized */

    .personalize-page {
        padding: 35px 30px;
    }

    .personalize-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));

        gap: 25px;
    }
}


/* =========================================================
   TABLET
   750px
========================================================= */

@media (max-width: 750px) {

    /* Collection Overview */

    .collection-overview {
        flex-direction: column;

        text-align: center;

        gap: 25px;

        padding: 0 25px;

        margin: 35px auto;
    }

    .overview-text h2 {
        text-align: center;

        font-size: 30px;
    }

    .overview-image img {
        max-height: 350px;
    }


    /* Product section */

    .shopsection {
        width: 100%;

        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 20px;

        padding: 0 20px;

        margin-top: 20px;
    }

    .box {
        width: 100%;

        height: 480px;

        margin: 10px 0;

        min-width: 0;
    }

    .boximage {
        width: 80%;

        height: 75%;

        margin-left: auto;
        margin-right: auto;
    }


    /* Buttons */

    .button-group {
        gap: 15px;
    }

    #CART,
    #buynow {
        width: 200px;
    }


    /* Personalized */

    .personalize-page {
        width: 100%;

        padding: 30px 25px;
    }

    .personalize-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 20px;
    }

    .personalize-image {
        height: 280px;
    }

    .personalize-title {
        font-size: 32px;
    }


    /* Footer */

    .footer-section {
        width: 45%;
    }
}


/* =========================================================
   MOBILE
   600px
========================================================= */

@media (max-width: 600px) {

    /* Collection Overview */

    .collection-overview {
        padding: 0 15px;

        margin: 25px auto;

        gap: 20px;
    }

    .overview-text h2 {
        font-size: 26px;
    }

    .overview-text p {
        font-size: 15px;
    }

    .overview-image img {
        border-radius: 14px;

        max-height: 260px;
    }


    /* Products */

    .shopsection {
        width: 100%;

        display: grid;

        grid-template-columns: 1fr;

        gap: 15px;

        padding: 0 15px;

        margin-top: 15px;
    }

    .box {
        width: 100%;

        max-width: 500px;

        height: auto;

        min-height: 420px;

        margin: 8px auto;

        padding: 15px 10px 20px;

        justify-self: center;

        text-align: center;
    }

    .box h2 {
        font-size: 22px;

        line-height: 1.3;

        padding: 0 10px;
    }

    .boximage {
        display: block;

        width: 80%;

        max-width: 320px;

        height: 270px;

        margin: 0 auto;

        background-size: cover;

        background-position: center;
    }


    /* General headings */

    h2 {
        font-size: 24px;

        line-height: 1.3;
    }


    /* Price */

    .price {
        font-size: 24px;
    }


    /* Buttons */

    .button-group {
        width: 100%;

        flex-direction: column;

        gap: 12px;

        margin-top: 25px;
    }

    #CART,
    #buynow {
        width: 90%;

        max-width: 320px;

        height: 52px;

        font-size: 19px;
    }


    /* Personalized */

    .personalize-page {
        width: 100%;

        padding: 25px 15px;
    }

    .personalize-title {
        font-size: 28px;

        margin-bottom: 25px;
    }

    .personalize-grid {
        width: 100%;

        grid-template-columns: 1fr;

        gap: 20px;
    }

    .personalize-card {
        width: 100%;

        max-width: 450px;

        margin: 0 auto;
    }

    .personalize-image {
        height: 280px;
    }

    .personalize-card h2 {
        font-size: 20px;

        margin: 18px 15px;
    }

    .personalize-btn {
        width: 170px;

        height: 46px;

        font-size: 17px;
    }


    /* Footer */

    .footer-container {
        width: 100%;

        padding: 20px 15px;

        gap: 20px;
    }

    .footer-section {
        width: 100%;

        text-align: center;
    }

    .footer-section a {
        margin-left: auto;
        margin-right: auto;
    }


    /* Login popup */

    .success-popup {
        width: 90%;

        max-width: 350px;

        padding: 25px 20px;
    }

    .success-text {
        font-size: 19px;
    }
}


/* =========================================================
   SMALL MOBILE
   400px
========================================================= */

@media (max-width: 400px) {

    /* Collection Overview */

    .overview-text h2 {
        font-size: 22px;
    }

    .eyebrow {
        font-size: 12px;
    }


    /* Product section */

    .shopsection {
        padding-left: 10px;

        padding-right: 10px;
    }

    .box {
        width: 100%;

        max-width: 360px;

        min-height: 390px;

        padding: 12px 8px 18px;
    }

    .box h2 {
        font-size: 20px;
    }

    .boximage {
        width: 82%;

        height: 245px;

        max-width: 300px;

        margin: 0 auto;
    }


    /* Personalized */

    .personalize-page {
        padding: 20px 10px;
    }

    .personalize-title {
        font-size: 25px;
    }

    .personalize-image {
        height: 250px;
    }


    /* Buttons */

    #CART,
    #buynow {
        width: 95%;

        font-size: 18px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   350px
========================================================= */

@media (max-width: 350px) {

/*
    #banner {
        height: 210px;
    } */


    .shopsection {
        padding-left: 8px;

        padding-right: 8px;
    }


    .box {
        width: 100%;

        max-width: 330px;

        min-height: 370px;

        margin-left: auto;

        margin-right: auto;
    }


    .box h2 {
        font-size: 19px;
    }


    .boximage {
        width: 85%;

        height: 225px;

        margin-left: auto;

        margin-right: auto;
    }


    .personalize-title {
        font-size: 23px;
    }


    .personalize-image {
        height: 230px;
    }
}



/* =========================================================
   BRING YOUR DESIGN BANNER (Home page, above footer)
========================================================= */

.byd-banner {
    position: relative;

    width: 100%;

    margin-top: 40px;

    line-height: 0;
}

.byd-img {
    width: 100%;

    height: auto;

    display: block;
}

.byd-btn {
    position: absolute;

    left: 10.6%;

    top: 67%;

    margin: 0;

    width: auto;

    line-height: 1;

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: clamp(8px, 1vw, 14px) clamp(18px, 2vw, 34px);

    font-size: clamp(12px, 1.1vw, 18px);

    font-weight: 600;

    letter-spacing: 1px;

    color: #6b3a1e;

    background: #ffffff;

    border: 2px solid #6b3a1e;

    border-radius: 40px;

    text-decoration: none;

    box-shadow: 0 4px 14px rgba(107, 58, 30, 0.15);

    transition: all 0.3s ease;
}

.byd-arrow {
    display: inline-block;

    transition: transform 0.3s ease;
}

.byd-btn:hover {
    background: #6b3a1e;

    color: #ffffff;

    box-shadow: 0 6px 18px rgba(107, 58, 30, 0.3);
}

.byd-btn:hover .byd-arrow {
    transform: translateX(5px);
}

@media (max-width: 600px) {

    .byd-banner {
        margin-top: 25px;
    }

    .byd-btn {
        border-width: 1.5px;

        gap: 6px;
    }
}

/* =========================================================
   NEW COLLECTION — AUTO-SLIDING IMAGES (home page box)
========================================================= */

.slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: slideshowFade 6s infinite;
}

.slideshow img:nth-child(1) {
    animation-delay: 0s;
}

.slideshow img:nth-child(2) {
    animation-delay: 2s;
}

.slideshow img:nth-child(3) {
    animation-delay: 4s;
}

@keyframes slideshowFade {
    0%   { opacity: 0; }
    5%   { opacity: 1; }
    28%  { opacity: 1; }
    33%  { opacity: 0; }
    100% { opacity: 0; }
}
/* =========================================================
   PRODUCT LIST PAGINATION
   (shared by every shape/category/search/personalize page)
========================================================= */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;

    margin: 40px auto 50px;
    padding: 0 20px;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.pagination-btn,
.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    margin: 0;

    border: 1px solid #d9d9d9;
    border-radius: 6px;

    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    color: #333;
    vertical-align: middle;

    text-decoration: none;
    background-color: #fff;
    box-shadow: none;

    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pagination-number {
    padding: 0;
}

/* Only the color/background should change on hover, click or focus -
   never position or size. This overrides any sitewide "lift up" or
   "press down" button effect (transform, box-shadow, outline) that
   would otherwise make the active/clicked number look like it jumped. */
.pagination-btn,
.pagination-number,
.pagination-btn:hover,
.pagination-number:hover,
.pagination-btn:focus,
.pagination-number:focus,
.pagination-btn:active,
.pagination-number:active,
.pagination-number.active {
    transform: none !important;
    outline: none;
    box-shadow: none !important;
    position: relative;
    top: 0;
    bottom: 0;
}

.pagination-btn:hover,
.pagination-number:hover {
    background-color: #1d5fd0;
    border-color: #1d5fd0;
    color: #fff;
}

.pagination-number.active {
    background-color: #1d5fd0;
    border-color: #1d5fd0;
    color: #fff;
    cursor: default;
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 600px) {
    .pagination-btn,
    .pagination-number {
        font-size: 13px;
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
    }
}