#product {
  box-sizing: border-box;
  overflow: hidden;
}

#product *,
#product *::after,
#product *::before {
  box-sizing: inherit;
}

#product #images {
  float: left;
  padding: 0 20px 0 0;
}

#product #image-preview {
  margin-bottom: 20px;
  cursor: pointer;
  background-color: #f8f8f8;
  border: 1px solid #000;
}

#product #image-preview.image-filler {
  border: 1px solid #ccc;
}

#product #image-preview-src {
  display: block;
  max-width: 100%;
}

#product #sum {
  float: right;
  padding: 0;
}

#product #sum-title {
  font-size: 1.5em;
  color: #555;
}

#sum-details {
  padding: 0;
  margin: 20px 0 0;
  overflow: hidden;
  color: #555;
  background-color: #eee;
  border: 1px solid #d5d5d5;
}

#product #sum-table {
  padding: 0 10px 10px;
  margin: 0;
  list-style: none;
}

#product .sum-row {
  margin: 10px 0 0;
  overflow: hidden;
  line-height: 2.5em;
}

#product #sum select {
  width: 100%;
}

#product #sum .tell-select {
  border: 1px solid #ccc;
}

#product #sum input[type="text"] {
  width: 50px;
  height: 2.5em;
  padding: 0 5px;
  line-height: 2.5em;
  background-color: #fff;
  border: 1px solid #ccc;
}

#product #sum-option {
  width: 250px;
}

#product #sum-ctrls {
  padding: 10px;
  overflow: hidden;
  border-top: 1px solid #ccc;
}

#product #sum-submit {
  display: none;
}

#product .item-add {
  float: left;
}

#product #desc {
  margin-top: 20px;
}

#product #desc-title {
  font-size: 1.3em;
  color: #555;
}

#product #desc-text {
  color: #444;
  border-top: 1px solid #ccc;
}

.images-view {
  overflow: hidden;
}

/**
 * Phones only
 */
@media (width <= 767px) {
  #product #images {
    padding: 20px 0 0;
  }

  #product #desc {
    margin-top: 20px;
  }
}

/**
 * Small phones only
 */
@media (width <= 480px) {
  /* ... */
}

/**
 * Phones, tablets
 */
@media (width <= 1024px) {
  /* ... */
}

/**
 * Tablets only
 */
@media (width >= 768px) and (width <= 1024px) {
  /* ... */
}

/**
 * Tablets, desktops
 */
@media (width >= 768px) {
  /* ... */
}

/**
 * Desktops only
 */
@media (width >= 1025px) {
  /* ... */
}
