/*
Theme Name: waterstyle
Version: 1.0
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
    /* Colors */
    --color-primary: #ff0000;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray: #c0c0c0;

    /* Typography */
    --font-family: Arial, Helvetica, sans-serif;

    /* Spacing */
    --spacing-page-x-mobile: 16px;
    --spacing-page-x: var(--spacing-page-x-mobile);

    --spacing-gap: 24px;
    --spacing-gap-mobile: 12px;

    /* Transitions */
    --transition-fast: 150ms ease;
}

@media (min-width:1024px) {
    :root {
        --spacing-page-x: 30px;
    }
}

/* ==========================================================================
   Reset / Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body {
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1;
    color: var(--color-black);
    background-color: var(--color-white);
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body::-webkit-scrollbar, html::-webkit-scrollbar {
    display: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

/* Screen reader only */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-black);
    color: var(--color-white);
    padding: 8px 16px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   Layout
   ========================================================================== */

main {
    flex: 1;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    padding: var(--spacing-page-x);
    padding-bottom: 0;
}

.site-header__inner {
    width: 100%;
}

.site-logo {
    display: block;
    color: var(--color-primary);
    transition: opacity var(--transition-fast);
}

.site-logo:hover,
.site-logo:focus {
    opacity: 0.8;
}

.site-logo__svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.home .hero {
    margin-top: 370px;
}

/* Desktop: Position hero at bottom of viewport with spacing */
@media (min-width: 1024px) {
    body.home .site-header {
        height: 100vh;
        display: flex;
        flex-direction: column;
        padding: var(--spacing-page-x);
    }

    /* Push hero to bottom using margin-top auto */
    .home .hero {
        margin-top: auto;
    }
}

.hero__tagline {
    color: var(--color-primary);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.12;
}

@media (min-width: 1024px) {
    .hero__tagline {
        font-size: 48px;
    }
}

.hero__brand {
    display: block;
}

.hero__slogan {
    display: block;
}

/* ==========================================================================
   Products Section
   ========================================================================== */



.products {
    padding: 0 var(--spacing-page-x);
    margin-top: 80px;
}

.product-card__figure {
    aspect-ratio: 1 / 1.3;
}

.products__title {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: var(--spacing-page-x);
}


.products__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-gap-mobile);
}


@media (min-width: 768px) {
    .products__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products {
        margin-top: 120px;
    }
    .products__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-gap);
    }
    /* .products__title {
        font-size: 28px;
    } */
}



/* ==========================================================================
   Product Card
   ========================================================================== */

.product-card {
    width: 100%;
}

.product-card__trigger {
    display: block;
    width: 100%;
    text-align: left;
    cursor: pointer;
}



.product-card__figure {
    width: 100%;
    aspect-ratio: 1 / 1.25;
    overflow: hidden;
    margin-bottom: var(--spacing-gap);
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}


.product-card__info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.product-card__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-card__name {
    font-size: 20px;
    font-weight: 400;
    color: var(--color-black);
    text-transform: uppercase;
}

.product-card__price {
    font-size: 20px;
    font-weight: 400;
    color: var(--color-black);
}

/* Remove WooCommerce default price styling */
.product-card__price .woocommerce-Price-amount {
    font-weight: 400;
}

.product-card__price .woocommerce-Price-currencySymbol {
    font-weight: 400;
}

.product-card__buy {
    font-size: 20px;
    font-weight: 400;
    color: var(--color-gray);
}

.product-card__trigger:hover .product-card__buy {
    color: var(--color-black);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    padding: var(--spacing-page-x);
    padding-top: 260px;
    margin-top: auto;
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
}

.social-links {
    display: flex;
    flex-direction: column;
    row-gap: 4px;
}

@media (min-width: 768px) {
    .social-links {
        display: flex;
        flex-direction: row;
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .site-footer {
        padding-top: 280px;
    }
    .site-footer__inner {
        flex-direction: row;
    }
    .social-links {
        gap: 48px;
    }
}

.site-footer__copyright {
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-gray);
}

.social-links a {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-gray);
    transition: color var(--transition-fast);
}

.social-links a:hover,
.social-links a:focus {
    color: var(--color-black);
}

/* ==========================================================================
   Product Modal
   ========================================================================== */

.product-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-color: var(--color-white);
    overflow-y: auto;
    opacity: 1;
    transition: opacity 300ms ease;
}

.product-modal[hidden] {
    display: block;
    opacity: 0;
    pointer-events: none;
}

