/**
 * Style dla shortcodów produktu
 * - [dst_product_info]
 * - [dst_product_params]
 * - [dst_product_variants]
 * - [dst_product_price]
 */

/* ===== WSPÓLNE ===== */
.dst-product-info,
.dst-product-params,
.dst-product-variants {
    font-family: "Red Hat Display", sans-serif;
}

.dst-section-title {
    display: none;
}

/* ===== ATRYBUTY (INFO + PARAMS) ===== */
.dst-attributes-grid {
    display: grid;
    grid-template: auto / 1fr 1fr;
    gap: 20px;
}

.dst-attribute-item {
    display: flex;
    flex-direction: column;
}

.dst-attribute-label {
    color: #0000007a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1;
}

.dst-attribute-value {
    color: #000;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}

/* ===== WARIANTY KOLORYSTYCZNE ===== */
.dst-variant-section {
    margin-bottom: 20px;
}

.dst-variant-label {
    display: block;
    color: #999;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.dst-variant-select {
    width: 100%;
    padding: 12px 15px;
    font-family: "Red Hat Display", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dst-variant-select:hover,
.dst-variant-select:focus {
    border-color: #BEA45A;
    outline: none;
}

.dst-color-swatches {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.dst-color-swatch-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.dst-color-swatch {
    aspect-ratio: 1/1;
    width: 72px;
    height: 72px;
    border-radius: 0;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dst-color-swatch:hover,
.dst-color-swatch.active {
    border-color: #000;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dst-color-price {
    color: #000;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.3px;
}

/* ===== RADIO PILLS ===== */
.dst-variant-radio-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dst-variant-radio-label {
    cursor: pointer;
    display: inline-flex;
    position: relative;
}

.dst-variant-radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.dst-variant-radio-text {
    display: inline-block;
    padding: 9px 18px;
    border: 2px solid #ddd;
    background: #fff;
    color: #000;
    font-family: "Red Hat Display", sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    user-select: none;
}

.dst-variant-radio-label:hover .dst-variant-radio-text {
    border-color: #BEA45A;
}

.dst-variant-radio-label input[type="radio"]:checked + .dst-variant-radio-text {
    border-color: #000;
    background: #000;
    color: #fff;
}

/* ===== CHECKBOXY (multi-select) ===== */
.dst-variant-checkbox-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dst-variant-checkbox-label {
    cursor: pointer;
    display: inline-flex;
    position: relative;
}

.dst-variant-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.dst-variant-checkbox-text {
    display: inline-block;
    padding: 9px 18px;
    border: 2px solid #ddd;
    background: #fff;
    color: #000;
    font-family: "Red Hat Display", sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    user-select: none;
}

.dst-variant-checkbox-label:hover .dst-variant-checkbox-text {
    border-color: #BEA45A;
}

.dst-variant-checkbox-label input[type="checkbox"]:checked + .dst-variant-checkbox-text {
    border-color: #000;
    background: #000;
    color: #fff;
}

/* ===== CENA PRODUKTU ===== */
.dst-product-price-box {
    font-family: "Red Hat Display", sans-serif;
}

.dst-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.dst-price-prefix {
    color: #000;
    font-size: 16px;
    font-weight: 400;
    text-transform: lowercase;
}

.dst-price-amount {
    color: #000;
    font-size: 22px;
    font-weight: 400;
    font-family: "Times New Roman";
    letter-spacing: -0.5px;
    transition: opacity 0.3s ease;
}

.dst-price-amount.updating {
    opacity: 0.3;
}

.dst-price-suffix {
    color: #999;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-top: 4px;
}

/* ===== DODAJ DO KOSZYKA + QUANTITY ===== */
.dst-add-to-cart-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    font-family: "Red Hat Display", sans-serif;
}

.dst-quantity-wrapper {
    display: flex;
    align-items: center;
    height: 68px;
    border-bottom: 1px solid #000;
}

.dst-quantity-minus,
.dst-quantity-plus {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #000;
    font-size: 18px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dst-quantity-minus:hover,
.dst-quantity-plus:hover {
    opacity: 0.7;
}

.dst-quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    border-bottom: 0;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    font-family: "Red Hat Display", sans-serif;
    -moz-appearance: textfield;
    background: transparent;
}

.dst-quantity-input::-webkit-outer-spin-button,
.dst-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dst-quantity-input:focus {
    outline: none;
}

.dst-add-to-cart-button {
    flex: 1;
    min-width: 200px;
    height: 69px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: "Red Hat Display", sans-serif;
}

.dst-add-to-cart-button:hover {
    background: #333;
}

.dst-add-to-cart-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dst-add-to-cart-button.loading {
    opacity: 0.7;
}

.dst-add-to-cart-button .nav-action__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dst-add-to-cart-button .nav-action__icon::before {
    content: "[";
    margin-right: 3px;
    transition: margin .1s ease;
}

.dst-add-to-cart-button .nav-action__icon::after {
    content: "]";
    margin-left: 3px;
    transition: margin .1s ease;
}

.dst-add-to-cart-button .nav-action__icon i {
    font-size: 16px;
    transition: all .1s linear;
    transform: translateY(1px);
}

.dst-add-to-cart-button:hover .nav-action__icon::before {
    margin-right: 6px;
}

.dst-add-to-cart-button:hover .nav-action__icon::after {
    margin-left: 6px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .dst-attributes-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dst-price-amount {
        font-size: 28px;
    }
    
    .dst-color-swatch {
        width: 60px;
        height: 60px;
    }
    
    .dst-add-to-cart-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dst-add-to-cart-button {
        width: 100%;
        min-width: auto;
    }
}

/* ===== GLOBALNA CENA "OD" DLA PRODUKTÓW ZMIENNYCH ===== */
.dst-variable-price-prefix {
    display: inline;
    font-size: 1em;
    font-weight: 400;
    opacity: 0.8;
}


.dst-grid.dst-grid-4 {
  display: grid;
  grid-template: auto / 1fr 1fr 1fr 1fr;
  gap: 16px;
}

.dst-grid.dst-grid-2 {
  display: grid;
  grid-template: auto / 1fr 1fr;
  gap: 16px;
}

h2.dst-product-title {
  color: #FFF !important;
  font-family: "Times New Roman" !important;
  font-size: 24px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: normal !important;
  text-transform: uppercase;
}
/* RWD */

@media (max-width: 980px) {
  .dst-grid.dst-grid-4 {
  grid-template: auto / 1fr 1fr;
}

.dst-grid.dst-grid-2 {
  grid-template: auto / 1fr;
}
}
@media (max-width: 768px) {
  .dst-grid.dst-grid-4 {
  grid-template: auto / 1fr;
}

.dst-grid.dst-grid-2 {
  grid-template: auto / 1fr;
}
}