/* Coming Soon Badge */
.wc-csp-badge {
    position: absolute;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ensure product images container has relative positioning */
.woocommerce div.product div.images,
.woocommerce-product-gallery {
    position: relative !important;
}

/* Badge positioning on single product pages - force top-left to avoid zoom icon */
.woocommerce div.product .wc-csp-badge {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 999 !important;
}

.wc-csp-badge-top-left {
    top: 10px;
    left: 10px;
}

.wc-csp-badge-top-right {
    top: 10px;
    right: 10px;
}

.wc-csp-badge-bottom-left {
    bottom: 10px;
    left: 10px;
}

.wc-csp-badge-bottom-right {
    bottom: 10px;
    right: 10px;
}

/* Countdown Timer */
.wc-csp-timer {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    text-align: center;
}

.wc-csp-timer-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wc-csp-timer-countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.wc-csp-timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.wc-csp-timer-value {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.wc-csp-timer-label {
    font-size: 12px;
    text-transform: uppercase;
    margin-top: 5px;
    opacity: 0.7;
}

/* Notify Me Form */
.wc-csp-notify-wrapper {
    margin: 20px 0;
}

.wc-csp-notify-instruction {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.wc-csp-notify-trigger {
    padding: 12px 30px;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.wc-csp-notify-trigger:hover {
    opacity: 0.9;
}

.wc-csp-notify-form-wrapper {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.wc-csp-notify-form-wrapper h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.wc-csp-notify-form p {
    margin-bottom: 15px;
}

.wc-csp-notify-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.wc-csp-notify-form input[type="email"],
.wc-csp-notify-form input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.wc-csp-notify-options label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.wc-csp-notify-options input[type="checkbox"] {
    margin-right: 8px;
}

.wc-csp-submit {
    padding: 12px 30px;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.wc-csp-submit:hover {
    opacity: 0.9;
}

.wc-csp-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wc-csp-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.wc-csp-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wc-csp-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .wc-csp-timer-countdown {
        gap: 10px;
    }
    
    .wc-csp-timer-unit {
        min-width: 50px;
    }
    
    .wc-csp-timer-value {
        font-size: 24px;
    }
}

/* Shortcode Grid Display */
.wc-csp-products {
    margin: 20px 0;
    clear: both;
}

.wc-csp-products ul.products {
    margin: 0 -1%;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.wc-csp-products ul.products li.product {
    float: none;
    margin: 0 1% 2em;
    padding: 0;
    position: relative;
    width: 23%;
    box-sizing: border-box;
}

/* Column variations */
.wc-csp-products.columns-1 ul.products li.product {
    width: 98%;
}

.wc-csp-products.columns-2 ul.products li.product {
    width: 48%;
}

.wc-csp-products.columns-3 ul.products li.product {
    width: 31.33%;
}

.wc-csp-products.columns-4 ul.products li.product {
    width: 23%;
}

.wc-csp-products.columns-5 ul.products li.product {
    width: 18%;
}

.wc-csp-products.columns-6 ul.products li.product {
    width: 14.66%;
}

.wc-csp-product-inner {
    text-align: center;
}

.wc-csp-product-image {
    position: relative;
    margin-bottom: 15px;
}

.wc-csp-product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.wc-csp-product-details {
    padding: 10px 0;
}

.wc-csp-product-details h2 {
    font-size: 16px;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.wc-csp-product-details h2 a {
    text-decoration: none;
    color: inherit;
}

.wc-csp-product-details h2 a:hover {
    opacity: 0.8;
}

/* Compact timer for grid */
.wc-csp-timer-compact {
    margin: 10px 0;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
}

.wc-csp-timer-compact .wc-csp-timer-countdown {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.wc-csp-timer-compact .wc-csp-timer-unit {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    min-width: auto;
}

.wc-csp-timer-compact .wc-csp-timer-value {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.wc-csp-timer-compact .wc-csp-timer-label {
    font-size: 11px;
    opacity: 0.7;
    text-transform: none;
}

.wc-csp-notify-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.3s;
}

.wc-csp-notify-link:hover {
    opacity: 0.9;
}

.wc-csp-no-products {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* Responsive grid */
@media (max-width: 992px) {
    .wc-csp-products.columns-4 ul.products li.product,
    .wc-csp-products.columns-5 ul.products li.product,
    .wc-csp-products.columns-6 ul.products li.product {
        width: 31.33%;
    }
}

@media (max-width: 768px) {
    .wc-csp-products.columns-3 ul.products li.product,
    .wc-csp-products.columns-4 ul.products li.product,
    .wc-csp-products.columns-5 ul.products li.product,
    .wc-csp-products.columns-6 ul.products li.product {
        width: 48%;
    }
}

@media (max-width: 480px) {
    .wc-csp-products ul.products li.product {
        width: 98% !important;
    }
}