/* Close button */
.product-modal__close {
    position: absolute;
    top: var(--spacing-page-x);
    left: var(--spacing-page-x);
    z-index: 1001;
    font-size: 20px;
    font-weight: 700;
    color: black;
}



@media (min-width: 768px) {
    .product-modal__close {
        left: auto;
        right: var(--spacing-page-x);
    }
}

/* Content grid - Mobile: 4 columns */
.product-modal__content {
    display: flex;
    flex-direction: column;
    /* grid-template-columns: repeat(4, 1fr); */
    gap: var(--spacing-gap);
    padding: var(--spacing-page-x);
    min-height: 100vh;
    padding-top: 80px;
}

@media (min-width: 768px) {
    .product-modal__content {
        padding-top: var(--spacing-page-x);
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        /* padding-top: 90px; */
        align-content: start;
    }
}

/* Header - Mobile: row 1, Tablet/Desktop: right column */
.product-modal__header {
    grid-column: 1 / -1;
    margin-bottom: 0px;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .product-modal__header {
        margin-bottom: 12px;
        grid-column: 7 / -1;
        grid-row: 1;
    }
}

@media (min-width: 1024px) {
    .product-modal__header {
        grid-column: 6 / 10;
    }
}

.product-modal__name {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-black);
    text-transform: uppercase;
}

@media (min-width: 1024px) {
    .product-modal__name {
        font-size: 48px;
    }
}

.product-modal__price {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-black);
}

@media (min-width: 1024px) {
    .product-modal__price {
        font-size: 48px;
    }
}

.product-modal__vat {
    font-weight: 700;
}

/* Gallery - Mobile: row 2, Tablet/Desktop: left column spanning rows */
.product-modal__gallery {
    grid-column: 1 / -1;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .product-modal__gallery {
        grid-column: 1 / 7;
        grid-row: 1 / 5;
        margin-bottom: 0;
    }
}

@media (min-width: 1024px) {
    .product-modal__gallery {
        grid-column: 1 / 6;
    }
}

/* Slider */
.product-modal__slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-modal__slider::-webkit-scrollbar {
    display: none;
}

.product-modal__slide {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 1 / 1.2;
    scroll-snap-align: start;
    cursor: pointer;
}

.product-modal__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Pagination */
.product-modal__pagination {
    display: flex;
    gap: 4px;
    margin-top: 12px;
}

.product-modal__page-btn {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-gray);
    min-width: 3ch;
    text-align: center;
}

.product-modal__page-btn:hover,
.product-modal__page-btn:focus {
    color: var(--color-black);
}

.product-modal__page-btn.is-active {
    color: var(--color-black);
}

.product-modal__page-btn.is-active::before {
    content: '[';
}

.product-modal__page-btn.is-active::after {
    content: ']';
}

/* Details - Mobile: row 3+, Tablet/Desktop: right column */
.product-modal__details {
    grid-column: 1 / -1;
    display: contents;
}

@media (min-width: 768px) {
    .product-modal__details {
        display: flex;
        flex-direction: column;
        grid-column: 7 / -1;
        grid-row: 2 / 5;
    }
}

@media (min-width: 1024px) {
    .product-modal__details {
        grid-column: 6 / 10;
    }
}

/* Actions */
.product-modal__actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 0px;
    margin-bottom: 24px;
}

@media (min-width: 1024px) {
    .product-modal__actions {
        margin-bottom: 32px;
    }
}

.product-modal__buy-btn,
.product-modal__qty-btn {
    height: 44px;
    border: 1px solid var(--color-black);
    border-radius: 22px;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-black);
}

.product-modal__buy-btn {
    padding: 0 32px;
    min-width: 100px;
    white-space: nowrap;
}

.product-modal__qty-btn {
    width: 72px;
}

.product-modal__buy-btn:hover,
.product-modal__qty-btn:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

/* Description */
.product-modal__description {
    grid-column: 1 / -1;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 700;
    color: var(--color-black);
    text-transform: uppercase;
    margin-top: 6px;
    margin-bottom: 24px;
}

@media (min-width:768px) {
    .product-modal__description {
        margin-top: 32px;
        margin-bottom: 24px;
    }
}

/* Notice */
.product-modal__notice {
    grid-column: 1 / -1;
    font-size: 20px;
    line-height: 1.15;
}

@media (min-width: 768px) {
    .product-modal__notice {
        margin-top: auto;
        margin-bottom: 32px;
    }
}


