/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #fff;
    color: #333;
    line-height: 1.6;
}

.product-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.product-main {
    display: flex;
    gap: 50px;
    margin-bottom: 50px;
}

.product-images {
    flex: 1;
}

.product-images img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border: 1px solid #f1f1f1;
    border-radius: 8px;
}

.thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.thumbnails img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.thumbnails img:hover {
    border-color: #F6692A;
}

.product-details {
    flex: 1;
    padding-top: 20px;
}

.product-details h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.product-details .brand {
    color: #777;
    /* margin-bottom: 20px; */
    font-size: 18px;
}

.product-details .price {
    font-size: 24px;
    font-weight: bold;
    color: #F6692A;
    margin: 20px 0;
}

.ingredients {
    margin: 25px 0;
}

.ingredients h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.ingredients p {
    color: #555;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    background: #f1f1f1;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-selector button:hover {
    background: #F6692A;
    color: white;
}

.quantity-selector input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    font-size: 16px;
    -moz-appearance: textfield;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.btn-place-order:disabled {
  background-color: #e0e0e0; /* Light gray */
  color: #a0a0a0;            /* Dim text */
  cursor: not-allowed;
  border: 1px solid #ccc;
  opacity: 0.7;
}

/* Ensure both button types share same width behavior */
.add-to-cart,
.buy-now {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

/* Add-to-Cart Styles */
.add-to-cart {
    background: #F6692A;
    color: white;
}

.add-to-cart:hover {
    background: #e05b22;
}

/* Buy Now Button Styles */
.buy-now {
    background: #134B70; /* Deep Blue */
    color: white;
}

.buy-now:hover {
    background: #0f3f5c;
}

/* Ensure the form doesn’t break layout */
.buy-now-form {
    flex: 1;
    display: flex;
    width: 100%;
}

.total-amount {
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
    color: #134B70;
}


.social-share {
    margin-top: 30px;
}

.social-share span {
    display: block;
    margin-bottom: 10px;
    color: #555;
}

.social-share a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    font-size: 18px;
}

.social-share .twitter { background: #1DA1F2; }
.social-share .facebook { background: #3B5998; }
.social-share .instagram { background: #E1306C; }
.social-share .gmail { background: #DB4437; }

/* Related Products */
.related-products {
    margin: 50px 0;
}

.related-products h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.related-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-card h3 {
    font-size: 15px;
    margin: 10px;
}

.related-card .price {
    font-weight: bold;
    color: #F6692A;
    margin: 0 10px 10px;
}

/* Product Tabs */
.product-tabs {
    margin: 50px 0;
}

.tab-header {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #e1e1e1;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 25px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    color: #555;
}

.tab-btn.active {
    color: #F6692A;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #F6692A;
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-main {
        flex-direction: column;
    }

    .product-images {
        margin-bottom: 20px;
    }

    .thumbnails img {
        width: 50px;
        height: 50px;
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .product-page {
        padding: 15px;
    }
    
    .product-main {
        flex-direction: column;
        gap: 25px;
    }
    
    .product-images {
        margin-bottom: 20px;
    }
    
    .thumbnails {
        justify-content: center;
    }
    
    .thumbnails img {
        width: 50px;
        height: 50px;
    }
    
    .tab-header {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
        margin: 0 -15px 15px;
        padding: 0 15px;
    }
    
    .tab-header::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 14px;
        flex: 0 0 auto;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Specific fix for 320px screens */
@media (max-width: 400px) {
    .tab-header {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        white-space: normal;
    }
    
    .tab-btn {
        text-align: center;
        padding: 8px 5px;
        font-size: 13px;
    }
    
    .product-details h1 {
        font-size: 24px;
    }
    
    .product-details .price {
        font-size: 22px;
    }
    
    .quantity-selector {
        margin: 15px 0;
    }
    
    .add-to-cart {
        padding: 12px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .related-products h2 {
        font-size: 20px;
        margin-bottom: 30px;
    }
}


.stock-text.in-stock {
    color: #28a745;
    font-weight: 500;
}

.stock-text.out-of-stock {
    color: #dc3545;
    font-weight: bold;
}

.delivery-info {
    font-size: 14px;
    color: #555;
    margin: 10px 0 20px;
}

.wishlist-btn {
    background: transparent;
    border: 1px solid #F6692A;
    color: #F6692A;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.wishlist-btn:hover {
    background: #F6692A;
    color: white;
}

.spec-list {
    list-style: none;
    padding: 0;
    color: #555;
}

.spec-list li {
    margin-bottom: 10px;
}

.fragrance-select {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  max-width: 320px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.fragrance-select label {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.fragrance-select select {
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.fragrance-select select:focus {
  outline: none;
  border-color: #2a9d8f;
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.2);
}

/* Try to style options - note: limited browser support */
.fragrance-select select option {
  padding: 10px;
  border-radius: 8px;
  background-color: #f9f9f9;
  color: #333;
  margin: 5px 0;
}
.custom-dropdown {
  position: relative;
  max-width: 320px;
  font-family: 'Segoe UI', sans-serif;
  margin: 20px 0;
}

.custom-dropdown label {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
  display: block;
  color: #333;
}

.dropdown-selected {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: border 0.3s ease;
}

.dropdown-selected::after {
  content: "▼";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: #666;
}

.dropdown-options {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #ccc;
  border-radius: 10px;
  max-height: 0;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  position: absolute;
  width: 100%;
  z-index: 100;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.dropdown-options.show {
  max-height: 300px;
  padding: 8px 0;
}

.dropdown-options li {
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dropdown-options li:hover {
  background-color: #f2f2f2;
  border-radius: 8px;
}