:root {
    --purple: #2d1097;
    --pink: #ff2785;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--purple);
    font-family: Arial, "Microsoft JhengHei", sans-serif;
    color: #fff;
}
.container {
    width: 100%;
    max-width: 1440px;
    padding: 0;
    margin: auto;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    font: inherit;
}
a:focus-visible,
button:focus-visible {
    outline: 4px solid #fff33d;
    outline-offset: 4px;
    z-index: 5;
}
.hero {
    display: block;
}
.hero img {
    width: 100%;
}
.promotions {
    display: grid;
    grid-template-columns: 1fr 2.5fr 1fr;
    align-items: center;
    gap: 3%;
    width: 92%;
    margin: 0 auto;
}
.promotion-card {
    display: block;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    width: 100%;
    min-width: 0;
}
.promotion-card img {
    width: 100%;
}
.coupons {
    width: 92%;
    margin: 100px auto 0;
    padding: 0 3% 24px;
    border: 2px solid #8e69e8;
    border-radius: 24px;
    background: #25158c;
    box-shadow: 0 0 30px #aa8aff88;
}
.coupons > img {
    width: 50%;
    max-width: 630px;
    margin: -44px auto 34px;
}
.coupon-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}
.coupon-note {
    text-align: center;
    font-size: 12px;
    margin: 28px 0 0;
}
.specials {
    width: 86%;
    margin: 140px auto 0;
    padding: 0 8px 12px;
    border: 3px solid #d3a0ff;
    border-radius: 22px;
    background: linear-gradient(180deg, #6500f5, #351194);
    box-shadow: inset 0 0 20px #aa3fff;
}
.specials > img {
    width: 36%;
    max-width: 450px;
    margin: -36px auto 8px;
}
.special-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
}
.register {
    width: 86%;
    margin: 95px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 25px 15px;
    background: linear-gradient(130deg, #9d24ff, #310ba0);
    border: 2px solid #d39aff;
    border-radius: 16px;
    font-weight: bold;
    font-size: clamp(14px, 1.65vw, 24px);
}
.register strong {
    color: #fff336;
    font-size: 1.5em;
    font-style: italic;
}
.register b,
.buy-button {
    background: linear-gradient(100deg, #ff4a6b, #ef2a37);
    color: white;
    border-radius: 40px;
    padding: 9px 25px;
    white-space: nowrap;
}
.product_block {
    position: relative;
    width: 85%;
    margin: 230px auto 0;
}
.product_block::before,
.product_block::after {
    content: "";
    position: absolute;
    background: center/contain no-repeat;
    pointer-events: none;
    z-index: 0;
}
.product_block::before {
    background-image: url(../images/dec-shopping-bag.png);
    width: 160px;
    height: 180px;
    right: 0;
    top: -180px;
}
.product_block::after {
    background-image: url(../images/dec-heart.png);
    width: 130px;
    height: 120px;
    left: 5%;
    bottom: -160px;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 12px;
    position: relative;
    z-index: 1;
}
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    color: #111;
    padding: 14px 14px 16px;
    transition: transform 0.15s;
}
.product-card:hover {
    transform: translateY(-3px);
    color: #111;
}
.product-photo {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
}
.product-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-copy {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-top: 12px;
}
.product-copy h3 {
    font-size: clamp(13px, 1.25vw, 18px);
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 14px;
}
.pricing {
    margin-top: auto;
}
.pricing del,
.price-spacer {
    display: block;
    min-height: 1.3em;
    color: #777;
    font-size: 14px;
}
.pricing p {
    color: #ff2600;
    font-size: clamp(16px, 1.7vw, 25px);
    font-weight: 700;
    margin: 0 0 10px;
    white-space: nowrap;
}
.pricing strong {
    font-size: 1.45em;
    font-style: italic;
}
.buy-button {
    align-self: center;
    font-size: 18px;
    font-weight: 700;
    padding: 5px 24px;
}
.product-tag {
    position: absolute;
    left: -8px;
    top: -15px;
    transform: rotate(-10deg);
    background: #6eff00;
    color: #291294;
    font-size: 22px;
    font-weight: 900;
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: 2px 3px 4px #0003;
    z-index: 2;
    white-space: nowrap;
}
.offer-ribbon {
    background: #f2ff26;
    color: #25108f;
    font-size: 15px;
    text-align: center;
    font-weight: 700;
    padding: 5px;
    margin: 8px -14px 0;
}
.group-2 {
    max-width: 976px;
    width: 68%;
    background: #fff58a;
    padding: 32px;
    border-radius: 20px;
}
.group-2 .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.group-2::before {
    background-image: url(../images/dec-ribbon.png);
    top: auto;
    bottom: 30%;
    right: -15%;
    width: 160px;
    height: 120px;
}
.group-2::after {
    background-image: url(../images/dec-triangle.png);
    left: -12%;
    bottom: -80px;
    width: 180px;
    height: 180px;
}
.group-3 .product-card {
    grid-column: span 3;
}
.group-3 .product-card:nth-child(-n + 3) {
    grid-column: span 4;
}
.group-3::before {
    background-image: url(../images/dec-coupon-purple.png);
    width: 180px;
    height: 130px;
    top: -180px;
}
.group-3::after {
    background-image: url(../images/dec-coupon-yellow.png);
    left: 15%;
}
.group-4::before {
    background-image: url(../images/dec-ribbon.png);
    width: 240px;
    height: 120px;
    top: -120px;
}
.group-4::after {
    display: none;
}
.footer_wrapper {
    padding: 200px 6% 90px;
}
.footer-links,
.apps,
.social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.apps a {
    width: 250px;
}
.social > a {
    width: 60px;
}
.social .line-link {
    width: auto;
    display: flex;
    align-items: center;
    border-radius: 0 32px 32px 0;
    background: #ffe343;
    color: #111;
    font-weight: 700;
    padding-right: 15px;
}
.line-link img {
    width: 60px;
}
.line-link span {
    padding-left: 10px;
}
.footer_wrapper p {
    font-size: 13px;
    line-height: 1.8;
    color: #b9a6de;
    text-align: center;
    margin: 55px 0 0;
}
dialog {
    color: #fff;
    background: #28116e;
    border: 2px solid #ae75ff;
    border-radius: 20px;
    padding: 28px;
    max-width: calc(100% - 36px);
}
dialog::backdrop {
    background: #0009;
}
dialog h2 {
    font-size: 22px;
}
dialog button {
    border: 0;
    border-radius: 30px;
    background: var(--pink);
    color: white;
    padding: 10px 28px;
    font-weight: bold;
}
@media (max-width: 767px) {
    .promotions {
        width: 92%;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }
    .promotions > :nth-child(2) {
        grid-column: 1/-1;
        grid-row: 1;
        max-width: 480px;
        justify-self: center;
    }
    .coupons {
        margin-top: 70px;
        padding: 0 12px 18px;
        border-radius: 16px;
    }
    .coupons > img {
        width: 90%;
        margin: -25px auto 20px;
    }
    .coupon-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
    .coupon-grid > :last-child {
        grid-column: 2;
    }
    .coupon-note {
        font-size: 10px;
        margin-top: 18px;
    }
    .specials {
        width: 92%;
        margin-top: 65px;
        padding: 0 8px 10px;
    }
    .specials > img {
        width: 75%;
        margin-top: -25px;
    }
    .special-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .special-grid > :last-child {
        grid-column: 1/-1;
        width: calc(50% - 5px);
        justify-self: center;
    }
    .register {
        width: 92%;
        margin-top: 35px;
        gap: 8px;
        flex-direction: column;
        font-size: 16px;
        padding: 16px 10px;
    }
    .product_block,
    .group-2 {
        width: 94%;
        margin-top: 100px;
    }
    .product-grid,
    .group-2 .product-grid,
    .group-3 .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 8px;
    }
    .group-3 .product-card,
    .group-3 .product-card:nth-child(-n + 3) {
        grid-column: auto;
    }
    .product-card {
        padding: 8px 8px 12px;
    }
    .product-photo {
        border-radius: 8px;
    }
    .product-copy h3 {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 10px;
    }
    .pricing del {
        font-size: 11px;
    }
    .pricing p {
        font-size: 13px;
    }
    .pricing strong {
        font-size: 1.65em;
    }
    .buy-button {
        font-size: 14px;
        padding: 5px 18px;
    }
    .product-tag {
        font-size: 12px;
        left: -3px;
        top: -10px;
        padding: 5px 6px;
    }
    .offer-ribbon {
        font-size: 10px;
        margin: 6px -8px 0;
        padding: 4px 2px;
    }
    .group-2 {
        padding: 12px 6px;
        border-radius: 12px;
    }
    .product_block::before {
        width: 70px;
        height: 75px;
        top: -75px;
        right: 6px;
    }
    .product_block::after {
        width: 60px;
        height: 55px;
        bottom: -65px;
        left: 5px;
    }
    .group-2::before {
        right: 10px;
        top: -65px;
        bottom: auto;
    }
    .group-2::after {
        left: 0;
        bottom: -65px;
    }
    .group-3::before {
        width: 80px;
        height: 60px;
        top: -80px;
    }
    .group-4::before {
        width: 100px;
        height: 60px;
        top: -65px;
    }
    .footer_wrapper {
        padding: 80px 20px 35px;
    }
    .footer-links {
        gap: 20px;
    }
    .apps {
        gap: 12px;
        flex-wrap: nowrap;
    }
    .apps a {
        width: 135px;
    }
    .social {
        gap: 12px;
    }
    .social > a {
        width: 36px;
    }
    .line-link img {
        width: 36px;
    }
    .line-link span {
        font-size: 12px;
    }
    .footer_wrapper p {
        font-size: 10px;
        margin-top: 25px;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
/* Complete artwork cards with separately positioned labels. */
.finished-card {
    display: block;
    min-width: 0;
    align-self: start;
}
.finished-card img {
    width: 100%;
    height: auto;
}
.finished-card:hover {
    filter: brightness(1.04);
}
.product-grid,
.group-2 .product-grid {
    gap: 28px 12px;
}
.coupons > img {
    width: 55%;
    height: auto;
    max-width: 636px;
    position: relative;
    z-index: 1;
    margin: -55px auto 24px;
}
.specials > img {
    width: 40%;
    height: auto;
    max-width: 470px;
    position: relative;
    z-index: 1;
    margin: -52px auto 10px;
}
.footer-art {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-art a {
    display: block;
}
.footer-art img {
    width: auto;
    height: 80px;
    max-width: 100%;
}
.footer-art .footer-facebook img,
.footer-art .footer-instagram img {
    height: 80px;
}
@media (max-width: 767px) {
    .group-3 .finished-card,
    .group-3 .finished-card:nth-child(-n + 3) {
        grid-column: auto;
    }
    .product-grid,
    .group-2 .product-grid,
    .group-3 .product-grid {
        gap: 16px;
    }
    .coupons > img {
        width: 96%;
        max-width: 636px;
        margin: -25px auto 18px;
    }
    .specials > img {
        width: 85%;
        max-width: 470px;
        margin: -32px auto 8px;
    }
    .footer-art {
        gap: 8px;
    }
    .footer-art img,
    .footer-art .footer-facebook img,
    .footer-art .footer-instagram img {
        height: 39px;
    }
    .footer-art .footer-app-store,
    .footer-art .footer-google-play {
        margin-bottom: 8px;
    }
    .footer-art .footer-app-store {
        margin-left: 10px;
    }
    .footer-art .footer-google-play {
        margin-right: 10px;
    }
}
/* Labels remain independent transparent images anchored to each card. */
.finished-card {
    position: relative;
}
.finished-card > img:first-child {
    display: block;
    width: 100%;
    height: auto;
}
.finished-card > .card-badge {
    position: absolute;
    height: auto;
    z-index: 2;
    pointer-events: none;
    max-width: none;
}
/* Keep registration text readable in every link state. */
a.register,
a.register:visited,
a.register:hover,
a.register:focus,
a.register:active {
    color: #fff;
    text-decoration: none;
}
a.register strong {
    color: #fff336;
}
a.register b {
    color: #fff;
}

/* Keep the three promotion cards together across responsive layouts. */
.group-3 .featured-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.group-3 .everyday-products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 28px;
}
@media (max-width: 767px) {
    .product_block {
        --product-gap: 16px;
    }
    .product-grid,
    .group-2 .product-grid,
    .group-3 .product-grid {
        gap: var(--product-gap);
    }
    .group-3 .featured-products,
    .group-3 .everyday-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .group-3 .featured-products > .finished-card:last-child {
        grid-column: 1/-1;
        width: calc((100% - var(--product-gap)) / 2);
        justify-self: start;
    }
    .group-3 .everyday-products {
        margin-top: var(--product-gap);
    }
}
@media(max-width:767px){
  .group-2{padding:var(--product-gap)}
}
@media(min-width:768px){
  .group-2 .product-grid{gap:12px}
}
.footer-app-row,.footer-social-row{display:flex;align-items:center;justify-content:center;gap:16px}
@media(max-width:767px){
  .footer-art{flex-direction:column;gap:16px}
  .footer-app-row,.footer-social-row{gap:10px;max-width:100%}
  .footer-art .footer-app-store,.footer-art .footer-google-play{margin:0}
  .footer-app-row img{height:36px;width:auto}
  .footer-social-row img,.footer-social-row .footer-facebook img,.footer-social-row .footer-instagram img{height:36px;width:auto}
}
/* Original artwork details, kept as separate transparent layers. */
.register-art{position:relative;width:86%;margin:95px auto 0;z-index:1}
.register-art .register{display:block;width:100%;margin:0;padding:0;border:0;background:none;border-radius:0}
.register-art .register img{width:100%;height:auto}
.register-ribbon{position:absolute;left:13%;top:calc(100% - 3px);width:25%;max-width:190px;height:auto;z-index:-1;pointer-events:none}
.design-decoration{position:absolute;pointer-events:none;z-index:0;height:auto}
.blur-triangle{width:30%;right:-2%;top:calc(100% - 8px)}
.blur-cube{width:48%;max-width:600px;left:-16%;top:70%}
.group-3::after{width:210px;height:155px;left:15%;top:calc(100% + 38px);bottom:auto}
.group-4::before{width:32%;max-width:290px;height:auto;aspect-ratio:378/186;right:2%;top:auto;bottom:calc(100% - 3px)}
.footer_wrapper{position:relative;z-index:1}
@media(max-width:767px){
 .register-art{width:92%;margin-top:35px}
 .register-ribbon{width:25%;max-width:110px}
 .blur-triangle{width:43%;right:-1%;top:calc(100% - 4px)}
 .blur-cube{width:65%;left:-15%;top:88%}
 .group-3::after{width:90px;height:70px;left:15%;top:calc(100% + 20px)}
 .group-4::before{width:32%;right:2%;height:auto;top:auto;bottom:calc(100% - 2px)}
}
/* Match the image transforms in the supplied Illustrator/PDF design. */
.group-3::after{transform:rotate(23.82deg);transform-origin:center}
.group-4::before{transform:rotate(32.83deg);transform-origin:center}
