/**
 * Single Product Page Styles for Okoboji Theme
 * Glass tile effects and product-specific styling using em units only
 */

/* ================================================
 * GLASS TILE PRODUCT BLOCKS
 * ================================================ */

/* Buy box buttons container - replaces inline styles */
.buy-box-buttons {
    gap: 0;
    margin: 0;
}

/* Glass title container styling moved to line 306 - consolidated version */

/* Product card for upsell/cross-sell sections */
.product-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    height: 100%;
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: scale(1.05);
}

/* Glass block styling now unified in common.css - using .glass-tile-block-product class */

/* Unified button styling for consistent sizing */
.product-action-button,
.add-to-cart-button {
    width: 100%;
    font-weight: bold;
    border-radius: 9999px;
    transition: all 0.3s ease;
    font-size: 1.125em;
    padding: 1em 1.5em;
    min-height: 4em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

/* Add-to-cart button specific styling */
.add-to-cart-button {
    color: black;
    background-color: #10b981;
    border: 1px solid #10b981;
    margin-top: -0.5em;
}

.add-to-cart-button:hover {
    background-color: #059669;
    border-color: #059669;
}

/* Section heading styling */
.section-heading {
    font-size: 1.5em;
    font-weight: bold;
    color: black;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* Price and text sizing with em units */
.price-regular {
    font-size: 1.25em;
}

.price-sale {
    font-size: 1.5em;
}

.price-large {
    font-size: 1.5em;
}

.text-em-lg {
    font-size: 1.125em;
}

.text-em-xl {
    font-size: 1.25em;
}

.text-em-2xl {
    font-size: 1.5em;
}

.text-em-base {
    font-size: 1em;
}

@media (min-width: 1024px) {
    .price-regular {
        font-size: 1.5em;
    }

    .price-sale {
        font-size: 1.875em;
    }

    .price-large {
        font-size: 1.875em;
    }

    .text-em-xl {
        font-size: 1.5em;
    }

    .text-em-2xl {
        font-size: 1.5em;
    }
}

.section-heading-large {
    font-size: 1.5rem;
    font-weight: bold;
    color: black;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.sub-heading {
    font-size: 1.25rem;
    font-weight: bold;
    color: black;
    margin-bottom: 1rem;
}

.sub-heading-white {
    font-size: 1.25rem;
    font-weight: bold;
    color: black;
    margin-bottom: 0.5rem;
    word-break: break-words;
}

/* View page button styling */
.view-page-button {
    background-color: #10b981;
    color: black;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
}

.view-page-button:hover {
    background-color: #059669;
}

/* Offer row styling */
.offer-row {
    background-color: #10b981;
    color: white;
}

/* Price text styling */
.price-text {
    font-size: 1.25rem;
    font-weight: bold;
    color: black;
    margin-bottom: 0.5rem;
}

/* Product grid layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Custom glass tile style for product page */
/* Glass-tile styling now handled by common.css #glass-tile */

/* Glass-tile hover effects now handled by common.css #glass-tile */

/* ================================================
 * PRODUCT GALLERY STYLES
 * ================================================ */

/* Thumbnail images */
.product-thumbnail {
    width: 3em;
    height: 3em;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

@media (min-width: 768px) {
    .product-thumbnail {
        width: 3.5em;
        height: 3.5em;
    }
}

.product-thumbnail.active {
    border-color: rgba(34, 197, 244, 1);
}

.product-thumbnail:hover {
    border-color: rgba(34, 197, 244, 0.7);
}

/* Main product image */
.main-product-image {
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.main-product-image:hover {
    transform: scale(1.02);
}

/* ================================================
 * ICON GLASS STYLES
 * ================================================ */

/* Glowing glass icon style */
.icon-glass {
    background: none;
    -webkit-backdrop-filter: blur(0.5em);
    backdrop-filter: blur(0.5em);
    border: 1px solid #10b981;
    box-shadow: 0 0 0.9375em rgba(0, 180, 255, 0.3);
    transition: all 0.3s ease;
}

.icon-glass:hover {
    box-shadow: 0 0 1.25em rgba(0, 180, 255, 0.5);
    transform: scale(1.05);
}

/* Icon container sizing - 30% increase */
.icon-container {
    width: 4.55em;
    height: 4.55em;
}

@media (max-width: 767px) {
    .icon-container {
        width: 3.9em;
        height: 3.9em;
    }
}



/* ================================================
 * PRODUCT FEATURES & CONTENT
 * ================================================ */

/* Feature icons grid */
.features-grid {
    gap: 1em;
}

@media (max-width: 767px) {
    .features-grid {
        gap: 0.5em;
    }
}

/* Medium screen adjustments for 1024px - 1498px */
@media (min-width: 1024px) and (max-width: 1498px) {
    /* Force icons to 2 columns on medium screens */
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1.5em;
        max-width: 20em;
        margin: 1.5em auto;
    }

    /* Adjust icon container size for better fit */
    .icon-container {
        width: 3.5em;
        height: 3.5em;
    }

    /* Adjust icon text size */
    .icon-text-enhanced {
        font-size: 0.95em;
    }

    /* Center align buy box text content */
    .lg\:col-span-3 {
        text-align: center;
    }

    /* Keep button alignment as flex (overrides text-align) */
    .buy-box-buttons {
        text-align: initial;
    }
}

/* Specific button consistency for 1206px - 1500px range */
@media (min-width: 1206px) and (max-width: 1500px) {
    /* Ensure all buttons have identical sizing */
    .product-action-button,
    .add-to-cart-button,
    .buy-box-buttons button,
    .buy-box-buttons a {
        min-height: 4em !important;
        padding: 1em 1.5em !important;
        font-size: 1.125em !important;
        line-height: 1.2 !important;
    }

    /* Fix buy box button container gap */
    .buy-box-buttons {
        gap: 0.5em;
    }
}


/* ================================================
 * CUSTOM SCROLLBAR
 * ================================================ */

/* Custom scrollbar for better look */
::-webkit-scrollbar {
    width: 0.5em;
}

::-webkit-scrollbar-track {
    background: #1e2b3b;
}

::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 0.25em;
}

::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

/* ================================================
 * RESPONSIVE TEXT SIZES
 * ================================================ */

/* Glass effect container for product title */
.glass-title-container {
    background: none;
    backdrop-filter: blur(0.75em);
    -webkit-backdrop-filter: blur(0.75em);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75em;
    padding: 1.5em;
    box-shadow: 0 0.5em 2em rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.glass-title-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
}

.product-title-glass {
    color: black;
    font-weight: bold;
}

@media (min-width: 768px) {
    .product-title-glass { font-size: 2.5em; }
    .glass-title-container { padding: 2em; }
}

@media (min-width: 1024px) {
    .product-title-glass { font-size: 3em; }
    .glass-title-container { padding: 2.5em; }
}


/* Icon text styling - 30% increase with black color and glow */
.icon-text-enhanced {
    font-size: 1.125em; /* 30% increase from text-xs (0.75rem -> 0.975rem) */
    color: #000000;
    text-shadow: 0 0 0.5em rgba(255, 255, 255, 0.8);
    line-height: 1.3;
}

@media (min-width: 768px) {
    .icon-text-enhanced {
        font-size: 1.3em; /* Slightly larger on desktop */
    }
}

@media (max-width: 767px) {
    .icon-text-enhanced {
        font-size: 1em; /* Balanced size for mobile */
    }
}

/* ================================================
 * PRODUCT VIDEO STYLES
 * ================================================ */

/* Video container responsive with em values */
.aspect-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    border-radius: 0.5em;
    overflow: hidden;
}

.aspect-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0.5em;
}

/* Video glass block specific */
.glass-tile-block-product .aspect-video {
    background: none;
    backdrop-filter: blur(0.25em);
    -webkit-backdrop-filter: blur(0.25em);
}

@media (max-width: 767px) {
    .aspect-video {
        margin: 0 -1em;
        width: calc(100% + 2em);
        border-radius: 0.75em;
    }
    
    .glass-tile-block-product {
        padding: 1.5em 1em;
    }
    
    .glass-tile-block-product .aspect-video {
        margin: 0;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .aspect-video {
        border-radius: 0.75em;
    }
    
    .glass-tile-block-product .aspect-video iframe:hover {
        transform: scale(1.02);
        transition: transform 0.3s ease;
    }
}

