
/* Product Page Styles - Coricraft Inspired */
.product-page {
    padding: 2rem 0;
    background: #fff;
}

.product-page .product-gallery {
    position: relative;
}

.product-page .main-image-container {
    position: relative;
    background: #f8f8f8;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-page .main-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-page .image-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

.product-page .image-controls .ui.button {
    margin: 0;
    padding: 0.6em;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.product-page .thumbnail-strip {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.product-page .thumbnail-strip::-webkit-scrollbar {
    height: 4px;
}

.product-page .thumbnail-strip::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.product-page .thumbnail-item {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: #f8f8f8;
    transition: border-color 0.2s;
}

.product-page .thumbnail-item:hover,
.product-page .thumbnail-item.active {
    border-color: #333;
}

.product-page .thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info Section */
.product-page .product-info {
    padding-left: 2rem;
}

@media (max-width: 767px) {
    .product-page .product-info {
        padding-left: 0;
        padding-top: 2rem;
    }
}

.product-page .product-badge {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 0.3em 0.8em;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.product-page .product-title {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 0.25rem 0;
    color: #333;
}

.product-page .product-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
}

.product-page .product-pricing {
    margin: 1.5rem 0;
}

.product-page .current-price {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
}

.product-page .original-price {
    font-size: 1.1rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 0.75rem;
}

.product-page .savings-text {
    font-size: 0.9rem;
    color: #666;
    margin-left: 0.75rem;
}

.product-page .discount-badge {
    display: inline-block;
    background: #e8e8e8;
    color: #333;
    padding: 0.2em 0.6em;
    font-size: 0.8rem;
    margin-left: 0.75rem;
}

.product-page .product-meta {
    font-size: 0.85rem;
    color: #999;
    margin: 1rem 0;
}

.product-page .product-meta a {
    color: #999;
    text-decoration: underline;
}

/* Options Panel */
.product-page .options-panel {
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.product-page .options-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.product-page .options-header .select-label {
    font-size: 0.85rem;
    color: #666;
}

.product-page .options-header .clear-link {
    font-size: 0.85rem;
    color: #333;
    cursor: pointer;
}

.product-page .option-group {
    margin-bottom: 1.5rem;
}

.product-page .option-group:last-child {
    margin-bottom: 0;
}

.product-page .option-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-page .option-label .selected-value {
    font-weight: 400;
    color: #666;
}

/* Material Buttons */
.product-page .material-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-page .material-btn {
    padding: 0.6em 1.5em;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 2px;
}

.product-page .material-btn:hover {
    border-color: #333;
}

.product-page .material-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Colour Filter Tabs */
.product-page .colour-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.product-page .colour-tab {
    padding: 0.5em 1em;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
}

.product-page .colour-tab:hover {
    color: #333;
}

.product-page .colour-tab.active {
    color: #333;
    border-bottom-color: #333;
}

/* Swatch Grid */
.product-page .swatch-container {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.product-page .swatch-container::-webkit-scrollbar {
    width: 4px;
}

.product-page .swatch-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.product-page .swatch-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

@media (max-width: 767px) {
    .product-page .swatch-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-page .swatch-item {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    background: #f0f0f0;
    position: relative;
}

.product-page .swatch-item:hover {
    border-color: #999;
}

.product-page .swatch-item.active {
    border-color: #333;
}

.product-page .swatch-item.out-of-stock {
    opacity: 0.4;
    cursor: not-allowed;
}

.product-page .swatch-item.out-of-stock::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #999;
    transform: rotate(-45deg);
}

.product-page .swatch-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-page .swatch-item .color-fill {
    width: 100%;
    height: 100%;
}

/* Quantity and Add to Cart */
.product-page .quantity-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.product-page .quantity-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
}

.product-page .quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
}

.product-page .quantity-input button {
    width: 40px;
    height: 40px;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    transition: background 0.2s;
}

.product-page .quantity-input button:hover {
    background: #f0f0f0;
}

.product-page .quantity-input input {
    width: 50px;
    height: 40px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 1rem;
}

.product-page .quantity-input input:focus {
    outline: none;
}

.product-page .delivery-info {
    font-size: 0.85rem;
    color: #666;
    margin-left: auto;
}

@media (max-width: 767px) {
    .product-page .delivery-info {
        margin-left: 0;
        width: 100%;
        margin-top: 0.5rem;
    }
}

.product-page .add-to-cart-btn {
    width: 100%;
    padding: 1em;
    background: #333;
    color: #fff;
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 0.75rem;
}

.product-page .add-to-cart-btn:hover {
    background: #444;
}

.product-page .add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.product-page .add-to-cart-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.product-page .check-availability-btn {
    width: 100%;
    padding: 1em;
    background: #fff;
    color: #333;
    border: 1px solid #333;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}

.product-page .check-availability-btn:hover {
    background: #f8f8f8;
}

/* Accordion Sections */
.product-page .info-accordion {
    margin-top: 2rem;
    border-top: 1px solid #e8e8e8;
}

.product-page .accordion-item {
    border-bottom: 1px solid #e8e8e8;
}

.product-page .accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
}

.product-page .accordion-header:hover {
    color: #666;
}

.product-page .accordion-header i {
    transition: transform 0.2s;
}

.product-page .accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.product-page .accordion-content {
    display: none;
    padding: 0 0 1rem 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.product-page .accordion-item.active .accordion-content {
    display: block;
}

/* Dimensions Table */
.product-page .dimensions-table {
    width: 100%;
    border-collapse: collapse;
}

.product-page .dimensions-table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.product-page .dimensions-table td:first-child {
    color: #999;
    width: 40%;
}

/* Wishlist */
.product-page .wishlist-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
    cursor: pointer;
}

.product-page .wishlist-link:hover {
    color: #333;
}

/* Admin Edit Link */
.product-page .admin-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}