/* ==========================================================================
   Cart Drawer
   ========================================================================== */

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    height: 100%;
    background-color: var(--color-white);
    /* background-color: var(--color-gray); */
    color: var(--color-primary);
    border-left: 1px solid var(--color-primary);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.cart-drawer:not([hidden]) {
    transform: translateX(0);
}

.cart-drawer[hidden] {
    display: flex;
}

/* Header */
.cart-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    flex-shrink: 0;
}

.cart-drawer__title {
    font-size: 20px;
    font-weight: 700;
}

.cart-drawer__close {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    background: none;
    border: none;
    cursor: pointer;
}

/* Content */
.cart-drawer__content {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cart-drawer__content::-webkit-scrollbar {
    display: none;
}

.cart-drawer__items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cart-drawer__empty {
    text-align: center;
    padding: 48px 0;
    color: var(--color-primary);
    font-size: 20px;
}

.cart-drawer__empty[hidden] {
    display: none;
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: 16px;
    padding: var(--spacing-page-x) 0;
}

.cart-item__image {
    width: 80px;
    aspect-ratio: 1 / 1.2;
    object-fit: cover;
    border-radius: 6px;
    background-color: var(--color-gray);
}

.cart-item__details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item__name {
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
}

.cart-item__price {
    font-size: 14px;
    color: var(--color-gray);
}

.cart-item__total {
    font-size: 20px;
    font-weight: 400;
    text-align: right;
    margin-left: auto;
}

/* Quantity Controls */
.cart-item__quantity {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 6px;
    width: fit-content;
}

.cart-item__qty-btn {
    width: 64px;
    height: 32px;
    background: none;
    border: 1px solid var(--color-primary);
    border-radius: 22px;
    color: var(--color-primary);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.cart-item__qty-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.cart-item__qty-value {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    min-width: 72px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    border: 1px solid var(--color-primary);
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 22px;
}

.cart-item__remove {
    font-size: 12px;
    margin-left: 2px;
    font-weight: 400;
    color: var(--color-primary);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    margin-top: 6px;
  text-decoration: underline;
    text-decoration-thickness: auto;
  text-decoration-thickness: 1px;
  text-underline-offset: 2.3px;
}

.cart-item__remove:hover {
    text-decoration: none;
}


/* Footer */
.cart-drawer__footer {
    padding: 24px;
    flex-shrink: 0;
}

.cart-drawer__subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.cart-drawer__subtotal-label {
    font-size: 20px;
    font-weight: 400;
}

.cart-drawer__subtotal-value {
    font-size: 20px;
    font-weight: 400;
}

.cart-drawer__checkout {
    display: block;
    width: fit-content;
    padding: 0 24px;
    text-align: center;
    height: 44px;
    line-height: 42px;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-white);
    background-color: var(--color-primary);
    text-decoration: none;
    border: 1px solid var(--color-primary);
    border-radius: 22px;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.cart-drawer__checkout:hover,
.cart-drawer__checkout:focus {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.cart-drawer__checkout[hidden] {
    display: none;
}


/* ==========================================================================
   Floating Cart Button
   ========================================================================== */

.cart-float {
    position: fixed;
    right: var(--spacing-page-x);
    top: 80px;
    height: 44px;
    padding: 0 24px;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    background-color: var(--color-white);
    border: 1px solid var(--color-primary);
    border-radius: 22px;
    cursor: pointer;
    z-index: 999;
}

@media (min-width:768px) {
    .cart-float {
        top: 100px;
    }
}

.cart-float:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.cart-float[hidden] {
    display: none;
}


/* ==========================================================================
   Checkout Page
   ========================================================================== */

.woocommerce-cart .site-main,
.woocommerce-checkout .site-main {
    padding-left: var(--spacing-page-x);
    padding-right: var(--spacing-page-x);
    padding-top: 80px;
    padding-bottom: 24px;
}

.wc-block-components-button {
  height: 44px;
  padding: 0 24px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-black);
  background-color: var(--color-white);
  border: 1px solid var(--color-black);
  border-radius: 32px;
  cursor: pointer;
}


/* ==========================================================================
   WooCommerce Overrides
   ========================================================================== */

/* Remove any default WooCommerce styles that might interfere */
.woocommerce-page .products,
.woocommerce .products {
    margin: 0;
    padding: 0;
}

.woocommerce ul.products {
    margin: 0;
}

.woocommerce ul.products li.product {
    margin: 0;
    padding: 0;
    width: auto;
}
